Network.from_lines

classmethod Network.from_lines(lines, precision=None)[source]

Construct a network from a set of lines represented by their start and end point coordinates.

Parameters:
lineslist[tuple[list[float, list[float]]]]

A list of pairs of point coordinates.

precisionint, optional

Precision for converting numbers to strings. Default is TOL.precision.

Returns:
compas.datastructures.Network

A network object.