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
      • OptionalangularDeflection: number
      • OptionalrelativeDeflection: 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

    true

    Infinity

    0.001

    angularDeflection?: number

    The largest angle, in radians, a curved face may turn between neighbouring triangles; smaller follows curvature more closely with more triangles.

    0.5
    

    0.001

    3.14159

    0.05

    relativeDeflection?: boolean

    When true, precision is a fraction of each edge's and face's size instead of model units, so small and large parts get triangles in proportion to their size.

    false
    
    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 triangulations stay on the shapes for the next mesh with the same settings to reuse; when false they are cleared. A mesh retention budget keeps every mesh.

    false
    
    allowQualityDecrease?: boolean

    When true, a face whose triangulation is not within 10% of the precision it needs is meshed again; when false, a finer one is kept.

    true
    
    forceFaceDeflection?: boolean

    When true, every face is meshed at exactly the requested precision; when false, a face's precision is raised to the average of its edges' and to twice its tolerance.

    false