Bitbybit Docs
    Preparing search index...

    Class OffsetDto<T, U> (Inputs.OCCT)

    A shape and a distance for operations.offset, which moves the shape's boundary outward or inward with rounded corners.

    Type Parameters

    • T
    • U
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T
      • U

      Parameters

      • Optionalshape: T
      • Optionalface: U
      • Optionaldistance: number
      • Optionaltolerance: number

      Returns Bit.Inputs.OCCT.OffsetDto<T, U>

    Properties

    shape: T

    The shape to offset: a wire, edge, face, shell or solid.

    undefined
    
    face?: U

    For a wire or edge, a face whose surface the offset is drawn on; leave it out to offset in the wire's own plane.

    undefined
    

    true

    distance: number

    How far the boundary moves, in model units; negative moves it inward, 0 returns the shape as it is.

    0.2
    

    -Infinity

    Infinity

    0.1

    tolerance: number

    How close two points must be to count as the same when the offset is built, in model units.

    0.1
    

    0

    Infinity

    0.01