3 #include <RobotAPI/interface/ArViz/Elements.h>
6 #include <Inventor/nodes/SoCone.h>
7 #include <Inventor/nodes/SoCylinder.h>
8 #include <Inventor/nodes/SoSphere.h>
9 #include <Inventor/nodes/SoTranslation.h>
19 tr =
new SoTranslation;
21 transl =
new SoTranslation;
33 float coneHeight = element.width * 6.0f;
34 float coneBottomRadius = element.width * 2.5f;
35 float baseLength = element.length - coneHeight;
36 baseLength =
std::max(0.0f, baseLength);
38 tr->translation.setValue(0, baseLength * 0.5f, 0);
40 c->radius = element.width;
41 c->height = baseLength;
43 transl->translation.setValue(0, element.length * 0.5f, 0);
45 cone->bottomRadius.setValue(coneBottomRadius);
46 cone->height.setValue(coneHeight);