Skip to content

Commit 42430ee

Browse files
committed
forgotten in PR
1 parent 1e8676f commit 42430ee

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/compas_model/elements/element.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
if not compas.IPY:
44
from typing import TYPE_CHECKING
5+
from typing import Union # noqa: F401
56

67
if TYPE_CHECKING:
78
from compas_model.models import ElementNode # noqa: F401
@@ -83,8 +84,14 @@ class Element(Data):
8384
The collision geometry of the element.
8485
features : list[:class:`Feature`]
8586
A list of features that define the detailed geometry of the element.
87+
include_features : bool
88+
Include the features in the element geometry.
89+
inflate_aabb : float
90+
Scaling factor to inflate the AABB with.
91+
inflate_obb : float
92+
Scaling factor to inflate the OBB with.
8693
87-
""" # noqa: E501
94+
"""
8895

8996
@property
9097
def __data__(self):
@@ -178,12 +185,14 @@ def parent(self):
178185

179186
@property
180187
def worldtransformation(self):
188+
# type: () -> compas.geometry.Transformation
181189
if self._worldtransformation is None:
182190
self._worldtransformation = self.compute_worldtransformation()
183191
return self._worldtransformation
184192

185193
@property
186194
def geometry(self):
195+
# type: () -> ...
187196
if self._geometry is None:
188197
self._geometry = self.compute_geometry()
189198
return self._geometry
@@ -214,10 +223,6 @@ def collision_mesh(self):
214223
self._collision_mesh = self.compute_collision_mesh()
215224
return self._collision_mesh
216225

217-
# other attributes might be useful
218-
# - interaction_mesh
219-
# - ...
220-
221226
# ==========================================================================
222227
# Abstract methods
223228
# ==========================================================================
@@ -266,7 +271,7 @@ def compute_geometry(self):
266271
"""Compute the geometry of the element.
267272
268273
Implementations of this method should transform the geometry to world coordinates,
269-
using `self.worltransformation`.
274+
using `self.worldtransformation`.
270275
271276
Returns
272277
-------

0 commit comments

Comments
 (0)