27#include <MeshViz/3Ddata/PbCell.h>
157 SbBool set(
int index,
int *node_ids,
float *x,
float *y,
float *z);
159 void print(FILE *fp)
const;
163 virtual int getOrdering()
const;
166 return c_edgeNodes[edge];
169 PiMarchingCase* getMCcase(
unsigned char mc_case)
const {
170 return c_MarchingLookup[mc_case];
174 friend std::ostream& operator << (std::ostream& s,
PbWedgeCell &cell);
178 static void finish();
182 virtual unsigned char getIsosurfCaseId(SbBoolVector &nodes_sign)
const;
189 static PiMarchingCase* addMC(PiMarchingCase *mcase);
190 static PiMarchingCase* addMCBoth(PiMarchingCase *mcase);
192 static int c_edgeNodes[9][2];
193 static PiMarchingCase* c_MarchingLookup[64];
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 wedge cell of ...
~PbWedgeCell()
Destructor.
virtual void getNodesIndexOfFacet(int facet, PbArrayOfInt &nodes_index) const
Returns the array of index mesh's nodes that belong to a given facet of this cell.
virtual float getVolume() const
Returns the volume of the cell.
virtual void getNodesIndexOfEdge(int edge, PbArrayOfInt &nodes_index) const
Returns the array of the 2 index mesh's nodes that belong to a given edge of this cell.
virtual void getWeight(const SbVec3f &pcoord, float *weight) const
Returns the 6 weights of a point defined by its parametric coordinates.
PbWedgeCell(const PbMesh *owner_mesh)
Constructor of a default simple cell.
virtual int locatePoint(const SbVec3f &coord, float tolerance, SbVec3f &pcoord) const
Returns 1 if the point is inside the cell, 0 otherwise.
PbWedgeCell & operator=(const PbWedgeCell &cell)
Assignment operator.
virtual void getNodesLocalIndexOfEdge(int edge, PbArrayOfInt &nodes_index) const
Returns the array of the 2 node indices that belong to a given edge of this cell.
virtual float getArea() const
Always returns 0.
PbWedgeCell(const PbWedgeCell &cell)
Copy constructor.
virtual void getNodesLocalIndexOfFacet(int facet, PbArrayOfInt &nodes_index) const
Returns the array of node indices that belong to a given facet of this cell.
void getDerivs(const SbVec3f &pcoord, float *weight) const
Returns the derivs of a point defined by its parametric coordinates.
virtual float getLongestEdgeLength() const
Returns the length of the longest edge of the cell.