diff --git a/CHANGELOG.md b/CHANGELOG.md index 133bef32..e43a6dd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Added `Element.compute_elementgeometry()`. * Added `Element.compute_modelgeometry()` to replace `Element.compute_geometry()`. * Added `Element.compute_modeltransformation()` to replace `Element.compute_worldtransformation()`. +* Added `Element.is_dirty`. ### Changed diff --git a/src/compas_model/elements/element.py b/src/compas_model/elements/element.py index 7012d2f7..59959a51 100644 --- a/src/compas_model/elements/element.py +++ b/src/compas_model/elements/element.py @@ -93,6 +93,8 @@ class Element(Data): Scaling factor to inflate the AABB with. inflate_obb : float Scaling factor to inflate the OBB with. + is_dirty : bool + Flag to indicate that modelgeometry has to be recomputed. """ @@ -140,6 +142,8 @@ def __init__( self.include_features = False self.inflate_aabb = 0.0 self.inflate_obb = 0.0 + + self._is_dirty = True # this is not entirely correct def __repr__(self) -> str: