export to obj completed
This commit is contained in:
parent
fdef2152d9
commit
6ea41b1c85
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user