Example_Models
Description
Full source code is included in the Tinman 3D SDK download. |
This example contains some methods for construction of 3D models.
Public / Methods
BuildBoundingCylinderGizmo
Builds a 3D gizmo for a picked bounding cylinder.
The gizmo contains three parts:
-
The bounding cylinder, built with ISpatialQuery.Cylinder and BuildCylinder.
-
The pick ray, created with BuildRayWithTwoSegments.
-
The model vertices as a point soup, created with BuildPointSoupFromModelVertices.
BuildCylinder
Builds a transparent cylinder model along the given ray in distance range in and radius in.
BuildRayWithTwoSegments
Builds a thick line segment on the given ray in along the specified ray distance range in, splitting it into a first and a second part at the delimiter in ray distance and using the given colors for the two parts.
BuildTriangleOnPillarOnSquare
Composes a simple 3D model from some basic 2D shapes.
The following 2D shapes are use to compose the 3D model:
-
A square in the X/Z plane.
-
A pillar along the Y-axis, standing on the square.
-
A triangle in the X/Y plane, on top of the pillar.
Load3rdPartyMaterial_TEXTURECAN
Loads a 3rd-party material (https://www.texturecan.com).
- IOException
-
If name in yields an invalid path.