MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / __add__

Method __add__

src/exterior-shell-extractor/main.py:83–98  ·  view source on GitHub ↗

Concatenate two model_geometry objects Args: other (model_geometry): Other set of interpreted geometries Returns: _type_: model_geometry

(self, other)

Source from the content-addressed store, hash-verified

81 float_facet_centroids: list = field(default_factory=list)
82
83 def __add__(self, other):
84 """Concatenate two model_geometry objects
85
86 Args:
87 other (model_geometry): Other set of interpreted geometries
88
89 Returns:
90 _type_: model_geometry
91 """
92 return model_geometry(
93 self.epeck_equation_idxs + other.epeck_equation_idxs,
94 self.convex_halfspace_trees + other.convex_halfspace_trees,
95 self.non_convex_halfspace_facets_equations + other.non_convex_halfspace_facets_equations,
96 self.float_facet_normals + other.float_facet_normals,
97 self.float_facet_centroids + other.float_facet_centroids,
98 )
99
100class context:
101

Callers

nothing calls this directly

Calls 1

model_geometryClass · 0.85

Tested by

no test coverage detected