Class Intersection

Provides static methods for the computation of intersections, projections, sections and similar.

Hierarchy

  • Intersection

Constructors

Methods

  • Try to closest points between two lines. If there's no valid crossing, null is returned.

    Returns

    The intersection event, or null if there's no intersection.

    Parameters

    • firstLine: Line

      first Line Line to intersect with.

    • secondLine: Line

      second Line to intersect with.

    • limitToFiniteSegment: boolean = false

      If true, the distance is limited to the finite line segment. default: false

    • distance: number = Infinity

      (default is Infinity) Distance between two lines to filter intersections. To include crossing lines, increase the distance

    Returns null | IntersectionEvent

  • Try to get an intersection point between this line and another line. If there's no intersection, null is returned.

    Returns

    The point at the intersetion, or null if there's no intersection.

    Parameters

    • firstLine: Line

      first Line Line to intersect with.

    • secondLine: Line

      second Line to intersect with.

    • limitToFiniteSegment: boolean = false

      If true, the distance is limited to the finite line segment. default: false

    • distance: number = Open3d.EPSILON

      (default is global tolerance) Distance between two lines to filter intersections. To include crossing lines, increase the distance

    Returns null | Point3d

  • tParameter closest tParameter on two lines. Lines can be interesecting or crossing, but not parallel

    Parameters

    • line1: Line

      first Line Line to intersect with.

    • line2: Line

      second Line to intersect with.

    Returns null | [number, number]

  • Intersects a line and a plane. This function only returns a single intersection point or null (i.e. if the line is coincident with the plane then no intersection is assumed).

    Returns

    The intersection point.

    Parameters

    • line: Line

      The line to intersect with.

    • plane: Plane

      The plane to intersect with.

    • limitToFiniteSegment: boolean = false

      If true, the intersection is limited to the finite line segment. default: false

    Returns null | Point3d

  • Intersects two planes and return the intersection line. If the planes are parallel or coincident, no intersection is assumed.

    Returns

    The intersection line or null.

    Parameters

    • planeA: Plane

      First plane for intersection.

    • planeB: Plane

      Second plane for intersection.

    Returns null | Line

  • Intersects three planes to find the single point they all share.

    Returns

    The intersection point or null.

    Parameters

    • planeA: Plane

      First plane for intersection.

    • planeB: Plane

      Second plane for intersection.

    • planeC: Plane

      Third plane for intersection.

    Returns null | Point3d

Generated using TypeDoc