Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 4 additions & 0 deletions src/compas_model/elements/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

"""

Expand Down Expand Up @@ -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:
Expand Down
Loading