Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CrossSectionOperations

Index

Constructors

constructor

  • Parameters

    • manifoldWorkerManager: ManifoldWorkerManager

    Returns CrossSectionOperations

Methods

compose

  • Composes multiple cross sections or polygons into a single cross section

    group

    composition

    shortname

    compose

    drawable

    true

    Parameters

    Returns Promise<CrossSectionPointer>

    composed cross section

decompose

  • Decompose cross sections that are topologically disconnected, each containing one outline contour with zero or more holes.

    group

    composition

    shortname

    decompose

    drawable

    true

    Parameters

    Returns Promise<CrossSectionPointer[]>

    decomposed cross sections

extrude

  • Extrude the cross section to create a 3D shape

    group

    basic

    shortname

    extrude

    drawable

    true

    Parameters

    Returns Promise<ManifoldPointer>

    extruded manifold shape

hull

offset

  • Offsets the cross section to create a new cross section with a given delta (uses Clipper2 algorithm behind).

    group

    basic

    shortname

    offset

    drawable

    true

    Parameters

    Returns Promise<CrossSectionPointer>

    offset cross section

revolve

  • Revolve the cross section to create a 3D shape

    group

    basic

    shortname

    revolve

    drawable

    true

    Parameters

    Returns Promise<ManifoldPointer>

    extruded manifold shape

simplify

  • Remove vertices from the contours in this CrossSection that are less than the specified distance epsilon from an imaginary line that passes through its two adjacent vertices. Near duplicate vertices and collinear points will be removed at lower epsilons, with elimination of line segments becoming increasingly aggressive with larger epsilons.

    It is recommended to apply this function following Offset, in order to clean up any spurious tiny line segments introduced that do not improve offseting operations are to be performed, which would compound the issue.

    group

    basic

    shortname

    simplify

    drawable

    true

    Parameters

    Returns Promise<CrossSectionPointer>

    simplified cross section

Generated using TypeDoc