Extrusion.to_vertices_and_faces
- Extrusion.to_vertices_and_faces(n=16)
Discretise the extrusion into vertices and faces.
Constructs a prism from the (possibly sampled) profile polygon and the extrusion vector.
- Parameters:
- nint
Number of sample points for circular profiles.
- Returns:
- tuple[list[list[float]], list[list[int]]]
(vertices, faces)suitable forMesh.from_vertices_and_faces().