Bitbybit Docs
    Preparing search index...

    Class ExportDocumentToGltfWithDracoDto<T> (Inputs.OCCT)

    用于 assembly.manager.exportDocumentToGltfWithDraco 的文档、网格化设置和 Draco 设置,它写出一个 Draco 压缩的 glTF。

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionaldocument: T
      • OptionalmeshDeflection: number
      • OptionalmeshAngle: number
      • OptionalmergeFaces: boolean
      • OptionalforceUVExport: boolean
      • OptionalfileName: string
      • OptionaltryDownload: boolean

      Returns ExportDocumentToGltfWithDracoDto<T>

    Properties

    document: T

    来自 buildAssemblyDocumentloadStepToDoc 的文档。

    undefined
    
    meshDeflection: number

    三角形贴合曲面的紧密程度,以模型单位表示;越小网格越精细。

    0.1
    
    meshAngle: number

    相邻三角形法线之间的最大夹角,以弧度为单位;越小曲线越光滑。

    0.5
    
    internalVerticesMode: boolean

    为 true 时,在弯曲的面内部添加额外顶点以更紧密地贴合,代价是速度。

    false
    
    controlSurfaceDeflection: boolean

    为 true 时,额外一遍处理细化超出偏差的凸起三角形,代价是速度。

    false
    
    mergeFaces: boolean

    为 true 时,材质相同的面被合并成一个网格;false 保持每个面独立。

    false
    
    forceUVExport: boolean

    为 true 时,即使网格没有纹理也写出纹理坐标。

    false
    
    fileName: string

    下载文件所获得的名称;应以 .glb 结尾。

    assembly.glb
    
    tryDownload: boolean

    为 true 时,在可能的情况下启动该文件的浏览器下载;内核本身只返回字节。

    false
    
    useDraco: boolean

    为 true 时,几何用 Draco 压缩。

    true
    
    dracoCompressionLevel: number

    Draco 压缩的强度,从 0 表示最快最大到 10 表示最慢最小。

    7
    

    0

    10

    1

    dracoQuantizePositionBits: number

    每个顶点位置保留多少位;位数越少文件越小,精度也越低。

    14
    

    0

    31

    1

    dracoQuantizeNormalBits: number

    每个法线保留多少位;位数越少文件越小,精度也越低。

    10
    

    0

    31

    1

    dracoQuantizeTexcoordBits: number

    每个纹理坐标保留多少位;位数越少文件越小,精度也越低。

    12
    

    0

    31

    1

    dracoQuantizeColorBits: number

    每个顶点颜色保留多少位;位数越少文件越小,精度也越低。

    8
    

    0

    31

    1

    dracoQuantizeGenericBits: number

    其他顶点属性保留多少位;位数越少文件越小,精度也越低。

    12
    

    0

    31

    1

    dracoUnifiedQuantization: boolean

    为 true 时,所有属性使用同一个量化网格,而不是每个属性各一个。

    false