This is the documentation for Enlighten.
class Geo AtlasMeshChart
class Geo::AtlasMeshChart
A chart consists of a connected region of the mesh, which has a mapping into a single connected region in UV space.
Functions
Name | Description |
|---|---|
Default constructor initialising an empty chart not associated with a mesh. | |
Construct a chart from a list of mesh triangles. | |
Create a copy of existing chart information for the new mesh. | |
Return the area taken by the 3D mesh spanned by this chart. | |
Obtain the mesh that this chart is part of. | |
Obtain the mesh that this chart is part of. | |
Return the number of triangles that make up this chart. | |
Returns the mesh index for the triangle. | |
Return the area taken in the UV atlas. | |
Obtain the number of vertices that make up the triangles in this chart. | |
Obtain the mesh index for a vertex given the chart index for it. | |
Obtain the chart index for vertex given the mesh index for it. | |
Create a 2D parametrisation of the 3D submesh represented by the chart. | |
Rescale the chart to make 2D area match 3D area. |
Geo::AtlasMeshChart::AtlasMeshChart
public: AtlasMeshChart()
Default constructor initialising an empty chart not associated with a mesh.
Geo::AtlasMeshChart::AtlasMeshChart
public: AtlasMeshChart
(
AtlasMesh * mesh,
const GeoArray< s32 > & triangles
)
Construct a chart from a list of mesh triangles.
static AtlasMeshChart* Geo::AtlasMeshChart::CopyForNewMesh
public: AtlasMeshChart * CopyForNewMesh
(
const AtlasMeshChart & chart,
AtlasMesh * newMesh
)
Create a copy of existing chart information for the new mesh.