Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

NameDescription
AtlasMeshChart()

Default constructor initialising an empty chart not associated with a mesh.

AtlasMeshChart(AtlasMesh *, const GeoArray< s32 > &)

Construct a chart from a list of mesh triangles.

CopyForNewMesh(const AtlasMeshChart &, AtlasMesh *)

Create a copy of existing chart information for the new mesh.

Get3DArea()

Return the area taken by the 3D mesh spanned by this chart.

GetMesh()

Obtain the mesh that this chart is part of.

GetMesh()

Obtain the mesh that this chart is part of.

GetTriangleCount()

Return the number of triangles that make up this chart.

GetTriangleIndex(s32)

Returns the mesh index for the triangle.

GetUVArea()

Return the area taken in the UV atlas.

GetVertexCount()

Obtain the number of vertices that make up the triangles in this chart.

GetVertexIndex(s32)

Obtain the mesh index for a vertex given the chart index for it.

GetVertexIndexInChart(s32)

Obtain the chart index for vertex given the mesh index for it.

RemakeUVChart(float, bool, bool *)

Create a 2D parametrisation of the 3D submesh represented by the chart.

RescaleUVChart(float)

Rescale the chart to make 2D area match 3D area.


Anchor
a506e592b95aab35c32cd4b8638ae880b
a506e592b95aab35c32cd4b8638ae880b

Geo::AtlasMeshChart::AtlasMeshChart

...

public: AtlasMeshChart()

...

Default constructor initialising an empty chart not associated with a mesh.


Anchor
a57bcd60c0ce874143ceb1f6750b58ad0
a57bcd60c0ce874143ceb1f6750b58ad0

Geo::AtlasMeshChart::AtlasMeshChart

...

public: AtlasMeshChart
(
    AtlasMesh * mesh,
    const GeoArray< s32 > & triangles
)

...

Construct a chart from a list of mesh triangles.


Anchor
af2ecea981570548f99fd6acc0b559152
af2ecea981570548f99fd6acc0b559152

static AtlasMeshChart* Geo::AtlasMeshChart::CopyForNewMesh

...

public: AtlasMeshChart * CopyForNewMesh
(
    const AtlasMeshChart & chart,
    AtlasMesh * newMesh
)

...

Create a copy of existing chart information for the new mesh.


Anchor
ae2150e58a2db4b51cf5e943ff039f43a
ae2150e58a2db4b51cf5e943ff039f43a

float Geo::AtlasMeshChart::Get3DArea

...

public: float Get3DArea() const

...

Return the area taken by the 3D mesh spanned by this chart.


Anchor
acd8dcdcbe0bc270041c8911936e35fba
acd8dcdcbe0bc270041c8911936e35fba

AtlasMesh* Geo::AtlasMeshChart::GetMesh

...

public: AtlasMesh * GetMesh()

...

Obtain the mesh that this chart is part of.


Anchor
a09aedd83d92145932b7cdefdfe93b07d
a09aedd83d92145932b7cdefdfe93b07d

const AtlasMesh* Geo::AtlasMeshChart::GetMesh

...

public: const AtlasMesh * GetMesh() const

...

Obtain the mesh that this chart is part of.


Anchor
a3400be86ec34b1170dd9152f623f4fe9
a3400be86ec34b1170dd9152f623f4fe9

s32 Geo::AtlasMeshChart::GetTriangleCount

...

public: s32 GetTriangleCount() const

...

Return the number of triangles that make up this chart.


Anchor
a1bdf7fc8c733dcd703aec5030e36e0b0
a1bdf7fc8c733dcd703aec5030e36e0b0

s32 Geo::AtlasMeshChart::GetTriangleIndex

...

public: s32 GetTriangleIndex
(
    s32 chartTriangleIndex
) const

...

Returns the mesh index for the triangle.


Anchor
a8fd6f6939c2ca77c4d1599838125b4e0
a8fd6f6939c2ca77c4d1599838125b4e0

float Geo::AtlasMeshChart::GetUVArea

...

public: float GetUVArea() const

...

Return the area taken in the UV atlas.


Anchor
a2a700e48330d45d23ab738098c27c573
a2a700e48330d45d23ab738098c27c573

s32 Geo::AtlasMeshChart::GetVertexCount

...

public: s32 GetVertexCount() const

...

Obtain the number of vertices that make up the triangles in this chart.

Returns

The number of vertices contained in the chart.


Anchor
a72cb3d435bf3ff2b54178b7750f896b5
a72cb3d435bf3ff2b54178b7750f896b5

s32 Geo::AtlasMeshChart::GetVertexIndex

...

public: s32 GetVertexIndex
(
    s32 chartVertexIndex
) const

...

Obtain the mesh index for a vertex given the chart index for it.

Returns

The index that this vertex has in the mesh.

Parameters
[in]chartVertexIndex

The chart index for the vertex.


Anchor
a80c1bec63a716b750717621803916d31
a80c1bec63a716b750717621803916d31

s32 Geo::AtlasMeshChart::GetVertexIndexInChart

...

public: s32 GetVertexIndexInChart
(
    s32 meshVertexIndex
) const

...

Obtain the chart index for vertex given the mesh index for it.

Returns

The chart index for the vertex, or -1 if it is not in the chart.

Parameters
[in]meshVertexIndex

The mesh index for the vertex.


Anchor
a42110b385f0e44f7dfb0558460ffcf9c
a42110b385f0e44f7dfb0558460ffcf9c

bool Geo::AtlasMeshChart::RemakeUVChart

...

public: bool RemakeUVChart
(
    float meshArea,
    bool forceLSCM,
    bool * parametised
)

...

Create a 2D parametrisation of the 3D submesh represented by the chart.

Parameters
[in]meshArea

- The surface area of the entire mesh

[in]forceLSCM

- Whether to use only the LSCM method

[out]parametised

- Whether the parametisation completed without errors


Anchor
a86586565e466711314dd551b9f6cbbc3
a86586565e466711314dd551b9f6cbbc3

bool Geo::AtlasMeshChart::RescaleUVChart

...

public: bool RescaleUVChart
(
    float meshArea
)

...

Rescale the chart to make 2D area match 3D area.

Parameters
[in]meshArea

- The surface area of the entire mesh