Skip to content

Commit

Permalink
skip mesh creation if done already
Browse files Browse the repository at this point in the history
  • Loading branch information
carlocastoldi committed Dec 21, 2024
1 parent 8b3783e commit d0addd9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ def create_meshes(output_path: str|Path,
# total=5,
description="Creating meshes",
):
output_file = output_path/f"{node.identifier}.obj"
if output_file.exists():
# print(f"mesh already existing: {output_file.exists()} - {output_file}")
continue
# root_node = tree.nodes[root_id]
create_region_mesh(
(
Expand Down

0 comments on commit d0addd9

Please sign in to comment.