Plane.intersection_with_plane

Plane.intersection_with_plane(plane)[source]

Compute the intersection of two planes.

Parameters:
planecompas.geometry.Plane

The other plane.

Returns:
compas.geometry.Line | None

The intersection line, or None if the planes are parallel or coincident.

Examples

>>> plane1 = Plane.worldXY()
>>> plane2 = Plane([1.0, 1.0, 1.0], [0.0, 0.0, 1.0])
>>> plane1.intersection(plane2)
Line(Point(0.000, 0.000, 0.000), Vector(0.000, 0.000, 1.000))