Bitbybit Docs
    Preparing search index...

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

    A shape, a distance and corner options for operations.offsetAdv, which moves the shape's boundary outward or inward.

    Type Parameters

    • T
    • U
    Index

    Constructors

    • Type Parameters

      • T
      • U

      Parameters

      • Optionalshape: T
      • Optionalface: U
      • Optionaldistance: number
      • Optionaltolerance: number
      • OptionaljoinType: joinTypeEnum
      • OptionalremoveIntEdges: boolean

      Returns OffsetAdvancedDto<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

    joinType: joinTypeEnum

    How the offset pieces meet at corners: arc rounds them, intersection extends them to a sharp corner, tangent keeps them tangent.

    arc
    
    removeIntEdges: boolean

    When true, the internal edges the offset can leave behind are removed from the result.

    false