Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
fix meshing
Browse files Browse the repository at this point in the history
  • Loading branch information
dwastberg committed Mar 26, 2024
1 parent 84134bc commit d3dba81
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/dtcc_builder/meshing/meshing.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@ def mesh_multisurface(ms: MultiSurface, triangle_size=None, weld=False) -> Mesh:
"""

builder_ms = create_builder_multisurface(ms)
min_mesh_angle = 25
if triangle_size is None or triangle_size <= 0:
triangle_size = -1
builder_mesh = _dtcc_builder.mesh_multisurface(builder_ms, triangle_size, weld=weld)
builder_mesh = _dtcc_builder.mesh_multisurface(
builder_ms, triangle_size, min_mesh_angle, weld=weld
)
mesh = builder_mesh_to_mesh(builder_mesh)
return mesh

Expand Down

0 comments on commit d3dba81

Please sign in to comment.