Custom Geometry: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[File:File:San_francisco.png|thumb|300px|right|Custom geometries of San Francisco in the {{software}}]]
[[File:San_francisco.png|thumb|300px|right|Custom geometries of San Francisco in the {{software}}]]
Custom Geometry is an item that stores information on how to construct a 3D model for the {{software}}. During a [[Session#Session types|single-, multi- or test-session]], custom geometries shape can not be altered by users.
Custom Geometry is an item that stores information on how to construct a 3D model for the {{software}}. During a [[Session#Session types|single-, multi- or test-session]], custom geometries shape can not be altered by users.



Revision as of 14:15, 31 January 2023

Custom geometries of San Francisco in the Tygron Platform

Custom Geometry is an item that stores information on how to construct a 3D model for the Tygron Platform. During a single-, multi- or test-session, custom geometries shape can not be altered by users.

Custom geometry store data in a float array. The data stored is a set of triangle definitions: 3 Vertex definitions:

  • 3 floats representing a vertex coordinate: (x, y, z)
  • 2 floats representing texture coordinates: (tx, ty)

and 1 normal definition:

  • 3 floats representing normal coordinates: (nx, ny, nz)

Together 18 float values forming a triangle.

3D Model of Buildings

Buildings can link to one or more Custom Geometries using CGLinks. CGLinks store the id of the Custom Geometry Item, as well as whether it is the primary Building referencing this Custom Geometry. Custom Geometries are only placed for buildings in the 3D Visualization when that building is the primary referencer.

If a Building references any Custom Geometry, the default 3D Model of the building, that is mostly determined by its function, will not be visible.

These two points make sure that a set of lined up Buildings can be represented by one Custom Geometry, with one Building being the primary references and the other buildings not showing the default 3D Model.

Adjusting any visual property of the building will result in the removal of the Custom Geometry from the Building, even if it is not the primary referencer. This makes sure that adjustments made to the Building are clear.

Geometry Color

Custom Geometries in the 3D Visualization can be given an override color using the Building Attribute: GEOMETRY_COLOR Additionally, the datum (height) of the Custom Geometry might not be correct. This can also be override using the Custom geometry offset (Function Value).