Skip to content

Commit 61a0749

Browse files
committed
fix bug related to implicit shape healing
1 parent e033d16 commit 61a0749

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
* Fixed bug related to implicit healing of shapes in `compas_gmsh.models.mesh.MeshModel.generate`.
15+
1416
### Removed
1517

1618

src/compas_gmsh/models/mesh.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def __init__(self, *args, **kwargs):
1616

1717
@classmethod
1818
def from_mesh(
19-
cls: "MeshModel",
19+
cls,
2020
mesh: Mesh,
2121
name: str = "Mesh",
2222
targetlength: Optional[Union[float, Dict]] = None,
@@ -41,7 +41,7 @@ def from_mesh(
4141
model: MeshModel = cls(name)
4242

4343
for vertex in mesh.vertices():
44-
point = mesh.vertex_coordinates(vertex)
44+
point = mesh.vertex_point(vertex)
4545
if targetlength:
4646
if isinstance(targetlength, dict):
4747
length = targetlength.get(vertex)
@@ -85,7 +85,6 @@ def generate_mesh(self, dim: int = 2) -> None:
8585
To influence the meshing process, use the options of the model (:attr:`options.mesh`).
8686
8787
"""
88-
self.occ.heal_shapes()
8988
self.occ.synchronize()
9089
self.mesh.generate(dim)
9190

0 commit comments

Comments
 (0)