export to obj completed

This commit is contained in:
Guille Gutierrez 2023-03-16 12:03:23 -04:00
parent fdef2152d9
commit 6ea41b1c85
2 changed files with 0 additions and 7 deletions

View File

@ -41,11 +41,7 @@ class Obj:
for surface in building.surfaces:
obj.write(f'# surface {surface.name}\n')
face = 'f '
len_ = len(surface.perimeter_polygon.coordinates)
if len_ > 40:
print(len_, building.name)
for coordinate in surface.perimeter_polygon.coordinates:
vertex = self._to_vertex(coordinate)
if vertex not in vertices.keys():
vertex_index += 1

View File

@ -141,9 +141,6 @@ class TestGeometryFactory(TestCase):
hub.exports.exports_factory.ExportsFactory('obj', city, self._output_path).export()
self.assertEqual(195, len(city.buildings), 'wrong number of buildings')
self._check_buildings(city)
for building in city.buildings:
for wall in building.walls:
self.assertIsNotNone(wall.percentage_shared, 'wall percentage shared is not assigned')
def test_map_neighbours(self):
"""