Mesh.from_lines
- classmethod Mesh.from_lines(lines, delete_boundary_face=False, precision=None)
Construct a mesh object from a list of lines described by start and end point coordinates.
- Parameters
lines (list[tuple[list[float], list[float]]]) – A list of pairs of point coordinates.
delete_boundary_face (bool, optional) – The algorithm that finds the faces formed by the connected lines first finds the face on the outside. In most cases this face is not expected to be there. Therefore, there is the option to have it automatically deleted.
precision (str, optional) – The precision of the geometric map that is used to connect the lines. Defaults to the value of
compas.PRECISION
.
- Returns
compas.datastructures.Mesh
– A mesh object.