Skip to content

Commit

Permalink
[geom] Vectorize decimate_tri_mesh()
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Holl committed Oct 26, 2024
1 parent cf21001 commit 8ed1f27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions phi/geom/_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,7 @@ def load_tri_mesh(file: str, convert=False, load_extra=()) -> Mesh | Tuple[Mesh,
return m, *extra


@math.broadcast(dims=batch)
def decimate_tri_mesh(mesh: Mesh, factor=.1, target_max=10_000,):
if isinstance(mesh, NoGeometry):
return mesh
Expand Down

0 comments on commit 8ed1f27

Please sign in to comment.