Classes |
| GfsSurface |
Functions |
GfsGenericSurface * | gfs_cell_is_cut (FttCell *cell, GfsGenericSurface *s, gboolean flatten, gint maxlevel) |
void | gfs_cell_traverse_cut (FttCell *root, GfsGenericSurface *s, FttTraverseType order, FttTraverseFlags flags, FttCellTraverseCutFunc func, gpointer data) |
void | gfs_cell_traverse_cut_2D (FttCell *root, GfsGenericSurface *s, FttTraverseType order, FttTraverseFlags flags, FttCellTraverseCutFunc func, gpointer data) |
void | gfs_generic_surface_read (GfsGenericSurface *s, gpointer sim, GtsFile *fp) |
void | gfs_generic_surface_write (GfsGenericSurface *s, gpointer sim, FILE *fp) |
guint | gfs_surface_segment_intersection (GfsGenericSurface *s, FttCell *cell, GfsSegment *I) |
void | gfs_surface_segment_normal (GfsGenericSurface *s, FttCell *cell, GfsSegment *I, GtsVector n) |
gint | gfs_surface_point_is_inside (GfsGenericSurface *s, FttVector *p) |
Detailed Description
Abstract class for surfaces (an oriented surface (in 3D) or an oriented curve (in 2D)).
- See also:
Syntax reference
Function Documentation
GfsGenericSurface* gfs_cell_is_cut |
( |
FttCell * |
cell, |
|
|
GfsGenericSurface * |
s, |
|
|
gboolean |
flatten, |
|
|
gint |
maxlevel |
|
) |
| |
- Parameters:
-
cell | a #FttCell. |
s | a #GfsGenericSurface. |
flatten | if set to TRUE, cell is flattened in the z direction. |
maxlevel | the maximum (virtual) cell level to consider. |
- Returns:
- a (possibly new) #GfsGenericSurface containing a subset of s which may intersect cell or NULL if s does not intersect cell.
void gfs_cell_traverse_cut |
( |
FttCell * |
root, |
|
|
GfsGenericSurface * |
s, |
|
|
FttTraverseType |
order, |
|
|
FttTraverseFlags |
flags, |
|
|
FttCellTraverseCutFunc |
func, |
|
|
gpointer |
data |
|
) |
| |
- Parameters:
-
root | the root #FttCell of the tree to traverse. |
s | a #GfsGenericSurface. |
order | the order in which the cells are visited - FTT_PRE_ORDER, FTT_POST_ORDER. |
flags | which types of children are to be visited. |
func | the function to call for each visited #FttCell. |
data | user data to pass to func. |
Traverses a cell tree starting at the given root #FttCell. Calls the given function for each cell cut by s.
void gfs_cell_traverse_cut_2D |
( |
FttCell * |
root, |
|
|
GfsGenericSurface * |
s, |
|
|
FttTraverseType |
order, |
|
|
FttTraverseFlags |
flags, |
|
|
FttCellTraverseCutFunc |
func, |
|
|
gpointer |
data |
|
) |
| |
- Parameters:
-
root | the root #FttCell of the tree to traverse. |
s | a #GfsGenericSurface. |
order | the order in which the cells are visited - FTT_PRE_ORDER, FTT_POST_ORDER. |
flags | which types of children are to be visited. |
func | the function to call for each visited #FttCell. |
data | user data to pass to func. |
Traverses a cell tree starting at the given root #FttCell. Calls the given function for each cell cut by s.
The cells are "flattened" in the z-direction.
void gfs_generic_surface_read |
( |
GfsGenericSurface * |
s, |
|
|
gpointer |
sim, |
|
|
GtsFile * |
fp |
|
) |
| |
- Parameters:
-
s | a #GfsGenericSurface. |
sim | a #GfsSimulation. |
fp | a #GtsFile. |
Calls the read() method of s.
void gfs_generic_surface_write |
( |
GfsGenericSurface * |
s, |
|
|
gpointer |
sim, |
|
|
FILE * |
fp |
|
) |
| |
- Parameters:
-
s | a #GfsGenericSurface. |
sim | a #GfsSimulation. |
fp | a file pointer. |
Calls the write() method of s.
gint gfs_surface_point_is_inside |
( |
GfsGenericSurface * |
s, |
|
|
FttVector * |
p |
|
) |
| |
- Parameters:
-
s | a #GfsGenericSurface. |
p | a #FttVector. |
- Returns:
- 1 if p is inside s, 0 if p lies on the boundary of s, -1 otherwise.
guint gfs_surface_segment_intersection |
( |
GfsGenericSurface * |
s, |
|
|
FttCell * |
cell, |
|
|
GfsSegment * |
I |
|
) |
| |
- Parameters:
-
s | a #GfsGenericSurface. |
cell | a #FttCell containing I. |
I | a GfsSegment. |
Fills I with the intersection of s and I.
- Returns:
- the number of times s intersects I.
void gfs_surface_segment_normal |
( |
GfsGenericSurface * |
s, |
|
|
FttCell * |
cell, |
|
|
GfsSegment * |
I, |
|
|
GtsVector |
n |
|
) |
| |
- Parameters:
-
s | a #GfsGenericSurface. |
cell | a #FttCell containing I. |
I | a GfsSegment. |
n | a #GtsVector. |
Fills n with the normal to s at the intersection of s and I.