24#ifndef _PB_QUADRANGLEMESH2D_
25#define _PB_QUADRANGLEMESH2D_
78 int num_quadrangles,
const int32_t *quadrangle_index,
86 int num_quadrangles,
const int32_t *quadrangle_index,
108 {
return !(m1 == m2); }
113 void setGeometry(
int num_nodes,
const float *x_nod,
const float *y_nod,
114 int num_quadrangles,
const int *quadrangle_index);
119 void setGeometry(
int num_nodes,
const float *x_nod,
const float *y_nod,
const float *z_nod,
120 int num_quadrangles,
const int *quadrangle_index);
127 void getGeometry(
int &num_nodes,
const float *&x_nod,
const float *&y_nod,
128 int &num_quadrangles,
const int32_t *&quadrangle_index)
const;
135 void getGeometry(
int &num_nodes,
const float *&x_nod,
const float *&y_nod,
const float *&z_nod,
136 int &num_quadrangles,
const int32_t *&quadrangle_index)
const;
143 void getGeometry(
int &num_nodes,
const float *&x_nod,
const float *&y_nod,
144 int &num_quadrangles,
const int32_t **&quadrangle_index)
const;
151 void getGeometry(
int &num_nodes,
const float *&x_nod,
const float *&y_nod,
const float *&z_nod,
152 int &num_quadrangles,
const int32_t **&quadrangle_index)
const;
182 void meshContouring(PiContouring *_PiContouring,
const float *z)
const;
187 void print(FILE *fp)
const;
191 void updateCellBoundingBox()
const;
192 void updateOwnerCellsList()
const;
195 void constructXYGeometry(
int num_nodes,
const float *x_nod,
const float *y_nod,
196 int num_quadrangles,
const int32_t *quadrangle_index,
197 SbBool is_data_duplicate);
198 void setXYGeometry(
int num_nodes,
const float *x_nod,
const float *y_nod,
199 int num_quadrangles,
const int *quadrangle_index);
201 int32_t **quadrangleIndex;
#define TRUE
Possible value of SbBool.
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 a surface mesh o...
ElemOrientation
Cell orientation for visualization of 2D surface mesh.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a quadrangle cel...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a surface mesh o...
void getGeometry(int &num_nodes, const float *&x_nod, const float *&y_nod, int &num_quadrangles, const int32_t *&quadrangle_index) const
Gets the current mesh geometry (x, y nodes coordinates).
PbQuadrangleMesh2D(SbBool isDataDuplicate=TRUE)
Constructor of a default simple mesh.
friend int operator==(const PbQuadrangleMesh2D &m1, const PbQuadrangleMesh2D &m2)
Equality comparison operator.
void getGeometry(int &num_nodes, const float *&x_nod, const float *&y_nod, int &num_quadrangles, const int32_t **&quadrangle_index) const
Gets the current mesh geometry (x, y nodes coordinates).
PbQuadrangleMesh2D(int num_nodes, const float *x_nod, const float *y_nod, int num_quadrangles, const int32_t *quadrangle_index, SbBool isDataDuplicate=TRUE)
Constructor of a 2D surface mesh.
void setGeometry(int num_nodes, const float *x_nod, const float *y_nod, const float *z_nod, int num_quadrangles, const int *quadrangle_index)
Sets a new 3D geometry.
virtual void getNodesOwnerCellsInd(const PbArrayOfInt &nod_indices, PbArrayOfInt &owner_cells) const
Gets the list of index of cells that own the node "nod_index".
PbQuadrangleMesh2D(const PbQuadrangleMesh2D &mesh)
Copy constructor.
virtual void setElemOrientation(ElemOrientation elem_orient)
Changes orientation of cells during visualization of 2D surface mesh.
void setGeometry(int num_nodes, const float *x_nod, const float *y_nod, int num_quadrangles, const int *quadrangle_index)
Sets a new 2D geometry.
PbQuadrangleMesh2D & operator=(const PbQuadrangleMesh2D &mesh)
Assignment operator.
virtual const PbCell * getCell(int cell_index) const
Gets the cell which index is cell_index.
PbQuadrangleMesh2D(int num_nodes, const float *x_nod, const float *y_nod, const float *z_nod, int num_quadrangles, const int32_t *quadrangle_index, SbBool isDataDuplicate=TRUE)
Constructor of a 3D surface mesh.
void getGeometry(int &num_nodes, const float *&x_nod, const float *&y_nod, const float *&z_nod, int &num_quadrangles, const int32_t **&quadrangle_index) const
Gets the current mesh geometry (x, y and z nodes coordinates).
void getGeometry(int &num_nodes, const float *&x_nod, const float *&y_nod, const float *&z_nod, int &num_quadrangles, const int32_t *&quadrangle_index) const
Gets the current mesh geometry (x, y and z nodes coordinates).
~PbQuadrangleMesh2D()
Destructor.
friend int operator!=(const PbQuadrangleMesh2D &m1, const PbQuadrangleMesh2D &m2)
Inequality comparison operator.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Representation of vector...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Filled representation of...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Representation of the ed...