Graphite  Version 3
An experimental 3D geometry processing program
GEO::MeshSplitCallbacks Class Reference

A set of callbacks that specify how vertices attributes should be interpolated by subdivision functions. More...

#include <geogram/mesh/mesh_subdivision.h>

Public Member Functions

 MeshSplitCallbacks (Mesh *mesh)
 MeshSplitCallbacks constructor. More...
 
virtual ~MeshSplitCallbacks ()
 MeshSplitCallbacks destructor.
 
virtual index_t create_vertex ()
 Creates a new vertex. More...
 
virtual void scale_vertex (index_t v, double s)
 Scales a vertex (v *= s). More...
 
virtual void zero_vertex (index_t v)
 Zeroes all attributes of a vertex. More...
 
virtual void madd_vertex (index_t v1, double s, index_t v2)
 Adds a scaled vertex to another one (v1 += s*v2). More...
 

Protected Attributes

Meshmesh_
 

Detailed Description

A set of callbacks that specify how vertices attributes should be interpolated by subdivision functions.

Default implementation interpolates vertex geometry.

Definition at line 60 of file mesh_subdivision.h.

Constructor & Destructor Documentation

◆ MeshSplitCallbacks()

GEO::MeshSplitCallbacks::MeshSplitCallbacks ( Mesh mesh)

MeshSplitCallbacks constructor.

Parameters
[in]mesha pointer to the target mesh.

Member Function Documentation

◆ create_vertex()

virtual index_t GEO::MeshSplitCallbacks::create_vertex ( )
virtual

Creates a new vertex.

Returns
the index of the newly created vertex.

◆ madd_vertex()

virtual void GEO::MeshSplitCallbacks::madd_vertex ( index_t  v1,
double  s,
index_t  v2 
)
virtual

Adds a scaled vertex to another one (v1 += s*v2).

Parameters
[in]v1the vertex.
[in]sscaling coefficient.
[in]v2the vertex to be added to v1.

◆ scale_vertex()

virtual void GEO::MeshSplitCallbacks::scale_vertex ( index_t  v,
double  s 
)
virtual

Scales a vertex (v *= s).

Parameters
[in]vthe vertex.
[in]sthe scaling coefficient.

◆ zero_vertex()

virtual void GEO::MeshSplitCallbacks::zero_vertex ( index_t  v)
virtual

Zeroes all attributes of a vertex.

Parameters
[in]vthe vertex.

The documentation for this class was generated from the following file: