Versions Compared

Key

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

struct Geo::AtlasMeshTriangle

An AtlasMesh consists of a number of triangle faces, each composed of three vertices.

Each triangle can have a material assigned to it, which can be used to describe regions of the mesh that should be kept together in the UV atlas. Regions containing different materials will always be packed separately, and may require some duplication of the vertices so that this can be enforced (XXX see ....).

Variables

NameDescription
u64 materialId

An identifier for the "material" bound to the triangle (see above).

Functions

NameDescription
IsTopologicalDegenerate()

Returns true if the triangle does not reference 3 unique vertex indices.


Anchor
af8ab064818318867cc802331c7f4b357
af8ab064818318867cc802331c7f4b357

bool Geo::AtlasMeshTriangle::IsTopologicalDegenerate

...

public: bool IsTopologicalDegenerate() const

...

Returns true if the triangle does not reference 3 unique vertex indices.