buildings

buildings

buildings reads C Tech’s .bldg file and creates various 3D objects (boxes, cylinders, wedge shapes for roofs, simple houses, etc.), and provides a means for scaling the objects and placing them at user-specified locations. The objects are positioned using the x, y, and z coordinates in the .bldg file, with additional scaling controls in the module’s properties. Buildings can also be created and edited interactively: with the viewer connected, set Probe Action to Add Building and probe in the viewer to place a new building using the Default Building Settings, or to Reset Position to move the current building. The current set of buildings can be exported to a new .bldg file.

Each object is made up of 3D volumetric elements. This allows the buildings to be cut or sliced to reveal a cross section through them.

Ports

DirectionNameTypeDescription
OutputOutputFieldA field containing the buildings.
OutputOutput ObjectRenderableA renderable object displaying the buildings.

Properties

PropertyTypeDescription
Import FileFileImports an existing .bldg file.
Reload Import FileButtonForces the module to load the import file and run.
Building Height ScaleDoubleVertically exaggerates the height of each building.
Building OffsetDoubleMoves all buildings vertically by the set amount.
Export FileFileExports the current buildings to a .bldg file.

Default Building Settings

PropertyTypeDescription
Default NameStringThe default name for each new building added.
Increment Building IdBooleanWhen on, new buildings have an identifier greater than the value of the last building on the list.
Default OffsetDoubleThe vertical offset for each new building.
Default HeightDoubleThe height for each new building.
Default WidthDoubleThe width for each new building.
Default LengthDoubleThe length for each new building.
Default AzimuthDoubleThe azimuth to align each new building to.
Default TypeChoice: Box (0), Roof Gable (1), Wedge (2), Triangle (3), Right Triangle (4), 6 Sided Cylinder (5), 8 Sided Cylinder (6), 16 Sided Cylinder (7), 32 Sided Cylinder (8), 16 Sided Tank (9), 32 Sided Tank (10), Roof Corner 1 (11), Roof Corner 2 (12), Roof Corner 3 (13), Cone (14), 1 Story Building (15), 2 Story Building (16), 1 Story House (17), 2 Story House (18)The type for each new building. The default is 1 Story House (17).
Default IdIntegerThe identifier for each new building.
Default ColorColorThe color for new buildings.

Building Settings

PropertyTypeDescription
Probe ActionChoice: None, Reset Position, Add BuildingChanges the current building’s center or adds a new building at the probed location. Only available when the viewer is connected.
Outline Current BuildingBooleanTurns on or off a bounding rectangle showing the current building being edited.
Delete Current BuildingButtonRemoves the currently selected building from the list of buildings.
Current BuildingChoiceSelects a single building to edit. Options are the buildings currently in the module.
Current Building ValuesBuildingThe values for the currently selected building: type, name, ID, offset, color, coordinates, length, width, height, and azimuth.
  • Sample Buildings File

    Sample Buildings File Below is an example buildings file. Note that the last 4 columns are optional and contain RGB color values (three numbers from zero to 1.0) and/or a building ID number that can be used for coloring. If only color values are supplied (3 numbers) the ID is automatically determined by the row number. If four numbers are provided it is assumed that the last one is the ID. If only one number is provided it is the ID.