COGS
Computer Graphics Structures library
cogs::MeshOperations Struct Reference

A class that provides common operations over cogs::Mesh. More...

Static Public Member Functions

static bool HasDisconnectedPoints (const cogs::Mesh &mesh)
 Check Mesh for whether it has points that are not vertices of its triangulation.
 
static bool RemoveDisconnectedPoints (cogs::Mesh &mesh)
 Remove all points from the point-cloud of a specified Mesh so that only those that are vertices in the Mesh triangulation remain. More...
 

Detailed Description

A class that provides common operations over cogs::Mesh.

Member Function Documentation

◆ RemoveDisconnectedPoints()

static bool cogs::MeshOperations::RemoveDisconnectedPoints ( cogs::Mesh &  mesh)
static

Remove all points from the point-cloud of a specified Mesh so that only those that are vertices in the Mesh triangulation remain.

Note
Method changes the ordering of points.
Warning
Function does not remove invalid triangles. Its execution may still result in an invalid Mesh.
Returns
Success flag.