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])
>>> line = plane1.intersection_with_plane(plane2)