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