Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchmatthew authored and savindi-wijenayaka committed Aug 12, 2024
1 parent ecf1e6f commit b42a096
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/sparc_spy/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@

class Meshes(object):
def __init__(self) -> None:
meshes = pv.MultiBlock()
self.meshes = pv.MultiBlock()

def add_mesh(self, label: str, mesh: pv.PolyData):
self.meshes.append(label, mesh)

def export(self, output_filepath: str = "output.stl", base_path='.'):
save_multiblock_stl(self.meshes, output_filepath, base_path)
save_multiblock_stl(self.meshes, output_filepath, base_path)

def items(self):
items = []
for key in self.meshes.keys():
items.append((key, self.meshes[key]))
return items


def save_multiblock_stl(multiblock, filename, base_path='.'):
Expand Down

0 comments on commit b42a096

Please sign in to comment.