This is the documentation for Enlighten.
class Geo AtlasMesh
class Geo::AtlasMesh
The AtlasMesh implementation used for the packer and anything else that needs not to know whether we have one mesh or several.
Functions
Name | Description |
|---|---|
Report on the independence of the charts, that is whether no vertex belongs to more than one chart. | |
Create(const AtlasMeshVertices *, const AtlasMeshTriangles *) | Create a new instance of an AtlasMesh, instantiating it with a copy of the vertex and triangle list. |
Create a clone of an AtlasMesh. | |
Chart Dependency. | |
A mesh can have a number of vertices which whilst topologically distinct have exactly the same 3D and UV coordinates. | |
Obtain access to one of the mesh charts. | |
The number of charts that the mesh is composed of. | |
Return the flags used to chart this mesh. | |
The adjacency data is a list of edges that map to their neighbours. | |
Obtain a mesh triangle. | |
Obtain the number of triangles in the mesh. | |
Return an array that specifies which triangle is in which chart. | |
Obtain the list of triangles. | |
Obtain a vertex. | |
Obtain the number of vertices in the mesh. | |
Obtain a copy of the vertices in the mesh. | |
Degeneracy testing. | |
MakeChartsIndependent(GeoArray< AtlasMeshVertexSplitResult > *) | Make the charts independent by duplicating vertices which are shared by more than one chart, and relinking any triangles to the new vertices as necessary. |
Release the mesh after it is finished with. | |
RepackCharts(const AtlasMeshPackingFlags &, IGeoProgressProxy *) | Pack the charts into the single square in UV space spanned by (0,0) - (1,1). |
Serialize this mesh from file - note that this does not include any of the charting information. | |
Update the UV coordinate of a vertex. |
bool Geo::AtlasMesh::AreChartsIndependent
public: bool AreChartsIndependent() const
Report on the independence of the charts, that is whether no vertex belongs to more than one chart.
Outputs problem cases to LOG_INFO.
Returns
True if the charts are independent, or false otherwise.
static AtlasMesh* Geo::AtlasMesh::Create
public: AtlasMesh * Create
(
const AtlasMeshVertices * vertices,
const AtlasMeshTriangles * triangles
)