Merge pull request #3369 from maxGimeno/AABB_tree-AABB_transformed_traits-GF

[Small Feature] Add collision detection in PMP
This commit is contained in:
Sébastien Loriot
2018-10-30 15:49:38 +01:00
36 changed files with 5708 additions and 108 deletions
@@ -393,6 +393,24 @@ public:
return std::make_pair(operator()(pp.first), operator()(pp.second));
}
typename K2::Aff_transformation_3
operator()(const typename K1::Aff_transformation_3 &a) const
{
typedef typename K2::Aff_transformation_3 Aff_transformation_3;
typename K2::FT t[12];
for(int i=0; i< 3; ++i)
{
for(int j=0; j<4; ++j)
{
t[i*4+j] = a.m(i,j);
}
}
return Aff_transformation_3(
t[0],t[1],t[2],t[3],
t[4],t[5],t[6],t[7],
t[8],t[9],t[10],t[11],
a.m(3,3));
}
private:
Converter c;
K2 k;