Bitbybit Docs
    Preparing search index...

    Class CreateTorusKnotDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.createTorusKnot: the size of a knotted tube, its segment counts and the two winding numbers that shape the knot.

    Index

    Constructors

    • Parameters

      • Optionalradius: number
      • Optionaltube: number
      • OptionalradialSegments: number
      • OptionaltubularSegments: number
      • Optionalp: number
      • Optionalq: number
      • OptionalsideOrientation: sideOrientationEnum
      • OptionalenableShadows: boolean

      Returns CreateTorusKnotDto

    Properties

    radius: number

    Overall radius of the knot, in scene units

    2
    

    0

    Infinity

    0.1

    tube: number

    Radius of the tube, in scene units

    0.5
    

    0

    Infinity

    0.1

    radialSegments: number

    Number of segments along the length of the tube; more is smoother

    128
    

    3

    Infinity

    1

    tubularSegments: number

    Number of segments around the tube; more is rounder

    32
    

    3

    Infinity

    1

    p: number

    How many times the tube winds around the axis of the ring; 2 with q 3 gives a trefoil

    2
    

    0

    Infinity

    1

    q: number

    How many times the tube winds through the hole of the ring; 3 with p 2 gives a trefoil

    3
    

    0

    Infinity

    1

    sideOrientation: sideOrientationEnum

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

    frontside
    
    enableShadows: boolean

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

    true