jakke-graphics-ts
    Preparing search index...

    Function getIntersectionWithLine

    • Computes the intersection points between a given polyline and a line in 3D space. Iterates through each segment of the polyline and checks for intersection with the specified line. Returns an array of intersection points, each with its corresponding parameter t on the line, sorted in ascending order of t.

      Parameters

      • polyline: Polyline3d

        The polyline represented as an array of 3D vertices.

      • line: Line

        The line to test for intersections, defined by two 3D points (p0 and p1).

      Returns { pt: Vertex3d; t: number }[]

      An array of objects containing the intersection point (pt) and its parameter (t) on the line.