Bitbybit Docs
    Preparing search index...

    Class ShapesToMeshesDto<T> (Inputs.OCCT)

    Shapes and meshing settings for shapesToMeshes, which triangulates each shape with the same settings.

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionalshapes: T[]
      • Optionalprecision: number
      • OptionaladjustYtoZ: boolean
      • OptionalcomputeMetadata: boolean
      • OptionalkeepMeshData: boolean
      • OptionalallowQualityDecrease: boolean
      • OptionalforceFaceDeflection: boolean

      Returns ShapesToMeshesDto<T>

    Properties

    shapes: T[]

    The shapes to triangulate, one mesh per shape.

    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 meshes are 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 each 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