bad_quad_mesh_from_quadtree
bad_quad_mesh_from_quadtree(C, W, CH)
Builds a mesh of a quadtree or octree for visualization purposes.
From a proper quadtree, builds a vertex-connected but degenerate quad mesh containing only the leaf nodes, to be used for visualizing the quadtree and quantities defined on its leaf nodes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
C |
numpy double array
|
Matrix of cell centers |
required |
W |
numpy double array
|
Vector of half cell widths |
required |
CH |
numpy int array
|
Matrix of child indices (-1 if leaf node) |
required |
Returns:
Name | Type | Description |
---|---|---|
V |
numpy double array
|
Matrix of mesh vertices |
Q |
numpy int array
|
Matrix of quad mesh indices |
H |
numpy int array
|
Matrix of hexahedral mesh indices if input is octree (empty if quadtree) |
See Also
initialize_quadtree, quadtree_children.
Examples:
TO-DO
Source code in src/gpytoolbox/bad_quad_mesh_from_quadtree.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|