bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class OCCTEdge

    Index

    Constructors

    • Parameters

      • occWorkerManager: OCCTWorkerManager

      Returns OCCTEdge

    constraint

    extract

    from

    from base

    • Creates linear edge from base line format {start: Point3, end: Point3}

      Parameters

      Returns Promise<TopoDSEdgePointer>

      OpenCascade edge

      edge from base line

      true

    • Creates linear edges from base lines format {start: Point3, end: Point3}[]

      Parameters

      Returns Promise<TopoDSEdgePointer[]>

      OpenCascade edges

      edges from base lines

      true

    get

    • Gets corner points of edges for a shape. There's no order guarantee here. All duplicates are removed, so when three edges form one corner, that will be represented by a single point in the list.

      Parameters

      Returns Promise<Point3[]>

      List of points

      corners

      true

    • Gets the edge lengths of the shape

      Parameters

      Returns Promise<number[]>

      Lengths

      edge lengths of shape

      false

    get circular edge

    • Gets the center point of the circular edge. If edge is not circular, point will not be returned.

      Parameters

      Returns Promise<Point3>

      Point representing center of the circular edge

      get center of circular edge

      true

    • Gets the radius of the circular edge. If edge is not circular, radius will not be returned.

      Parameters

      Returns Promise<number>

      Radius of the circular edge

      get radius of circular edge

      false

    • Gets the direction vector of the plane of the circular edge. If edge is not circular, direction vector will not be returned.

      Parameters

      Returns Promise<Vector3>

      Direction vector of the circular edge

      get plane direction of circular edge

      true

    is

    • Checks whether an edge is linear

      Parameters

      Returns Promise<boolean>

      boolean if is linear

      is edge linear

      false

    • Checks whether an edge is circular

      Parameters

      Returns Promise<boolean>

      boolean if is circular

      is edge circular

      false

    primitives

    shapes