OpenCascade.js
API ReferenceModelingAlgorithmsTKMesh

IMeshTools

OCCT package IMeshTools: IMeshTools_Context, IMeshTools_CurveTessellator, IMeshTools_MeshAlgo, IMeshTools_MeshAlgoFactory, and 7 more bound classes.

IMeshTools_Context

Interface class representing context of BRepMesh algorithm. Intended to cache discrete model and instances of tools for its processing.

Constructors(1)

Static methods(2)

Instance methods(23)

IMeshTools_CurveTessellator

Interface class providing API for edge tessellation tools.

Static methods(2)

Instance methods(3)

  • PointsNb(): number

    Returns number of tessellation points.

  • Value(theIndex: number, thePoint: gp_Pnt, theParameter: number): { returnValue: boolean; theParameter: number }

    Returns parameters of solution with the given index.

    Parameters (3)
    • theIndex
      index of tessellation point.
    • thePoint
      tessellation point. Mutated in place; read the updated value from this argument after the call.
    • theParameter
      parameters on PCurve corresponded to the solution.
    Returns

    A result object with fields:

    • returnValue: True in case of valid result, false elewhere.
    • theParameter: parameters on PCurve corresponded to the solution.

IMeshTools_MeshAlgoFactory

Base interface for factories producing instances of triangulation algorithms taking into account type of surface of target face.

Static methods(2)

Instance methods(2)

IMeshTools_MeshBuilder

Builds mesh for each face of shape without triangulation. In case if some faces of shape have already been triangulated checks deflection of existing polygonal model and re-uses it if deflection satisfies the specified parameter. Otherwise nullifies existing triangulation and build triangulation anew.
The following statuses are used: Message_Done1 - algorithm has finished without errors. Message_Fail1 - invalid context. Message_Fail2 - algorithm has faced unexpected error. Message_Fail3 - fail to discretize edges. Message_Fail4 - can't heal discrete model. Message_Fail5 - fail to pre-process model. Message_Fail6 - fail to discretize faces. Message_Fail7 - fail to post-process model. Message_Warn1 - shape contains no objects to mesh.

Constructors(2)

Static methods(2)

Instance methods(4)

IMeshTools_ModelBuilder

Interface class represents API for tool building discrete model.
The following statuses should be used by default: Message_Done1 - model has been successfully built. Message_Fail1 - empty shape. Message_Fail2 - model has not been build due to unexpected reason.

Static methods(2)

Instance methods(2)

IMeshTools_Parameters

Structure storing meshing parameters.

Constructors(1)

Static methods(1)

  • RelMinSize(): number

    Returns factor used to compute default value of MinSize (minimum mesh edge length) from deflection.

Properties(15)