stl save changed to stl export
This commit is contained in:
parent
2da64d7c60
commit
3241eddd4e
|
@ -189,10 +189,11 @@ class CityObject:
|
|||
:param path: str
|
||||
:return: None
|
||||
"""
|
||||
# todo: this is a method just for debugging, it will be soon removed
|
||||
if self._polyhedron is None:
|
||||
self._polyhedron = Polyhedron(self.surfaces)
|
||||
full_path = (Path(path) / (self._name + '.stl')).resolve()
|
||||
self._polyhedron.save(full_path)
|
||||
self._polyhedron.export(full_path)
|
||||
|
||||
@property
|
||||
def year_of_construction(self):
|
||||
|
|
|
@ -97,10 +97,10 @@ class Polyhedron:
|
|||
print(z_max)
|
||||
return z_max
|
||||
|
||||
def save(self, full_path):
|
||||
def export(self, full_path):
|
||||
"""
|
||||
Export the polyhedron to stl given file
|
||||
:param full_path: str
|
||||
:return: None
|
||||
"""
|
||||
self._polyhedron_mesh.save(full_path)
|
||||
self._polyhedron_mesh.export(full_path)
|
||||
|
|
Loading…
Reference in New Issue
Block a user