Commit 5e88df3b authored by Martin Schultz's avatar Martin Schultz

* removed further unused variables and outcommented code corpses


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@21140 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a4e78f84
......@@ -1034,8 +1034,6 @@ me_insert( QMouseEvent* _event )
}
if (cur_polyline_obj_->line()->n_vertices() >= 2) {
const PolyLine::Point &p1 = cur_polyline_obj_->line()->point(cur_polyline_obj_->line()->n_vertices() - 1),
&p2 = cur_polyline_obj_->line()->point(cur_polyline_obj_->line()->n_vertices() - 2);
cur_polyline_obj_->line()->delete_point(cur_polyline_obj_->line()->n_vertices() - 1);
}
......@@ -1638,7 +1636,6 @@ me_move( QMouseEvent* _event )
PolyLineObject* lineObject;
if (PluginFunctions::getObject(createCircle_CurrSelIndex_, lineObject))
{
PolyLineCircleData* lineData = dynamic_cast<PolyLineCircleData*>(lineObject->objectData(CIRCLE_DATA));
moveCircle_IsLocked = false;
updateHandles(lineObject);
updatePolyEllipse(lineObject, tool_->sb_CirclePointNum->value());
......
......@@ -86,12 +86,10 @@ bool PolyLinePlugin::createCircle_getPointOnMesh(TriMeshObject* _triMeshObject,
if (rayInt.empty())
return false;
ACG::Vec3d eye = PluginFunctions::viewerProperties(0).glState().eye();
int i = -1;
double smDist = 10e10;
for (unsigned int j = 0; j < rayInt.size(); j++) {
ACG::Vec3d norAtInt = _triMeshObject->mesh()->normal(rayInt[j].first);
ACG::Vec3d p = _pOnPlane + _n * rayInt[j].second, dir = _center - p;
const double dist = dir.norm();
if (dist < smDist) {
......
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