24#ifndef _PB_TRIANGLEMESH2D_
25#define _PB_TRIANGLEMESH2D_
78 int num_triangles,
const int32_t *triangle_index,
85 PbTriangleMesh2D(
int num_nodes,
const float *x_nod,
const float *y_nod,
const float *z_nod,
86 int num_triangles,
const int32_t *triangle_index,
108 {
return !(m1 == m2); }
113 void setGeometry(
int num_nodes,
const float *x_nod,
const float *y_nod,
114 int num_triangles,
const int *triangle_index);
120 void setGeometry(
int numPoints,
const float *xPointsField,
const float *yPointsField) ;
125 void setGeometry(
int num_nodes,
const float *x_nod,
const float *y_nod,
const float *z_nod,
126 int num_triangles,
const int *triangle_index);
133 void getGeometry(
int &num_nodes,
const float *&x_nod,
const float *&y_nod,
134 int &num_triangles,
const int32_t *&triangle_index)
const;
141 void getGeometry(
int &num_nodes,
const float *&x_nod,
const float *&y_nod,
const float* &z_nod,
142 int &num_triangles,
const int32_t *&triangle_index)
const;
149 void getGeometry(
int &num_nodes,
const float *&x_nod,
const float *&y_nod,
150 int &num_triangles,
const int32_t **&triangle_index)
const;
157 void getGeometry(
int &num_nodes,
const float *&x_nod,
const float *&y_nod,
const float* &z_nod,
158 int &num_triangles,
const int32_t **&triangle_index)
const;
188 void meshContouring(PiContouring *_PiContouring,
const float *z)
const;
194 void evaluateFaultNode(
int fault_node,
const PbArrayOfInt &adjacent_nodes,
195 int first_fault_node_id,
int num_set,
float **val);
196 void evaluateFaultNodeWithDerivs(
int fault_node,
const PbArrayOfInt &adjacent_nodes,
197 int first_fault_node_id,
int num_set,
float **val);
199 virtual int getAdjacentCellAround(
int cellIndex,
PbArrayOfInt &edge);
201 void print(FILE *fp)
const;
205 void updateCellBoundingBox()
const;
206 void updateOwnerCellsList()
const;
210 void constructXYGeometry(
int num_nodes,
const float *x_nod,
const float *y_nod,
211 int num_triangles,
const int32_t *triangle_index,
212 SbBool is_data_duplicate);
213 void setXYGeometry(
int num_nodes,
const float *x_nod,
const float *y_nod,
214 int num_triangles,
const int *triangle_index);
216 SbBool m_isVoronoiGeometry ;
217 int32_t **triangleIndex;
#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 triangle cell ...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Defines a surface mesh o...
~PbTriangleMesh2D()
Destructor.
PbTriangleMesh2D(int num_nodes, const float *x_nod, const float *y_nod, const float *z_nod, int num_triangles, const int32_t *triangle_index, SbBool is_data_duplicate=TRUE)
Constructor of a 3D surface mesh.
PbTriangleMesh2D(const PbTriangleMesh2D &mesh)
Copy constructor.
PbTriangleMesh2D(SbBool isDataDuplicate=TRUE)
Constructor of a default simple mesh.
void getGeometry(int &num_nodes, const float *&x_nod, const float *&y_nod, int &num_triangles, const int32_t **&triangle_index) const
Gets the current mesh geometry (x, y nodes coordinates).
friend int operator!=(const PbTriangleMesh2D &m1, const PbTriangleMesh2D &m2)
Inequality comparison operator.
PbTriangleMesh2D(int num_nodes, const float *x_nod, const float *y_nod, int num_triangles, const int32_t *triangle_index, SbBool is_data_duplicate=TRUE)
Constructor of a 2D surface mesh.
void setElemOrientation(ElemOrientation elem_orient)
Changes orientation of cells during visualization of 2D surface mesh.
void getGeometry(int &num_nodes, const float *&x_nod, const float *&y_nod, const float *&z_nod, int &num_triangles, const int32_t *&triangle_index) const
Gets the current mesh geometry (x, y and z nodes coordinates).
virtual const PbCell * getCell(int cell_index) const
Gets the cell which index is cell_index.
virtual void getNodesOwnerCellsInd(const PbArrayOfInt &nod_indices, PbArrayOfInt &owner_cells) const
Gets the list of index of cells that own the node "nod_index".
void setGeometry(int numPoints, const float *xPointsField, const float *yPointsField)
Set a new 2D geometry from a points field.
friend int operator==(const PbTriangleMesh2D &m1, const PbTriangleMesh2D &m2)
Equality comparison operator.
void setGeometry(int num_nodes, const float *x_nod, const float *y_nod, int num_triangles, const int *triangle_index)
Sets a new 2D geometry.
void getGeometry(int &num_nodes, const float *&x_nod, const float *&y_nod, const float *&z_nod, int &num_triangles, const int32_t **&triangle_index) const
Gets the current mesh geometry (x, y and z nodes coordinates).
void setGeometry(int num_nodes, const float *x_nod, const float *y_nod, const float *z_nod, int num_triangles, const int *triangle_index)
Sets a new 3D geometry.
PbTriangleMesh2D & operator=(const PbTriangleMesh2D &mesh)
Assignment operator.
void getGeometry(int &num_nodes, const float *&x_nod, const float *&y_nod, int &num_triangles, const int32_t *&triangle_index) const
Gets the current mesh geometry (x, y nodes coordinates).
<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...