Mesh.from_polylines

classmethod Mesh.from_polylines(boundary_polylines, other_polylines)

Construct mesh from polylines.

Based on construction from_lines, with removal of vertices that are not polyline extremities and of faces that represent boundaries.

This specific method is useful to get the mesh connectivity from a set of (discretised) curves, that could overlap and yield a wrong connectivity if using from_lines based on the polyline extremities only.

Parameters
  • boundary_polylines (list[list[float]]) – List of polylines representing boundaries as lists of vertex coordinates.

  • other_polylines (list[list[float]]) – List of the other polylines as lists of vertex coordinates.

Returns

compas.datastructures.Mesh – A mesh object.