Bitbybit Docs
    Preparing search index...

    Class ScaleFromCenterDto<T> (Inputs.OCCT)

    A shape, a factor and a center for transforms.scaleFromCenter, which scales uniformly about the center.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionalshape: T
      • Optionalfactor: number
      • Optionalcenter: Point3

      Returns ScaleFromCenterDto<T>

    Properties

    shape: T

    The shape to scale; it stays as it is and a scaled copy comes back.

    undefined
    
    factor: number

    The uniform scale factor; 2 doubles every size, 0.5 halves it.

    1
    

    0.1

    center: Point3

    The point that stays in place while everything else scales away from or toward it.

    [0, 0, 0]