Class PbQuadrangleMesh2D
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.meshviz.graph.PbBase
-
- com.openinventor.meshviz.data.PbMesh
-
- com.openinventor.meshviz.data.PbMesh2D
-
- com.openinventor.meshviz.data.PbIndexedMesh2D
-
- com.openinventor.meshviz.data.PbQuadrangleMesh2D
-
- All Implemented Interfaces:
java.lang.Cloneable
public class PbQuadrangleMesh2D extends PbIndexedMesh2D implements java.lang.Cloneable
Defines a surface mesh of quadrangles. Class to define an indexed 2D mesh made up of quadrangles cells. This mesh is defined by a list of quadrangles. Each quadrangles is defined by 4 indices of nodes.The nodes coordinates are defined by 2 (or 3) arrays x_nod, y_nod, (and z_nod) of num_nodes floats. The quadrangles are defined by the array quadrangle_index of num_quadrangles*4 integers. quadrangle_index[(n*4)+p] is the p-th node index of the n-th quadrangle of the mesh (0 <= p <= 4). Each quadrangle must be numbered by repecting the following rule : the edge linking the first and the second index must not be a diagonal of the quadrangle.
Each edge of a quadrangle may have 2 references in the mesh, that is, one edge is common to 2 quadrangles. The edges which are referred to once in the mesh define the limits of the 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openinventor.meshviz.data.PbIndexedMesh2D
PbIndexedMesh2D.ElemOrientations, PbIndexedMesh2D.NodesInfo
-
Nested classes/interfaces inherited from class com.openinventor.meshviz.data.PbMesh2D
PbMesh2D.ExtrapolationMethods
-
Nested classes/interfaces inherited from class com.openinventor.meshviz.data.PbMesh
PbMesh.CellBox, PbMesh.ContainingCell, PbMesh.CoordinatesInfo, PbMesh.DataBindings
-
Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
-
Field Summary
-
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
-
Constructor Summary
Constructors Constructor Description PbQuadrangleMesh2D()
Calls PbQuadrangleMesh2D(true).PbQuadrangleMesh2D(boolean isDataDuplicate)
Constructor of a default simple mesh.PbQuadrangleMesh2D(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_quadrangles, int[] quadrangle_index)
Calls PbQuadrangleMesh2D(num_nodes, x_nod, y_nod, z_nod, num_quadrangles, quadrangle_index, true).PbQuadrangleMesh2D(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_quadrangles, int[] quadrangle_index, boolean isDataDuplicate)
Constructor of a 3D surface mesh.PbQuadrangleMesh2D(int num_nodes, float[] x_nod, float[] y_nod, int num_quadrangles, int[] quadrangle_index)
Calls PbQuadrangleMesh2D(num_nodes, x_nod, y_nod, num_quadrangles, quadrangle_index, true).PbQuadrangleMesh2D(int num_nodes, float[] x_nod, float[] y_nod, int num_quadrangles, int[] quadrangle_index, boolean isDataDuplicate)
Constructor of a 2D surface mesh.PbQuadrangleMesh2D(PbQuadrangleMesh2D mesh)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
void
setGeometry(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_quadrangles, int[] quadrangle_index)
Sets a new 3D geometry.void
setGeometry(int num_nodes, float[] x_nod, float[] y_nod, int num_quadrangles, int[] quadrangle_index)
Sets a new 2D geometry.-
Methods inherited from class com.openinventor.meshviz.data.PbIndexedMesh2D
get2DNodes, getNodes, setElemOrientation, setGeometry, setGeometry
-
Methods inherited from class com.openinventor.meshviz.data.PbMesh2D
addVecsSet, addVecsSet, get2DBoundingBox, getFaultMesh
-
Methods inherited from class com.openinventor.meshviz.data.PbMesh
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
-
Methods inherited from class com.openinventor.meshviz.graph.PbBase
enableConnection, isConnectionEnabled, touch
-
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
-
-
-
Constructor Detail
-
PbQuadrangleMesh2D
public PbQuadrangleMesh2D()
Calls PbQuadrangleMesh2D(true).
-
PbQuadrangleMesh2D
public PbQuadrangleMesh2D(int num_nodes, float[] x_nod, float[] y_nod, int num_quadrangles, int[] quadrangle_index)
Calls PbQuadrangleMesh2D(num_nodes, x_nod, y_nod, num_quadrangles, quadrangle_index, true).
-
PbQuadrangleMesh2D
public PbQuadrangleMesh2D(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_quadrangles, int[] quadrangle_index)
Calls PbQuadrangleMesh2D(num_nodes, x_nod, y_nod, z_nod, num_quadrangles, quadrangle_index, true).
-
PbQuadrangleMesh2D
public PbQuadrangleMesh2D(int num_nodes, float[] x_nod, float[] y_nod, int num_quadrangles, int[] quadrangle_index, boolean isDataDuplicate)
Constructor of a 2D surface mesh. See alsoPbMesh
for more explanations about data duplication.
-
PbQuadrangleMesh2D
public PbQuadrangleMesh2D(boolean isDataDuplicate)
Constructor of a default simple mesh. See alsoPbMesh
for more explanations about data duplication.
-
PbQuadrangleMesh2D
public PbQuadrangleMesh2D(PbQuadrangleMesh2D mesh)
Copy constructor.
-
PbQuadrangleMesh2D
public PbQuadrangleMesh2D(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_quadrangles, int[] quadrangle_index, boolean isDataDuplicate)
Constructor of a 3D surface mesh. See alsoPbMesh
for more explanations about data duplication.
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classPbIndexedMesh2D
-
setGeometry
public void setGeometry(int num_nodes, float[] x_nod, float[] y_nod, float[] z_nod, int num_quadrangles, int[] quadrangle_index)
Sets a new 3D geometry.
-
setGeometry
public void setGeometry(int num_nodes, float[] x_nod, float[] y_nod, int num_quadrangles, int[] quadrangle_index)
Sets a new 2D geometry.
-
-