Click or drag to resize
PbMesh2DGetFaultMesh Method (Int32, Int32, SbVec3f, PbMesh2DExtrapolationMethods, PbDefinedValue)

Builds a new mesh by inserting some fault lines in this mesh.

Namespace: OIV.MeshViz.Data
Assembly: OIV.MeshViz (in OIV.MeshViz.dll) Version: 2023.1.3.0 (2023.1.3)
Syntax
public PbMesh2D GetFaultMesh(
	int num_fault_lines,
	int[] fault_line_sizes,
	SbVec3f[] coord,
	PbMesh2DExtrapolationMethods extrapol_method,
	PbDefinedValue definedValue
)

Parameters

num_fault_lines
Type: SystemInt32

number of fault lines.

fault_line_sizes
Type: SystemInt32

each element in this array is the number of points in each line. For instance, if fault_line_sizes = {3,5}, two fault lines are inserted; the first one has 3 points and the second one has 5 points.

coord
Type: OIV.InventorSbVec3f

the coordinate of each point of the fault lines. For instance, if fault_line_sizes = {3,5}, coord must contain 8 elements. coord[0] ... coord[2] are the coordinates of the first fault line and coord[3] ... coord[7] are the coordinates of the second fault line. LIMITATION: These coordinates must be inside the mesh.

extrapol_method
Type: OIV.MeshViz.DataPbMesh2DExtrapolationMethods

type of extrapolation used to compute the nodes values on the fault lines. See OIV.MeshViz.Data.PbMesh2D.ExtrapolationMethods

definedValue
Type: OIV.MeshViz.DataPbDefinedValue

instance of a class that is used to determine if a node has a value that should be considered as "defined" or "undefined". getFaultMesh needs to know this because only adjacent nodes with "defined" values are taken into account when computing the value of a node on the fault line. When all adjacent nodes are "undefined", the value at a point of the fault line is set to PbDefinedValue.getUndef(). The default instance of OIV.MeshViz.Data.PbDefinedValue assumes all nodes are "defined" (because PbDefinedValue.operator()() returns always true) and that the "undefined" value is 0 (PbDefinedValue.getUndef() returns 0). OIV.MeshViz.Data.PbDefinedValue should be subclassed to change these default behaviors.

Return Value

Type: PbMesh2D
Remarks

Each point of the fault line is inserted in the new mesh to cut the cells. The resulting mesh contains the fault lines as holes with "null width".

LIMITATIONS: The coordinates of the fault line must not be outside the mesh geometry. Furthemore, this method may not work correctly if the fault lines contain many segments that cross other segments or if some segments are tangent or almost tangent to other segments.

See Also