Easy3D 2.5.3
|
#include <tessellator.h>
Public Member Functions | |
Vertex (const vec3 &xyz, int idx=0) | |
initialize with xyz coordinates and an optional index. More... | |
template<typename FT > | |
Vertex (const FT *data, std::size_t size, int idx=0) | |
initialize from a C-style array. More... | |
Vertex (std::size_t size=0, int idx=0) | |
initialize with a known size but memory is allocated without data initialization. More... | |
Vertex (const Vertex &v, int idx=0) | |
copy constructor. More... | |
template<typename Vec > | |
void | append (const Vec &v) |
append a property (e.g., color, texture coordinates) to this vertex. More... | |
Public Attributes | |
int | index |
A vertex carries both xyz coordinates and its attributes (e.g., color, texcoord).
initialize with xyz coordinates and an optional index.
idx | The index of this vertex. Providing a non-negative index allows to map a resulting vertex to the original vertex. Any new vertex generated in the tessellation will have a negative index -1. |
|
inline |
initialize from a C-style array.
idx | The index of this vertex. Providing a non-negative index allows to map a resulting vertex to the original vertex. Any new vertex generated in the tessellation will have a negative index -1. |
|
inlineexplicit |
initialize with a known size but memory is allocated without data initialization.
idx | The index of this vertex. Providing a non-negative index allows to map a resulting vertex to the original vertex. Any new vertex generated in the tessellation will have a negative index -1. |
copy constructor.
idx | The index of this vertex. Providing a non-negative index allows to map a resulting vertex to the original vertex. Any new vertex generated in the tessellation will have a negative index -1. |
|
inline |
append a property (e.g., color, texture coordinates) to this vertex.
Vec | The vector type of the vertex property, e.g., vec2, vec3. |
v | The value of the vertex property. |