GridTopology
Base class fo a regular grid in 3D.
Target: Sofa.Component.Topology.Container.Grid
namespace: sofa::component::topology::container::grid
parents:
- MeshTopology
Data
| Name | Description | Default value |
|---|---|---|
| name | object name | unnamed |
| printLog | if true, emits extra messages at runtime. | 0 |
| tags | list of the subsets the object belongs to | |
| bbox | this object bounding box | |
| componentState | The state of the component among (Dirty, Valid, Undefined, Loading, Invalid). | Undefined |
| listening | if true, handle the events, otherwise ignore the events | 0 |
| filename | Filename of the mesh | |
| position | List of point positions | |
| edges | List of edge indices | |
| triangles | List of triangle indices | |
| quads | List of quad indices | |
| tetrahedra | List of tetrahedron indices | |
| hexahedra | List of hexahedron indices | |
| uv | List of uv coordinates | |
| computeAllBuffers | Option to compute all crossed topology buffers at init. False by default | 0 |
| n | grid resolution. (default = 2 2 2) | 2 2 2 |
| computeHexaList | put true if the list of Hexahedra is needed during init (default=true) | 1 |
| computeQuadList | put true if the list of Quad is needed during init (default=true) | 1 |
| computeTriangleList | put true if the list of Triangles is needed during init (default=true) | 1 |
| computeEdgeList | put true if the list of Lines is needed during init (default=true) | 1 |
| computePointList | put true if the list of Points is needed during init (default=true) | 1 |
| createTexCoords | If set to true, virtual texture coordinates will be generated using 3D interpolation (default=false). | 0 |
| Visualization | ||
| drawEdges | if true, draw the topology Edges | 0 |
| drawTriangles | if true, draw the topology Triangles | 0 |
| drawQuads | if true, draw the topology Quads | 0 |
| drawTetrahedra | if true, draw the topology Tetrahedra | 0 |
| drawHexahedra | if true, draw the topology hexahedra | 0 |
Links
| Name | Description | Destination type name |
|---|---|---|
| context | Graph Node containing this object (or BaseContext::getDefault() if no graph is used) | BaseContext |
| slaves | Sub-objects used internally by this object | BaseObject |
| master | nullptr for regular objects, or master object for which this object is one sub-objects | BaseObject |