Skip to content

Commit f9a8122

Browse files
committed
also remove duplicates after fragment
1 parent 21a028c commit f9a8122

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

meshwell/cad.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def _process_dimension_group_fragments(
166166
removeObject=True,
167167
removeTool=True,
168168
)
169-
self.model_manager.model.occ.synchronize()
169+
self.model_manager.sync_model()
170170

171171
# Update current_entity dimtags based on fragment result
172172
if (
@@ -226,8 +226,6 @@ def _process_dimension_group_cuts(
226226

227227
if current_entity.dimtags:
228228
processed_entities.append(current_entity)
229-
230-
self.model_manager.model.occ.removeAllDuplicates()
231229
self.model_manager.sync_model()
232230
# Clear shared point cache after boolean operations
233231
self._shared_point_cache.clear()

meshwell/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ def sync_model(self) -> None:
186186
"""Synchronize the OCC model."""
187187
if not self._is_initialized:
188188
return
189+
self.occ.removeAllDuplicates()
189190
self.occ.synchronize()
190191

191192
def clear_and_reinitialize(self, model_name: Optional[str] = None) -> None:

0 commit comments

Comments
 (0)