Commit fd79ac86 authored by Akseppal's avatar Akseppal
Browse files

delete useless member variable in Triangle class

parent 755ebd73
...@@ -34,8 +34,8 @@ namespace hpp { ...@@ -34,8 +34,8 @@ namespace hpp {
{ {
Triangle () {} Triangle () {}
Triangle (const fcl::Triangle& inFclTri, const TrianglePoints& inPoints): Triangle (const TrianglePoints& inPoints):
points (inPoints), fclTri (new fcl::Triangle (inFclTri)) points (inPoints)
{ {
TriangleArea (points); TriangleArea (points);
TriangleNormal (points); TriangleNormal (points);
...@@ -57,7 +57,6 @@ namespace hpp { ...@@ -57,7 +57,6 @@ namespace hpp {
TrianglePoints points; TrianglePoints points;
double area; double area;
fcl::Vec3f normal; fcl::Vec3f normal;
boost::shared_ptr <fcl::Triangle> fclTri;
}; };
// helper function to extract mesh model of an fcl::collisionObstacle // helper function to extract mesh model of an fcl::collisionObstacle
......
...@@ -101,7 +101,7 @@ namespace hpp { ...@@ -101,7 +101,7 @@ namespace hpp {
tri.p3 = colObj->getRotation () * tri.p3 = colObj->getRotation () *
model->vertices [fcltri [2]] + colObj->getTranslation (); model->vertices [fcltri [2]] + colObj->getTranslation ();
triangles.push_back (Triangle (fcltri, tri)); triangles.push_back (Triangle (tri));
// save vector index of triangles and their quantity. // save vector index of triangles and their quantity.
unsetTriangles.push_back(i); unsetTriangles.push_back(i);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment