AvogadroLibs 2.1.0-20261111
Loading...
Searching...
No Matches
TessellatedMesh Struct Reference

A triangle mesh produced from one drawable of the scene. More...

#include <tessellatingvisitor.h>

Public Attributes

std::string name
std::vector< Vector3f > positions
std::vector< Vector3f > normals
std::vector< Vector4ub > colors
std::vector< unsigned int > indices

Detailed Description

<avogadro/rendering/tessellatingvisitor.h>

All arrays except indices are parallel (one entry per vertex).

Member Data Documentation

◆ name

std::string name

The kind of drawable: "spheres", "cylinders", "mesh", "cartoon", "curves", "dashedlines", "arrows", "lines", ...

◆ colors

std::vector<Vector4ub> colors

RGBA, the alpha channel is the opacity.

◆ indices

std::vector<unsigned int> indices

Triangle list (three indices per triangle) into the vertex arrays.


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