From 3241eddd4edb61728120320e9aa54e677538d7ce Mon Sep 17 00:00:00 2001 From: pilar Date: Mon, 15 Jun 2020 11:03:04 -0400 Subject: [PATCH] stl save changed to stl export --- city_model_structure/city_object.py | 3 ++- city_model_structure/polyhedron.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/city_model_structure/city_object.py b/city_model_structure/city_object.py index 5babaf5d..d09edaff 100644 --- a/city_model_structure/city_object.py +++ b/city_model_structure/city_object.py @@ -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): diff --git a/city_model_structure/polyhedron.py b/city_model_structure/polyhedron.py index 74c8e679..68e9bbfa 100644 --- a/city_model_structure/polyhedron.py +++ b/city_model_structure/polyhedron.py @@ -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)