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 {
{
Triangle () {}
Triangle (const fcl::Triangle& inFclTri, const TrianglePoints& inPoints):
points (inPoints), fclTri (new fcl::Triangle (inFclTri))
Triangle (const TrianglePoints& inPoints):
points (inPoints)
{
TriangleArea (points);
TriangleNormal (points);
......@@ -57,7 +57,6 @@ namespace hpp {
TrianglePoints points;
double area;
fcl::Vec3f normal;
boost::shared_ptr <fcl::Triangle> fclTri;
};
// helper function to extract mesh model of an fcl::collisionObstacle
......
......@@ -101,7 +101,7 @@ namespace hpp {
tri.p3 = colObj->getRotation () *
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.
unsetTriangles.push_back(i);
}
......
Markdown is supported
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