- class MultiSurface(dtcc.Geometry)[source]
Represents a planar surfaces in 3D.
Public members¶
- calculate_bounds()[source]
Calculate the bounding box of the surface.
- property zmax
- from_proto(pb: Geometry | bytes)[source]
Initialize MultiSurface from a protobuf representation.
- MultiSurface(...)
Initialize self. See help(type(self)) for accurate signature.
- __repr__()
Return repr(self).
- __eq__(other)
Return self==value.
-
mesh(triangle_size=
None
, weld=False
) Mesh Mesh a MultiSurface object into a Mesh object.
-
to_polygon(simplify=
0.01
) Polygon Flatten a MultiSurface to a single 2D Polygon.
- view()
View a surface in 3D with a GLFW window.
- property bounds
- to_json() str
Return a JSON representation of the object.
- copy(**kwargs)
Return a copy of the object.
-
classmethod add_methods(module, name=
None
) Adds methods from a module or function to the class.
-
classmethod print_methods(verbose=
False
) Print the methods that have been added to the class.