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.NodesInfo
PbMesh2D.ExtrapolationMethods
PbMesh.CellBox, PbMesh.ContainingCell, PbMesh.CoordinatesInfo, PbMesh.DataBindings
Inventor.ConstructorCommand
ORIENTATION_AS_IS, ORIENTATION_ZNEG, ORIENTATION_ZPOS
USE_ADJACENT_DERIVS, USE_ADJACENT_VALUES
VERBOSE_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, setGeometry
addVecsSet, addVecsSet, get2DBoundingBox, getFaultMesh
addStringsSet, 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, setCoordinates
enableConnection, isConnectionEnabled, touch
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public 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 PbIndexedMesh2D
public 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 January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com