A set of callbacks that specify how vertices attributes should be interpolated by subdivision functions.
More...
#include <geogram/mesh/mesh_subdivision.h>
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.
◆ MeshSplitCallbacks()
GEO::MeshSplitCallbacks::MeshSplitCallbacks |
( |
Mesh * |
mesh | ) |
|
◆ 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] | v1 | the vertex. |
[in] | s | scaling coefficient. |
[in] | v2 | the 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] | v | the vertex. |
[in] | s | the scaling coefficient. |
◆ zero_vertex()
virtual void GEO::MeshSplitCallbacks::zero_vertex |
( |
index_t |
v | ) |
|
|
virtual |
Zeroes all attributes of a vertex.
- Parameters
-
The documentation for this class was generated from the following file: