Bitbybit Docs
    Preparing search index...

    Class ShapeToMeshDto<T> (Inputs.OCCT)

    A shape and meshing settings for shapeToMesh, which triangulates the shape for drawing.

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionalshape: T
      • Optionalprecision: number
      • OptionaladjustYtoZ: boolean
      • OptionalcomputeMetadata: boolean
      • OptionalkeepMeshData: boolean
      • OptionalallowQualityDecrease: boolean
      • OptionalforceFaceDeflection: boolean

      Returns ShapeToMeshDto<T>

    Properties

    shape: T

    The shape to triangulate.

    undefined
    
    precision: number

    The meshing tolerance in model units; a smaller value follows curved surfaces more closely with more triangles.

    0.01
    

    0

    Infinity

    0.001

    adjustYtoZ: boolean

    When true, the mesh is turned so this library's Y-up becomes Z-up, for tools that treat Z as up.

    false
    
    computeMetadata?: boolean

    When true, each face and edge entry also carries its area or length, center of mass, surface or curve type, tolerance and neighbors, at extra cost.

    false
    
    keepMeshData?: boolean

    When true, the triangulation stays cached on the shape; when false it is cleared afterwards so memory does not grow across calls.

    false
    
    allowQualityDecrease?: boolean

    When true, a shape already meshed more finely may be remeshed at the coarser precision asked for.

    true
    
    forceFaceDeflection?: boolean

    When true, every face is remeshed at the requested precision even when a triangulation is cached.

    false