Rtin
Description
- Derived from
A general-purpose right-triangulated irregular network (RTIN).
The following steps are necessary to build and use an RTIN mesh:
-
Create an instance of Rtin. At this point, the type traits for IRtinVertexTrait and IRtinTriangleTrait must be chosen. Also, the vertex capacity must be chosen.
-
Call Create to build the initial mesh structure. Only during this invocation, IRtinVertexTrait.Compute2 callbacks will be made.
-
Use Add to build the mesh structure by creating new vertices. Only during these invocations, IRtinVertexTrait.Compute1 callbacks will be made.
-
Use Down, Face, Sector2 and Up to traverse the existing mesh structure.
-
Use Delete to reduce the mesh structure by removing existing vertices.
-
Use Triangulate1 to generate indexed triangle lists for mesh sectors. Only during these invocations, callbacks to IRtinTriangleTrait will be made.
Public / Constructors
Rtin
Creates a new instance of Rtin.
The initial mesh capacity will be zero (see ICapacity.Capacity).
Public / Methods
Create
Creates a new mesh, discarding the existing mesh, if any.
- LicenceException
-
If the licence check has failed.
Sector
2 overloads
Checks if the given vertex is the center of a mesh sector.
Returns the index in-th child sector.
Triangulate
2 overloads
Triangulates the whole mesh.
This method iterates over all Cubemap faces, calls Face for each one and finally delegates to Triangulate2.
Triangulates the given mesh sector.
If sector in does not refer to a valid mesh sector vertex, this method returns silently.
- See also