-
Notifications
You must be signed in to change notification settings - Fork 2
Outline

The outline feature draws an outline around the buildings. This makes it easier to distinguish the buildings from each other, especially when they are very close to each other, for example when they are being scaled by the Metrics feature.
Outlines are only being drawn around box-shaped buildings.
The outline feature is implemented in the generator. A new function drawOutline() has been created under generator/src/main/java/org/visap/generator/model/AFrameExporter.java. This function takes an element as input and returns a variable called builder. builder is a string that represents an A-Frame a-entity HTML element. This a-entity holds twelve lines that represent a cuboid around the input element. Each a-entity is given the same ID as the element surrounding it. This enables seamless integration with the HoverController.
The outline feature is disabled by default. It can be enabled under generator/properties/Features.properties, or generator/user-properties/Features.properties if you prefer your configuration ignored by Git. After enabling the feature, executing the AFrameExporterStep will now also draw outlines around each applicable element.
After enabling the Outline feature, execute the generator with generator/input/Example as the input folder specified in the configuration. The generated model.html contains the outlines.