Bitbybit Docs
    Preparing search index...

    Class TransformDto<T> (Inputs.OCCT)

    A shape and a scale, rotation and translation for transforms.transform, applied in that order about the origin.

    Type Parameters

    • T
    Index

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionalshape: T
      • Optionaltranslation: Vector3
      • OptionalrotationAxis: Vector3
      • OptionalrotationAngle: number
      • OptionalscaleFactor: number

      Returns Bit.Inputs.OCCT.TransformDto<T>

    Properties

    shape: T

    The shape to transform; it stays as it is and a transformed copy comes back.

    undefined
    
    translation: Vector3

    The vector the shape moves by, in model units, applied last.

    [0,0,0]
    
    rotationAxis: Vector3

    The direction of the rotation axis, which passes through the origin.

    [0,1,0]
    
    rotationAngle: number

    The rotation about the axis, in degrees, applied after the scale.

    0
    

    0

    360

    1

    scaleFactor: number

    The uniform scale about the origin, applied first; 1 keeps the size.

    1
    

    0

    Infinity

    0.1