Integration with DART Dynamic Animation and Robotics Toolkit.
Conversion of nodes and shapes for visualizing physics simulation.
This library depends on the DART library and is built if
WITH_DART is enabled when building Magnum Integration. To use this library with CMake, you need to request the
Dart component of the
MagnumIntegration package and link to the
find_package(MagnumIntegration REQUIRED Dart) # ... target_link_libraries(your-app MagnumIntegration::Dart)
Optional<ShapeData> Magnum:: DartIntegration:: convertShapeNode(dart::dynamics::ShapeNode& shapeNode,
Trade:: AbstractImporter* importer = nullptr)
dart::dynamics::ShapeNode to meshes and material data.
ShapeNode is not supported. The following DART shapes are supported:
The following DART shapes are not yet supported:
PlaneShape(this is an infinite plane with normal)
importer argument is an optional instance of Trade::
dart::dynamics::ShapeNode with a shape of type
dart::dynamics::MeshShape. As a consequence, you can omit it you do not want to load such a
dart::dynamics::ShapeNode. On the contrary, when you are trying to load a
dart::dynamics::MeshShape and the importer is a
nullptr, the function will return Corrade::