S3D.mesher


This namespace provides methods to interact with the plate mesher.


S3D.mesher.meshPlates#

Description: Mesh a plate.

Operation Type: Synchronous

Params: S3D.mesher.meshPlates(Object)

Object properties:

KeyTypeAcceptsDescription
plateIDs[integer]An array of integers.A list of plate IDs to be meshed.
b_nDivisionsintegerA normal number.Divisions along the breadth.
h_nDivisionsintegerA normal number.Divisions along the height.
structuredMeshMethodfloat0 = Quadrilaterals
The shape to mesh.

Sample:

meshPlate.js
S3D.mesher.meshPlates({
plateIDs: [1, 2, 3],
b_nDivisions: 5,
h_nDivisions: 5,
structuredMeshMethod: 0, //quads
});

S3D.mesher.unMeshPlates#

Description: Unmesh a plate.

Operation Type: Synchronous

Params: S3D.mesher.unMeshPlates(plateIds, refresh)

KeyTypeAcceptsDescription
plateIds[integer]An array of integers.A list of plate IDs to be unmeshed.
refresh booleantrue, false.Whether to refresh the UI on finish.

Sample:

meshPlate.js
S3D.mesher.unMeshPlates([3], true); //unmeshes plate 3 and updates the UI