Bitbybit Docs
    Preparing search index...

    Class CalmCupDto (Things.ThreeDPrinting.Cups.CalmCup)

    The parameter set for the Calm Cup, a shelled parametric cup with handles. Generic in its value types so the same list can be expressed for a plain script, where every value is a number, and for a driven model, where a value can be an expression or a bound input. Concrete DTOs fill those type parameters in; read this class for what the model is actually shaped by.

    Implements

    Index

    Constructors

    • Parameters

      • Optionalheight: number
      • OptionalradiusBottom: number
      • OptionalradiusTopOffset: number
      • Optionalthickness: number
      • Optionalfillet: number
      • OptionalnrOfHandles: number
      • OptionalhandleDist: number
      • Optionalprecision: number
      • Optionalrotation: number
      • Optionalscale: number
      • Optionalorigin: Point3
      • Optionaldirection: Vector3

      Returns CalmCupDto

    Properties

    height: number

    Height of the cup

    6
    

    0.1

    Infinity

    0.1

    radiusBottom: number

    Radius top offset

    4
    

    0

    Infinity

    0.1

    radiusTopOffset: number

    Radius top offset

    2
    

    0

    Infinity

    0.1

    thickness: number

    Thickness of the cup

    0.6
    

    0.05

    3

    0.01

    fillet: number

    Fillet of the cup

    0.2
    

    0.01

    Infinity

    0.01

    nrOfHandles: number

    Nr of handles, 0 will create a cup without handles

    1
    

    0

    2

    1

    handleDist: number

    Handle distance from the cup

    2
    

    0.1

    Infinity

    0.1

    precision: number

    Meshing precision of the drawn model. Scale scales precision as well. The lower the number the more precise the drawn model is. Keep in mind that output of this algorithm also contains pure occt shape that can be meshed separately in draw any async commands

    0.01
    

    0.000001

    5

    0.001

    rotation: number

    Rotation of the cup

    0
    

    0

    Infinity

    10

    scale: number

    Scale of the cup - affects edge width and precision

    1
    

    0

    Infinity

    10

    origin: Point3

    Origin of the medal

    [0, 0, 0]
    
    direction: Vector3

    Direction of the model

    [0, 1, 0]