25#ifndef _PB_QUADRANGLECELL_
26#define _PB_QUADRANGLECELL_
28#include <MeshViz/3Ddata/PbCell.h>
143 SbBool set(
int index,
int *node_ids,
const float *x,
const float *y);
150 SbBool set(
int index,
int *node_ids,
const float *x,
const float *y,
const float *z);
157 SbBool set(
int index,
int *node_ids,
float x_min,
float y_min,
float x_max,
float y_max,
const float *z);
160 return c_edgeNodes[edge];
164 void print(FILE *fp)
const;
169 virtual unsigned char getIsosurfCaseId(SbBoolVector &nodes_sign)
const;
175 int locatePointOnXY(
const SbVec3f &coord,
const SbVec3f &proj_coord,
float tolerance,
SbVec3f &pcoord,
int indx,
int indy)
const;
178 static int c_edgeNodes[4][2];
183PbQuadrangleCell::getIsosurfCaseId(SbBoolVector &)
const
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 quadrangle cel...
PbQuadrangleCell(const PbMesh *owner_mesh)
Constructor of a default simple 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.
void getDerivs(const SbVec3f &pcoord, float *derivs) const
Gets the derivs of a point defined by its parametric coordinates.
PbQuadrangleCell & operator=(const PbQuadrangleCell &cell)
Assignment operator.
PbQuadrangleCell(const PbQuadrangleCell &cell)
Copy constructor.
virtual float getLongestEdgeLength() const
Gets the length of the longest edge of the cell.
~PbQuadrangleCell()
Destructor.
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 float getArea() const
Gets the area of a 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 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.
virtual void getWeight(const SbVec3f &pcoord, float *weight) const
Gets the 4 weights of a point defined by its parametric coordinates.
virtual int locatePoint(const SbVec3f &coord, float tolerance, SbVec3f &pcoord) const
Returns 1 if the point is inside the cell, 0 otherwise.