|
| struct bg_vert_tree * | bg_vert_tree_create (void) |
| | routine to create a vertex tree.
|
| |
| struct bg_vert_tree * | bg_vert_tree_create_w_norms (void) |
| | routine to create a vertex tree.
|
| |
| void | bg_vert_tree_destroy (struct bg_vert_tree *tree) |
| | Routine to free a vertex tree and all associated dynamic memory.
|
| |
| size_t | bg_vert_tree_add (struct bg_vert_tree *tree, double x, double y, double z, fastf_t local_tol_sq) |
| | Routine to add a vertex to the current list of part vertices. The array is re-alloc'd if needed. Returns index into the array of vertices where this vertex is stored.
|
| |
| size_t | bg_vert_tree_add_w_norm (struct bg_vert_tree *tree, double x, double y, double z, double nx, double ny, double nz, fastf_t local_tol_sq) |
| | Routine to add a vertex and a normal to the current list of part vertices. The array is re-alloc'd if needed. Returns index into the array of vertices where this vertex and normal is stored.
|
| |
| void | bg_vert_tree_clean (struct bg_vert_tree *tree) |
| | Routine to free the binary search tree and reset the current number of vertices. The vertex array is left untouched, for reuse later.
|
| |
Routines to manage a binary search tree of vertices.
The actual vertices are stored in an array for convenient use by routines such as "mk_bot". The binary search tree stores indices into the array.
◆ BN_VERT_TREE_TYPE_VERTS
| #define BN_VERT_TREE_TYPE_VERTS 1 |
◆ BN_VERT_TREE_TYPE_VERTS_AND_NORMS
| #define BN_VERT_TREE_TYPE_VERTS_AND_NORMS 2 |
◆ BN_CK_VERT_TREE
◆ bg_vert_tree_create()
routine to create a vertex tree.
Possible refinements include specifying an initial size
◆ bg_vert_tree_create_w_norms()
routine to create a vertex tree.
Possible refinements include specifying an initial size
◆ bg_vert_tree_destroy()
Routine to free a vertex tree and all associated dynamic memory.
◆ bg_vert_tree_add()
Routine to add a vertex to the current list of part vertices. The array is re-alloc'd if needed. Returns index into the array of vertices where this vertex is stored.
◆ bg_vert_tree_add_w_norm()
Routine to add a vertex and a normal to the current list of part vertices. The array is re-alloc'd if needed. Returns index into the array of vertices where this vertex and normal is stored.
◆ bg_vert_tree_clean()
Routine to free the binary search tree and reset the current number of vertices. The vertex array is left untouched, for reuse later.