Bitbybit Docs
    Preparing search index...

    Class DocToMeshDto<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 DocToMeshDto<U>

    Properties

    document: U

    The XCAF document to mesh. Its free (top-level) shapes are meshed as one combined mesh and per-face colours are resolved from the document into the colorGroups map of the output.

    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 the shape after meshing. When false (default) the mesh data is flushed off the shape 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 the 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