Skip to content

Commit

Permalink
added generic attributes for rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
benediktschwab committed Mar 4, 2024
1 parent 4d6df17 commit 2df02e1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ class BuildingModuleBuilder(
// geometry
val pointGeometryTransformer = GeometryTransformer.of(roadspaceObject.pointGeometry, parameters)
buildingFeature.populateLod1ImplicitGeometry(pointGeometryTransformer)
pointGeometryTransformer.rotation.onSome {
attributesAdder.addRotationAttributes(it, buildingFeature)
}

roadspaceObject.boundingBoxGeometry.onSome { currentBoundingBoxGeometry ->
val geometryTransformer = GeometryTransformer.of(currentBoundingBoxGeometry, parameters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class CityFurnitureModuleBuilder(
// geometry
val pointGeometryTransformer = GeometryTransformer.of(roadspaceObject.pointGeometry, parameters)
cityFurnitureFeature.populateLod1ImplicitGeometry(pointGeometryTransformer)
pointGeometryTransformer.rotation.onSome {
attributesAdder.addRotationAttributes(it, cityFurnitureFeature)
}

roadspaceObject.boundingBoxGeometry.onSome { currentBoundingBoxGeometry ->
val geometryTransformer = GeometryTransformer.of(currentBoundingBoxGeometry, parameters)
Expand Down Expand Up @@ -75,10 +78,6 @@ class CityFurnitureModuleBuilder(
wasFixed = true
)
}

geometryTransformer.rotation.onSome {
attributesAdder.addRotationAttributes(it, cityFurnitureFeature)
}
}

// semantics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ class GenericsModuleBuilder(
// geometry
val pointGeometryTransformer = GeometryTransformer.of(roadspaceObject.pointGeometry, parameters)
genericOccupiedSpaceFeature.populateLod1ImplicitGeometry(pointGeometryTransformer)
pointGeometryTransformer.rotation.onSome {
attributesAdder.addRotationAttributes(it, genericOccupiedSpaceFeature)
}

roadspaceObject.boundingBoxGeometry.onSome { currentBoundingBoxGeometry ->
val geometryTransformer = GeometryTransformer.of(currentBoundingBoxGeometry, parameters)
Expand Down Expand Up @@ -87,9 +90,6 @@ class GenericsModuleBuilder(
wasFixed = true
)
}
geometryTransformer.rotation.onSome {
attributesAdder.addRotationAttributes(it, genericOccupiedSpaceFeature)
}
}

// semantics
Expand Down

0 comments on commit 2df02e1

Please sign in to comment.