Bitbybit Docs
    Preparing search index...

    Class LoadStlDto (Inputs.OCCT)

    An STL file for io.loadStl, which reads its triangles into a shape: one planar face per triangle, or one face that carries the whole mesh.

    Index

    Constructors

    • Parameters

      • OptionalstlData: string | ArrayBuffer | Uint8Array<ArrayBufferLike> | Blob | File
      • OptionalasFaces: boolean
      • OptionaladjustZtoY: boolean
      • OptionalupAxis: upAxisConversionEnum

      Returns LoadStlDto

    Properties

    stlData: string | ArrayBuffer | Uint8Array<ArrayBufferLike> | Blob | File

    The STL file, ASCII or binary: the text of an ASCII file, or the file as ArrayBuffer, Uint8Array, File or Blob.

    undefined
    
    asFaces?: boolean

    When true, each triangle becomes a planar face that sewing can join into a shell; when false, one face carries the whole mesh, light to draw but not for modelling.

    false
    

    Whether the shape turns: zUpToYUp turns the file's Z-up into this library's Y-up, and keep leaves the file's axes. yUpToZUp is refused.

    zUpToYUp
    
    adjustZtoY?: boolean

    When false, the shape keeps its axes as keep does; true, its old default, decides nothing. False wins over upAxis at its default; beside another chosen turn it is refused.

    Give upAxis instead; this flag goes in the next major version.

    undefined
    

    true