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

    杯子的高度

    6
    

    0.1

    Infinity

    0.1

    radiusBottom: number

    顶部半径偏移

    4
    

    0

    Infinity

    0.1

    radiusTopOffset: number

    顶部半径偏移

    2
    

    0

    Infinity

    0.1

    thickness: number

    杯子的厚度

    0.6
    

    0.05

    3

    0.01

    fillet: number

    杯子的圆角

    0.2
    

    0.01

    Infinity

    0.01

    nrOfHandles: number

    把手数量,0 将创建没有把手的杯子

    1
    

    0

    2

    1

    handleDist: number

    把手距杯子的距离

    2
    

    0.1

    Infinity

    0.1

    precision: number

    所绘制模型的网格化精度。缩放也会缩放精度。数值越小,绘制的模型越精确。请注意,该算法的输出还包含纯 occt 形状,可以在 draw any async 命令中单独网格化

    0.01
    

    0.000001

    5

    0.001

    rotation: number

    杯子的旋转

    0
    

    0

    Infinity

    10

    scale: number

    杯子的缩放 - 影响边宽和精度

    1
    

    0

    Infinity

    10

    origin: Point3

    奖牌的原点

    [0, 0, 0]
    
    direction: Vector3

    模型的方向

    [0, 1, 0]