buildings

buildings

The buildings module 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/or placing the objects at user specified locations. The objects are displayed based on x, y & z coordinates supplied by the user in a .bldg file, with additional scaling option controls on the buildings user interface.

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

Ports

DirectionNameTypeDescription
InputInput Z ScaleNumberThe factor for vertical scaling.
OutputOutput Z ScaleNumberThe factor for vertical scaling.
OutputOutputFieldA field containing the buildings.
OutputOutput ObjectRenderableA renderable object displaying the buildings.

Properties

PropertyTypeDescription
Import FileStringImport an existing *.bldg file.
Reload Import FileButtonThe Reload Import File will force the module to load the import file and run.
Z ScaleDoubleZ Scale is required to assure that buildings are matched to scaled input.
Building Height ScaleDoubleThe Building Height Scale will vertically exaggerate the height of each building.
Building OffsetDoubleThe Building Offset will move all buildings vertically by the set amount.
Export FileStringExport current buildings to a *.bldg file.

Default Building Settings

PropertyTypeDescription
Default NameStringThe default name for each new building added.
Increment Building IdBooleanNew buildings will have an Identifier greater that the value of the last building on the list.
Default OffsetDoubleThe vertical offset for each new building.
Default HeightDoubleThe height to set for each new building.
Default WidthDoubleThe width to set for each new building.
Default LengthDoubleThe length to set 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.
Default IdIntegerThe Identifier for each new building.
Default ColorColorThe color for new buildings.

Building Settings

PropertyTypeDescription
Probe ActionChoice: None, Reset Position, Add BuildingAllows for the changing of the building center or for adding a new building at the probed location. Only available when the viewer is connected.
Outline Current BuildingBooleanThe Outline Current Building turns on or off a bounding rectangle showing the current building being edited.
Delete Current BuildingButtonThis command will remove the currently selected building from the list of buildings.
Current BuildingChoiceThe Current Building allows the user to select a single building to edit.
Current Building ValuesBuildingThe Current Building Values.
  • 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.

Subsections of buildings

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.

The file below is shown in a table (with dividing lines) for clarity only. The first uncommented line is the number 16 which defines the number of rows of buildings data. The actual file is a simple ASCII file with separators of space, comma and/or tab.

EVS

Copyright (c) 1994-2008 by

C Tech Development Corporation

All Rights Reserved

#Ā This software comprises unpublished confidential information of

#Ā C Tech Development Corporation and may not be used, copied or made

#Ā available to anyone, except in accordance with the license

#Ā under which it is furnished.

C Tech 3D Building file

Building 0 is a unit box with base at z=0.0 centered at origin x,y

Building 1 is a gabled roof for the unit box

#Ā (to make it a house) with base at z=0.0 centered at origin x,y

Building 2 is a wedge roof for the unit box

#Ā (to make it a house) with base at z=0.0 centered at origin x,y

Building 3 is a Equilateral (or Isoseles) Triangular Building 3 side

Building 4 is a Right Triangular Building 3 side

Building 5 is a Hexagonal (6 side) cylinder

Building 6 is a Octagonal (8 side) cylinder

Building 7 is a 16 side cylinder

Building 8 is a 32 side cylinder

Building 9 is a 16 sided horiz. cylindrical tankĀ (Height & Width equal diameter, Length is along x)

Building 10 is a 32 sided horiz. cylindrical tankĀ (Height & Width equal diameter, Length is along x)

Building 11 is a right angle triangle, height only at right angle

Building 12 is a right angle triangle, height at non-right angle

Building 13 is a right angle triangle, height at right angle and 1 non-right angle

Lines beginning with “#” are comments

First uncommented line is number of buildings

X Y Z LengthWidthHeight Angle Bldg_Type Color and/orID

16

0010505020001
010005050303002
0100306050203012
020005050301003
0200305050251023
20000505050034
10010004040201545
20010004040303056
2002000505050067
1002000406020-4578
10000505040089
30000602020-4590.80.60.410
30010005050300100.40.60.411
030005050500111.00.40.412
10030005050500120.41.00.413
20030005050500130.40.41.014