Merge pull request #3369 from maxGimeno/AABB_tree-AABB_transformed_traits-GF
[Small Feature] Add collision detection in PMP
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user