Bitbybit Docs
    Preparing search index...

    Class CreateLatheDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.createLathe: the profile to revolve around the Y axis, an outward offset, how finely and how far it is revolved and whether the ends close.

    Index

    Constructors

    • Parameters

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

      Returns CreateLatheDto

    Properties

    shape: Vector3[]

    The profile as points in the XY plane, X being the distance from the axis, revolved around Y

    radius: number

    Extra distance the profile is pushed away from the axis, in scene units

    1
    

    0

    Infinity

    0.1

    tessellation: number

    Number of steps in a full turn; more is rounder

    64
    

    3

    Infinity

    1

    arc: number

    How much of a full turn is revolved, from 0 to 1; below 1 the shape is open

    1
    

    0

    1

    0.1

    closed: boolean

    When true and the arc is full, the seam is closed so the surface has no gap

    true
    
    sideOrientation: sideOrientationEnum

    Which side of each face is drawn: the front, the back or both; single-sided meshes are invisible from behind

    doubleside
    
    enableShadows: boolean

    When true, the mesh casts and receives shadows from the lights that have them enabled

    true