BooleanResult.to_vertices_and_faces

BooleanResult.to_vertices_and_faces(n=16)

Discretise the boolean result into vertices and faces.

Note

This is an approximate discretisation that returns the first operand only. Exact boolean geometry would require boolean operations via OpenCascade.

Parameters:
nint

Number of sample points for circular profiles.

Returns:
tuple[list[list[float]], list[list[int]]]

(vertices, faces) suitable for Mesh.from_vertices_and_faces().