113 virtual float getVolume()
const {
return m_dx * m_dy * m_dz;}
180 SbBool set(
int index,
int *node_ids,
181 float x_min,
float y_min,
float z_min,
182 float x_max,
float y_max,
float z_max);
185 return c_edgeNodes[edge];
188 void print(FILE *fp)
const;
191 PiMarchingCase* getMCcase(
unsigned char mc_case)
const {
192 return PbHexahedronCell::c_MarchingLookup[mc_case];
197 virtual unsigned char getIsosurfCaseId(
SbBoolVector &nodes_sign)
const;
204 float m_xmin,m_ymin,m_zmin, m_xmax,m_ymax,m_zmax, m_dx,m_dy,m_dz;
205 static int c_edgeNodes[12][2];
std::vector< bool > SbBoolVector
DTEXT Dynamic array of int .
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract cell...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines an abstract mesh...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a voxel cell of ...
virtual int locatePoint(const SbVec3f &coord, float tolerance, SbVec3f &pcoord) const
Returns 1 if the point is inside the cell, 0 otherwise.
virtual void getNodesIndexOfFacet(int facet, PbArrayOfInt &nodes_index) const
Gets the array of index mesh's nodes that belongs to a given facet of this cell.
virtual void getNodesIndexOfEdge(int edge, PbArrayOfInt &nodes_index) const
Gets the array of 2 index mesh's nodes that belongs to a given edge of this cell.
virtual void getNodesLocalIndexOfEdge(int edge, PbArrayOfInt &nodes_index) const
Gets the array of 2 nodes index that belongs to a given edge of this cell.
virtual SbBox3f getBoundingBox() const
Gets the cell's bounding box.
~PbVoxelCell()
Destructor.
virtual SbVec3f getCenter() const
Gets the cell's geometric center.
virtual float getArea() const
Returns always 0.
virtual float getValue(const SbVec3f &pcoord, const float *s) const
Get the scalar value of a point in the cell.
virtual void getWeight(const SbVec3f &pcoord, float *weight) const
Gets the 8 weights of a point defined by its parametric coordinates.
PbVoxelCell & operator=(const PbVoxelCell &cell)
Assignment operator.
virtual float getVolume() const
Gets the volume of the cell.
PbVoxelCell(const PbMesh *owner_mesh)
Constructor of a default simple cell.
virtual void getNodesLocalIndexOfFacet(int facet, PbArrayOfInt &nodes_index) const
Gets the array of node index that belongs to a given facet of this cell.
virtual SbVec3f getValue(const SbVec3f &pcoord, const SbVec3f *v) const
Get the vector value of a point in the cell.
PbVoxelCell(const PbVoxelCell &cell)
Copy constructor.
virtual float getLongestEdgeLength() const
Gets the length of the longest edge of the cell.
void getBounds(float &xmin, float &ymin, float &zmin, float &xmax, float &ymax, float &zmax) const
Gets the cell's bounds.