Package com.openinventor.meshviz.data
Class PbVoxelCell
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.meshviz.graph.PbBase
-
- com.openinventor.meshviz.data.PbCell
-
- com.openinventor.meshviz.data.PbVoxelCell
-
- All Implemented Interfaces:
java.lang.Cloneable
public class PbVoxelCell extends PbCell implements java.lang.Cloneable
Defines a voxel cell of a volume mesh. A voxel is a parallelepipede of which faces are orthogonal to X, Y, Z axes. Each facet is a rectangle not necessarily a square. The 4 first indices defines a facet oriented towards the interior of the cell.Facets, nodes and edges are numbered as following :
This numerotation must be respected to have the right result returned by getVolume().(i.e. edge 01 on Xaxis, edge 12 on Yaxis, edge 26 on Zaxis)4-----------7 facet 0 = 0374 edge 0 = 01 /| /| k facet 1 = 1562 edge 1 = 12 / | / | | facet 2 = 0451 edge 2 = 23 / | / | | facet 3 = 3267 edge 3 = 30 5----------6 | | facet 4 = 0123 edge 4 = 45 | | | | ....... j facet 5 = 4765 edge 5 = 56 | 0----|------3 . edge 6 = 67 | / | / . edge 7 = 74 | / | / . edge 8 = 04 |/ | / i edge 9 = 15 1----------2 edge10 = 26 edge11 = 37
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description PbVoxelCell(PbMesh owner_mesh)
Constructor of a default simple cell.PbVoxelCell(PbVoxelCell cell)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
-
Methods inherited from class com.openinventor.meshviz.data.PbCell
getArea, getBoundingBox, getBounds, getCenter, getIndex, getLongestEdgeLength, getNodeCoord, getNodeIndex, getNumEdges, getNumFacets, getNumNodes, getValue, getValue, getValue, getValue, getVolume, locatePoint
-
Methods inherited from class com.openinventor.meshviz.graph.PbBase
enableConnection, isConnectionEnabled, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
PbVoxelCell
public PbVoxelCell(PbVoxelCell cell)
Copy constructor.
-
PbVoxelCell
public PbVoxelCell(PbMesh owner_mesh)
Constructor of a default simple cell.
-
-