public class PbTriangleMesh2D extends PbIndexedMesh2D implements java.lang.Cloneable
The nodes coordinates are defined by 2 (or 3) arrays x_nod, y_nod, (and z_nod) of num_nodes floats. The triangles are defined by the array triangle_index of num_triangles*3 integers. triangle_index[(n*3)+p] is the p-th node index of the n-th triangle of the mesh (0 <= p <= 3).
Each edge of a triangle may have 2 references in the mesh, that is, one edge is common to 2 triangles. The edges which are referred to once in the mesh define the limits of the mesh.
The geometry of this mesh can be defined also from a points field. In this case the Voronoi method is used to build the triangle mesh.
The values on the mesh nodes are defined by the PbMesh.addValuesSet(set_index,val) method, where val argument is an array of num_nodes floats.
PbIndexedMesh2D.ElemOrientations, PbIndexedMesh2D.NodesInfoPbMesh2D.ExtrapolationMethodsPbMesh.CellBox, PbMesh.ContainingCell, PbMesh.CoordinatesInfo, PbMesh.DataBindingsInventor.ConstructorCommandORIENTATION_AS_IS, ORIENTATION_ZNEG, ORIENTATION_ZPOSUSE_ADJACENT_DERIVS, USE_ADJACENT_VALUESVERBOSE_LEVEL, ZeroHandle| Constructor and Description |
|---|
PbTriangleMesh2D()
Calls PbTriangleMesh2D(true).
|
PbTriangleMesh2D(boolean isDataDuplicate)
Constructor of a default simple mesh.
|
PbTriangleMesh2D(int num_nodes,
float[] x_nod,
float[] y_nod,
float[] z_nod,
int num_triangles,
int[] triangle_index)
Calls PbTriangleMesh2D(num_nodes, x_nod, y_nod, z_nod, num_triangles, triangle_index, true).
|
PbTriangleMesh2D(int num_nodes,
float[] x_nod,
float[] y_nod,
float[] z_nod,
int num_triangles,
int[] triangle_index,
boolean is_data_duplicate)
Constructor of a 3D surface mesh.
|
PbTriangleMesh2D(int num_nodes,
float[] x_nod,
float[] y_nod,
int num_triangles,
int[] triangle_index)
Calls PbTriangleMesh2D(num_nodes, x_nod, y_nod, num_triangles, triangle_index, true).
|
PbTriangleMesh2D(int num_nodes,
float[] x_nod,
float[] y_nod,
int num_triangles,
int[] triangle_index,
boolean is_data_duplicate)
Constructor of a 2D surface mesh.
|
PbTriangleMesh2D(PbTriangleMesh2D mesh)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
void |
setGeometry(int numPoints,
float[] xPointsField,
float[] yPointsField)
Set a new 2D geometry from a points field.
|
void |
setGeometry(int num_nodes,
float[] x_nod,
float[] y_nod,
float[] z_nod,
int num_triangles,
int[] triangle_index)
Sets a new 3D geometry.
|
void |
setGeometry(int num_nodes,
float[] x_nod,
float[] y_nod,
int num_triangles,
int[] triangle_index)
Sets a new 2D geometry.
|
get2DNodes, getNodes, setElemOrientation, setGeometry, setGeometryaddVecsSet, addVecsSet, get2DBoundingBox, getFaultMeshaddStringsSet, addStringsSet, addValuesSet, addValuesSet, addValuesSet, addValuesSet, addVecsSet, addVecsSet, findContainingCell, findContainingCell, getArea, getBiggestCellBox, getBoundingBox, getCell, getCoordinates, getDirectValuesSet, getDirectVecsSet, getMaxValuesSet, getMaxVecsSet, getMinValuesSet, getMinVecsSet, getNodeCoord, getNumCells, getNumNodes, getNumStringsSet, getNumValuesSet, getNumVecsSet, getSmallestCellBox, getStringsSetName, getValuesBinding, getValuesSet, getValuesSetName, getVecsSet, getVecsSetName, getVolume, isDataDuplicated, removeAllStringsSet, removeAllValuesSet, removeAllVecsSet, removeStringsSet, removeValuesSet, removeVecsSet, setCoordinatesenableConnection, isConnectionEnabled, touchdispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreadspublic PbTriangleMesh2D(int num_nodes,
float[] x_nod,
float[] y_nod,
float[] z_nod,
int num_triangles,
int[] triangle_index)
public PbTriangleMesh2D(int num_nodes,
float[] x_nod,
float[] y_nod,
int num_triangles,
int[] triangle_index)
public PbTriangleMesh2D()
public PbTriangleMesh2D(PbTriangleMesh2D mesh)
public PbTriangleMesh2D(boolean isDataDuplicate)
PbMesh for more explanations about data duplication.public PbTriangleMesh2D(int num_nodes,
float[] x_nod,
float[] y_nod,
int num_triangles,
int[] triangle_index,
boolean is_data_duplicate)
PbMesh for more explanations about data duplication.public PbTriangleMesh2D(int num_nodes,
float[] x_nod,
float[] y_nod,
float[] z_nod,
int num_triangles,
int[] triangle_index,
boolean is_data_duplicate)
PbMesh for more explanations about data duplication.public java.lang.Object clone()
clone in class PbIndexedMesh2Dpublic void setGeometry(int num_nodes,
float[] x_nod,
float[] y_nod,
float[] z_nod,
int num_triangles,
int[] triangle_index)
public void setGeometry(int num_nodes,
float[] x_nod,
float[] y_nod,
int num_triangles,
int[] triangle_index)
public void setGeometry(int numPoints,
float[] xPointsField,
float[] yPointsField)
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com