pcb 4.1.1
An interactive printed circuit board layout editor.

face.c File Reference

#include "gts.h"
Include dependency graph for face.c:

Go to the source code of this file.

Functions

static void face_destroy (GtsObject *object)
static void face_clone (GtsObject *clone, GtsObject *object)
static void face_class_init (GtsFaceClass *klass)
static void face_init (GtsFace *face)
GtsFaceClassgts_face_class (void)
GtsFacegts_face_new (GtsFaceClass *klass, GtsEdge *e1, GtsEdge *e2, GtsEdge *e3)
gboolean gts_face_has_parent_surface (GtsFace *f, GtsSurface *s)
GSList * gts_faces_from_edges (GSList *edges, GtsSurface *s)
guint gts_face_neighbor_number (GtsFace *f, GtsSurface *s)
GSList * gts_face_neighbors (GtsFace *f, GtsSurface *s)
void gts_face_foreach_neighbor (GtsFace *f, GtsSurface *s, GtsFunc func, gpointer data)
static gboolean triangle_is_incompatible (GtsTriangle *t, GtsEdge *e, GtsSurface *s)
gboolean gts_face_is_compatible (GtsFace *f, GtsSurface *s)

Variables

gboolean gts_allow_floating_faces = FALSE

Function Documentation

static void face_class_init ( GtsFaceClass klass) [static]

Definition at line 47 of file face.c.

References face_clone(), face_destroy(), and GTS_OBJECT_CLASS.

Referenced by gts_face_class().

Here is the call graph for this function:

static void face_clone ( GtsObject clone,
GtsObject object 
) [static]

Definition at line 40 of file face.c.

References GTS_FACE, gts_face_class(), and GTS_OBJECT_CLASS.

Referenced by face_class_init().

Here is the call graph for this function:

static void face_destroy ( GtsObject object) [static]

Definition at line 24 of file face.c.

References GTS_FACE, gts_face_class(), GTS_OBJECT_CLASS, gts_surface_remove_face(), and _GtsFace::surfaces.

Referenced by face_class_init().

Here is the call graph for this function:

static void face_init ( GtsFace face) [static]

Definition at line 53 of file face.c.

References _GtsFace::surfaces.

Referenced by gts_face_class().

GtsFaceClass* gts_face_class ( void  )

gts_face_class:

Returns: the GtsFaceClass.

Definition at line 63 of file face.c.

References face_class_init(), face_init(), GTS_OBJECT_CLASS, gts_object_class_new(), and gts_triangle_class().

Referenced by build_cdt(), cface_expand(), delaunay_create_from_vertices(), face_clone(), face_destroy(), gts_list_face_class(), gts_nface_class(), and surface_init().

Here is the call graph for this function:

void gts_face_foreach_neighbor ( GtsFace f,
GtsSurface s,
GtsFunc  func,
gpointer  data 
)

gts_face_foreach_neighbor: : a GtsFace. : a GtsSurface or NULL. : a GtsFunc. : user data to pass to .

Calls for each neighbor of belonging to (if not NULL).

Definition at line 238 of file face.c.

References GTS_FACE, gts_face_has_parent_surface(), GTS_IS_FACE, and GTS_TRIANGLE.

Referenced by gts_surface_traverse_next().

Here is the call graph for this function:

gboolean gts_face_is_compatible ( GtsFace f,
GtsSurface s 
)

gts_face_is_compatible: : a GtsFace. : a GtsSurface.

Returns: TRUE if is compatible with all its neighbors belonging to , FALSE otherwise.

Definition at line 289 of file face.c.

References FALSE, GTS_TRIANGLE, and triangle_is_incompatible().

Referenced by stats_foreach_face().

Here is the call graph for this function:

guint gts_face_neighbor_number ( GtsFace f,
GtsSurface s 
)

gts_face_neighbor_number: : a GtsFace. : a GtsSurface or NULL.

Returns: the number of faces neighbors of and belonging to .

Definition at line 169 of file face.c.

References GTS_FACE, gts_face_has_parent_surface(), GTS_IS_FACE, and GTS_TRIANGLE.

Here is the call graph for this function:

GSList* gts_face_neighbors ( GtsFace f,
GtsSurface s 
)

gts_face_neighbors: : a GtsFace. : a GtsSurface or NULL.

Returns: a list of unique GtsFace neighbors of and belonging to .

Definition at line 203 of file face.c.

References GTS_FACE, gts_face_has_parent_surface(), GTS_IS_FACE, and GTS_TRIANGLE.

Here is the call graph for this function:

GSList* gts_faces_from_edges ( GSList *  edges,
GtsSurface s 
)

gts_faces_from_edges: : a list of GtsEdge. : a GtsSurface or NULL.

Builds a list of unique faces which belong to and have one of their edges in .

Returns: the list of faces.

Definition at line 136 of file face.c.

References GTS_EDGE, GTS_FACE, gts_face_has_parent_surface(), GTS_IS_FACE, and hash().

Here is the call graph for this function:

static gboolean triangle_is_incompatible ( GtsTriangle t,
GtsEdge e,
GtsSurface s 
) [static]

Definition at line 266 of file face.c.

References FALSE, gts_face_has_parent_surface(), GTS_IS_FACE, gts_triangles_are_compatible(), _GtsEdge::triangles, and TRUE.

Referenced by gts_face_is_compatible().

Here is the call graph for this function:


Variable Documentation