[mechanics, io] add dummy missing class when siconos doesn't have bullet
#include <NewtonEuler5DR.hpp>
#include <SpaceFilter.hpp>
DUMMY(BulletR, NewtonEuler3DR);
+DUMMY(Bullet5DR, NewtonEuler5DR);
#endif
#define OCC_CLASSES() \
@@ -254,6 +255,21 @@ void ContactPointDomainVisitor::operator()(const BulletR& rel)
answer.setValue(1, inter->number());
}
+template<>
+void ContactPointDomainVisitor::operator()(const Bullet5DR& rel)
+{
+ answer.resize(2);
+
+ /*
+ * TODO: contact point domain coloring (e.g. based on broadphase).
+ * currently, domain = (x>0):1?0
+ */
+ answer.setValue(0, rel.pc1()->getValue(0) > 0);
+
+ answer.setValue(1, inter->number());
+}
+
+
template<typename T, typename G>
SP::SimpleMatrix MechanicsIO::visitAllVerticesForVector(const G& graph) const
{
