VisualizationMesh.h
Go to the documentation of this file.
1#pragma once
2
3#include <RobotAPI/interface/ArViz/Elements.h>
4
5#include "ElementVisualizer.h"
6#include <Inventor/SbColor.h>
7
8class SoCoordinate3;
9class SoIndexedFaceSet;
10
11namespace armarx::viz::coin
12{
14 {
15 using ElementType = data::ElementMesh;
16
18
19 bool update(ElementType const& element);
20
21 SoMaterial* materials;
22 SoCoordinate3* coords;
23 SoIndexedFaceSet* faceSet;
24
25 std::vector<SbColor> matColor;
26 std::vector<float> transp;
27 std::vector<SbVec3f> vertexPositions;
28 std::vector<int32_t> faces;
29 std::vector<int32_t> matInx;
30 };
31} // namespace armarx::viz::coin
bool update(ElementType const &element)