class MultiSurface(dtcc.Geometry)[source]

Represents a planar surfaces in 3D.

Public members

merge(other)[source]

Merge two MultiSurfaces.

calculate_bounds()[source]

Calculate the bounding box of the surface.

property zmax
translate(x=0, y=0, z=0)[source]

Translate the surface.

set_z(z)[source]

Set the z-coordinate of the surface.

centroid()[source]

Get the centroid of the MultiSurface.

to_proto() Geometry[source]

Return a protobuf representation of the MultiSurface.

from_proto(pb: Geometry | bytes)[source]

Initialize MultiSurface from a protobuf representation.

__str__() str[source]

Return str(self).

find_dups()[source]

Find duplicate vertices.

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.

surfaces : list[Surface]
property bounds
add_field(field: Field)[source]

Add a field to the geometry.

transform : Transform
fields : list[Field]
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.