Example_SceneApi
Description
Full source code is included in the Tinman 3D SDK download. |
This example contains some useful helpers for dealing with the Scene API.
These are the primary entry points of this example:
-
Control the scene Camera, see CameraLookAt.
-
Build a heightmap correction shape, see BuildShapeFromGeocentricBox.
Public / Methods
BuildBuilding
Builds a 3D model from the given footprint shape.
- GeorefException
-
If the geo-reference of footprint in is invalid.
- RenderException
-
If ISceneEntityContainer.EntityAdd has thrown an exception.
BuildBuildingsFromFootprintShapes
Reads the given shapeFile in and generated a building for each footprint shape, with BuildBuilding.
- GeorefException
-
If the geo-reference of shapeFile in is invalid.
- IOException
-
If an I/O error has occurred while reading shapeFile in.
- ValidatingException
-
If a data validation error has occurred while reading shapeFile in.
BuildHeightmapShape
Builds a HeightmapShape for the given shape in.
The ShapeValue.Vertical values of the shape in vertices are interpreted a ellipsoid height.
BuildShapeFromGeocentricBox
Builds a HeightmapShape for adding a terrain correction via IScene.Correction, based on the given box in a local coordinate system.
Using a shape in a projected coordinate system will adjust the terrain along the surface of the reference ellipsoid. This method adjusts the terrain along a box in the geocentric coordinate system, which is usually necessary when static 3D terrain models are used in the scene.