Plane.intersections_with_curve

Plane.intersections_with_curve(curve, tol=None)[source]

Compute the intersection of a plane and a curve.

Parameters:
curvecompas.geometry.Curve

The curve.

tolfloat, optional

Tolerance for the dot product of the line vector and the plane normal. Default is TOL.absolute.

Returns:
list of compas.geometry.Point

The intersection points.

Examples

>>> plane = Plane.worldXY()
>>> line = Line(Point(0, 0, 1), Vector(1, 1, 1))
>>> plane.intersection_with_curve(line)
[Point(0.000, 0.000, 0.000)]