Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T

Hierarchy

  • OffsetDto

Index

Constructors

constructor

  • new OffsetDto<T>(crossSection?: T, delta?: number, joinType?: manifoldJoinTypeEnum, miterLimit?: number, circularSegments?: number): OffsetDto<T>
  • Type parameters

    • T

    Parameters

    • Optional crossSection: T
    • Optional delta: number
    • Optional joinType: manifoldJoinTypeEnum
    • Optional miterLimit: number
    • Optional circularSegments: number

    Returns OffsetDto<T>

Properties

circularSegments

circularSegments: number

Number of segments per 360 degrees of JoinType::Round corners (roughly, the number of vertices that will be added to each contour). Default is calculated by the static Quality defaults according to the radius.

default

32

minimum

0

maximum

Infinity

step

1

crossSection

crossSection: T

Revolve cross section shape

delta

delta: number

Positive deltas will cause the expansion of outlining contours to expand, and retraction of inner (hole) contours. Negative deltas will have the opposite effect.

default

1

minimum

-Infinity

maximum

Infinity

step

0.1

joinType

The join type specifying the treatment of contour joins (corners).

default

round

miterLimit

miterLimit: number

The maximum distance in multiples of delta that vertices can be offset from their original positions with before squaring is applied, when the join type is Miter (default is 2, which is the minimum allowed). See the Clipper2 MiterLimit page for a visual example.

default

2

minimum

2

maximum

Infinity

step

0.1

Generated using TypeDoc