Bitbybit Docs
    Preparing search index...

    Class CreateLatheDto (Inputs.BabylonMeshBuilder)

    babylon.meshBuilder.createLathe 使用:绕 Y 轴旋转成形的轮廓、向外的偏移、旋转的精细程度和范围,以及端部是否闭合。

    Index

    Constructors

    • Parameters

      • Optionalshape: Vector3[]
      • Optionalradius: number
      • Optionaltessellation: number
      • Optionalarc: number
      • Optionalclosed: boolean
      • OptionalsideOrientation: sideOrientationEnum
      • OptionalenableShadows: boolean

      Returns CreateLatheDto

    Properties

    shape: Vector3[]

    以 XY 平面内的点表示的轮廓,X 为距轴的距离,绕 Y 旋转成形

    radius: number

    轮廓被推离轴的额外距离,以场景单位表示

    1
    

    0

    Infinity

    0.1

    tessellation: number

    一整圈的步数;越多越圆

    64
    

    3

    Infinity

    1

    arc: number

    旋转成形的圈数比例,从 0 到 1;小于 1 时形状开口

    1
    

    0

    1

    0.1

    closed: boolean

    为 true 且圆弧为整圈时,接缝闭合使曲面没有缝隙

    true
    
    sideOrientation: sideOrientationEnum

    绘制每个面的哪一侧:正面、背面或两者;单面网格从背后看不可见

    doubleside
    
    enableShadows: boolean

    为 true 时,网格从启用了阴影的灯光投射并接收阴影

    true