Bitbybit Docs
    Preparing search index...

    Class DocToMeshesDto<U> (Inputs.OCCT)

    An assembly document and meshing settings for docToMeshes, which triangulates each top-level shape into its own mesh with the document's colors.

    Type Parameters

    • U
    Index

    Constructors

    • Type Parameters

      • U

      Parameters

      • Optionaldocument: U
      • Optionalprecision: number
      • OptionaladjustYtoZ: boolean
      • OptionalcomputeMetadata: boolean
      • OptionalkeepMeshData: boolean
      • OptionalallowQualityDecrease: boolean
      • OptionalforceFaceDeflection: boolean

      Returns DocToMeshesDto<U>

    Properties

    document: U

    The assembly document whose top-level shapes are meshed one by one; each shape's face colors end up in its mesh's color groups.

    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, neighbors and ids, at extra cost.

    false
    
    keepMeshData?: boolean

    When true, the triangulation stays cached on the shapes; 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