Bitbybit Docs
    Preparing search index...

    Class SavePlyDto<T> (Inputs.OCCT)

    A shape, a file name and meshing options for io.saveShapePly, which triangulates the shape and writes it as an ASCII PLY file with normals.

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionalshape: T
      • OptionalfileName: string
      • Optionalprecision: number
      • OptionaladjustYtoZ: boolean
      • OptionaltryDownload: boolean
      • OptionalupAxis: upAxisConversionEnum

      Returns SavePlyDto<T>

    Properties

    shape: T

    The shape written to the file.

    undefined
    
    fileName?: string

    The name the downloaded file gets.

    shape.ply
    
    precision?: number

    The meshing tolerance in model units; a smaller value follows curved surfaces more closely and makes a bigger file.

    0.01
    

    1e-7

    Infinity

    0.001

    yUpToZUp writes the file Z-up for CAD programs, Y and Z swapped when no conventions are set; keep writes the model's axes. zUpToYUp is refused.

    keep
    
    adjustYtoZ?: boolean

    When true, the file is turned as upAxis yUpToZUp does; false, its old default, decides nothing. True 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

    tryDownload?: boolean

    When true, a browser download of the file is started where that is possible; the kernel itself only returns the text.

    true