25#include <osg/MatrixTransform>
26#include <osg/Geometry>
159 osg::Geometry* getSurfaceGeometry() const;
166 COLOR_STRESSES = 1 << 0,
168 using Flags = agx::BitState<Flag, std::underlying_type_t<Flag>>;
178 virtual ~DeformableRenderer();
186 virtual bool initialize()
override;
194 virtual void update()
override;
200 virtual void updateVertices();
205 virtual void updateNormals();
210 virtual void updateColors();
216 virtual void handleSurfaceGeometryAlphaTriangleSort();
224 osg::Vec3Array* getVertexArray()
const;
229 agxModel::DeformableObjectConstObserver m_deformable;
232 InternalState m_state;
Deformable tetrahedron mesh representation, containing a data registry with the vertex position and c...
A group/transform that supports agxOSG::ShaderGeometry instances.
Utility color class with "common colors".
static agxRender::Color Red()
static agxRender::Color DarkOliveGreen()
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
osg::ref_ptr< DeformableRenderer > DeformableRendererRef
static constexpr Real PI_2