Surface#
- class Surface(lines: list[Line] | list[Point])[source]#
Bases:
objectA collection class to apply various graphical operations on a set of lines.
- Raises:
AssertionError – If the geometries are not all in the same plane.
- Parameters:
Methods
Draw the axis-aligned minimum bounding box of a list of points in the plane.
Get surface collection of a computed continous line.
Make surface from convex hull of a list of points.
Attributes
Methods#
- Surface.bounding_box()[source]#
Draw the axis-aligned minimum bounding box of a list of points in the plane.
- Raises:
NotImplementedError – WIP.
- static Surface.closed(geometries: list[Line] | list[Point]) Surface[source]#
Get surface collection of a computed continous line.
Find missing lines from a sparse collection of lines or points. Compute new lines by checking nearest points of existing lines. Make a surface object from that new line collection.
Attributes#
- Surface.is_closed#
Number of unique points equal number of lines.
- Surface.key#
- Surface.plane#