Graphviz  2.41.20170921.2350
Macros | Functions | Variables
hedges.c File Reference
#include "mem.h"
#include "hedges.h"
#include "render.h"
Include dependency graph for hedges.c:

Go to the source code of this file.

Macros

#define DELETED   -2
 

Functions

void ELcleanup ()
 
void ELinitialize ()
 
Sitehintersect (Halfedge *el1, Halfedge *el2)
 
int right_of (Halfedge *el, Point *p)
 
HalfedgeHEcreate (Edge *e, char pm)
 
void ELinsert (Halfedge *lb, Halfedge *new)
 
HalfedgeELleftbnd (Point *p)
 
void ELdelete (Halfedge *he)
 
HalfedgeELright (Halfedge *he)
 
HalfedgeELleft (Halfedge *he)
 
Siteleftreg (Halfedge *he)
 
Siterightreg (Halfedge *he)
 

Variables

HalfedgeELleftend
 
HalfedgeELrightend
 

Macro Definition Documentation

#define DELETED   -2

Definition at line 19 of file hedges.c.

Referenced by ELdelete().

Function Documentation

void ELcleanup ( void  )

Definition at line 28 of file hedges.c.

References freeinit(), and NULL.

void ELdelete ( Halfedge he)

Definition at line 232 of file hedges.c.

References DELETED, Halfedge::ELedge, Halfedge::ELleft, Halfedge::ELright, and ELright().

Referenced by voronoi().

void ELinitialize ( void  )

Definition at line 35 of file hedges.c.

References Halfedge::ELleft, ELleftend, Halfedge::ELright, ELrightend, freeinit(), HEcreate(), N_GNEW, NULL, and sqrt_nsites.

Referenced by voronoi().

void ELinsert ( Halfedge lb,
Halfedge new 
)

Definition at line 160 of file hedges.c.

References ELleft(), and Halfedge::ELright.

Referenced by voronoi().

Halfedge* ELleft ( Halfedge he)

Definition at line 245 of file hedges.c.

References Halfedge::ELleft.

Referenced by ELinsert(), and voronoi().

Halfedge * ELleftbnd ( Point p)

Definition at line 186 of file hedges.c.

References deltax, Halfedge::ELleft, Halfedge::ELrefcnt, Halfedge::ELright, NULL, right_of(), Point::x, and xmin.

Referenced by voronoi().

Halfedge* ELright ( Halfedge he)

Definition at line 240 of file hedges.c.

References Halfedge::ELright.

Referenced by ELdelete(), and voronoi().

Halfedge* HEcreate ( Edge e,
char  pm 
)
Site* hintersect ( Halfedge el1,
Halfedge el2 
)
Site* leftreg ( Halfedge he)

Definition at line 251 of file hedges.c.

References bottomsite, Halfedge::ELedge, Halfedge::ELpm, le, NULL, re, and Edge::reg.

Referenced by voronoi().

int right_of ( Halfedge el,
Point p 
)

Definition at line 100 of file hedges.c.

References Edge::a, Edge::b, Edge::c, Site::coord, coord(), Halfedge::ELedge, Halfedge::ELpm, le, re, Edge::reg, Point::x, pointf_s::x, and Point::y.

Referenced by ELleftbnd().

Site* rightreg ( Halfedge he)

Definition at line 258 of file hedges.c.

References bottomsite, Halfedge::ELedge, Halfedge::ELpm, le, NULL, re, and Edge::reg.

Referenced by voronoi().

Variable Documentation

Halfedge* ELleftend

Definition at line 21 of file hedges.c.

Referenced by ELinitialize(), and voronoi().

Halfedge * ELrightend

Definition at line 21 of file hedges.c.

Referenced by ELinitialize(), and voronoi().