24#ifndef _PB_TRIANGLECELL_
25#define _PB_TRIANGLECELL_
136 SbBool set(
int index,
int *node_ids,
const float *x,
const float *
y);
144 SbBool set(
int index,
int *node_ids,
const float *x,
const float *
y,
const float *z);
148 return c_edgeNodes[edge];
152 void print(FILE *fp)
const;
157 virtual unsigned char getIsosurfCaseId(
SbBoolVector &nodes_sign)
const;
164 const float *x,
const float *
y,
const float *z,
165 const float *xc,
const float *yc);
166 int locatePointOnXY(
const SbVec3f &coord,
float tolerance,
SbVec3f &pcoord,
167 int indx,
int indy)
const;
169 float m_translateXPcoord, m_translateYPcoord;
170 float m_coordToPcoordMatrixMa, m_coordToPcoordMatrixMb,
171 m_coordToPcoordMatrixMc, m_coordToPcoordMatrixMd;
174 SbBool m_2DCell, m_isValid;
175 int m_ignoredProjCoord;
176 static int c_edgeNodes[3][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 triangle 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.
PbTriangleCell & operator=(const PbTriangleCell &cell)
Assignment operator.
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 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 float getArea() const
Gets the area of a cell.
PbTriangleCell(const PbTriangleCell &cell)
Copy constructor.
~PbTriangleCell()
Destructor.
virtual float getLongestEdgeLength() const
Gets the length of the longest edge of the cell.
virtual int locatePoint(const SbVec3f &coord, float tolerance, SbVec3f &pcoord) const
Returns 1 if the point is inside the cell, 0 otherwise.
virtual void getWeight(const SbVec3f &pcoord, float *weight) const
Gets the 3 weights of a point defined by its parametric coordinates.
virtual float getVolume() const
Returns always 0.
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.
PbTriangleCell(const PbMesh *owner_mesh)
Constructor of a default simple cell.