rename 2d tool classes to be consistent with 3d classes
This commit is contained in:
@@ -408,9 +408,9 @@ void ViewProviderScattered::updateData(const App::Property* prop)
|
||||
void ViewProviderScattered::cut(const std::vector<SbVec2f>& picked, Gui::View3DInventorViewer &Viewer)
|
||||
{
|
||||
// create the polygon from the picked points
|
||||
Base::Polygon2D cPoly;
|
||||
Base::Polygon2d cPoly;
|
||||
for (std::vector<SbVec2f>::const_iterator it = picked.begin(); it != picked.end(); ++it) {
|
||||
cPoly.Add(Base::Vector2D((*it)[0],(*it)[1]));
|
||||
cPoly.Add(Base::Vector2d((*it)[0],(*it)[1]));
|
||||
}
|
||||
|
||||
// get a reference to the point feature
|
||||
@@ -430,7 +430,7 @@ void ViewProviderScattered::cut(const std::vector<SbVec2f>& picked, Gui::View3DI
|
||||
|
||||
// project from 3d to 2d
|
||||
vol.projectToScreen(pt, pt);
|
||||
if (cPoly.Contains(Base::Vector2D(pt[0],pt[1])))
|
||||
if (cPoly.Contains(Base::Vector2d(pt[0],pt[1])))
|
||||
removeIndices.push_back(index);
|
||||
}
|
||||
|
||||
@@ -560,9 +560,9 @@ void ViewProviderStructured::updateData(const App::Property* prop)
|
||||
void ViewProviderStructured::cut(const std::vector<SbVec2f>& picked, Gui::View3DInventorViewer &Viewer)
|
||||
{
|
||||
// create the polygon from the picked points
|
||||
Base::Polygon2D cPoly;
|
||||
Base::Polygon2d cPoly;
|
||||
for (std::vector<SbVec2f>::const_iterator it = picked.begin(); it != picked.end(); ++it) {
|
||||
cPoly.Add(Base::Vector2D((*it)[0],(*it)[1]));
|
||||
cPoly.Add(Base::Vector2d((*it)[0],(*it)[1]));
|
||||
}
|
||||
|
||||
// get a reference to the point feature
|
||||
@@ -586,7 +586,7 @@ void ViewProviderStructured::cut(const std::vector<SbVec2f>& picked, Gui::View3D
|
||||
|
||||
// project from 3d to 2d
|
||||
vol.projectToScreen(pt, pt);
|
||||
if (cPoly.Contains(Base::Vector2D(pt[0],pt[1]))) {
|
||||
if (cPoly.Contains(Base::Vector2d(pt[0],pt[1]))) {
|
||||
invalidatePoints = true;
|
||||
vec.Set(nan, nan, nan);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user