Bitbybit Docs
    Preparing search index...

    Class DocToMeshesDto<U>

    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 XCAF document to mesh. Each of its free (top-level) shapes is meshed into a separate mesh (one array entry), with per-face colours resolved from the document into each colorGroups map.

    undefined
    
    precision: number

    Precision of the mesh

    0.01
    

    0

    Infinity

    0.001

    adjustYtoZ: boolean

    Adjust Y (up) coordinate system to Z (up) coordinate system

    false
    
    computeMetadata?: boolean

    Compute additional per-face and per-edge metadata (area, length, centers of mass, surface/curve type, tolerance, adjacency, UIDs). Adds cost; base mesh is unchanged when false.

    false
    
    keepMeshData?: boolean

    Keep the cached triangulation on each shape after meshing. When false (default) the mesh data is flushed so it does not accumulate in memory across calls.

    false
    
    allowQualityDecrease?: boolean

    Allow re-meshing to a lower resolution triangulation than one already cached on a shape (OCCT IMeshTools_Parameters.AllowQualityDecrease).

    true
    
    forceFaceDeflection?: boolean

    Force every face to be re-meshed to the requested precision regardless of any cached triangulation (OCCT IMeshTools_Parameters.ForceFaceDeflection).

    false