std::vector<std::vector<double>> pointsOver = pointsAroundPlane[0];
std::vector<std::vector<double>> pointsUnder = pointsAroundPlane[1];
std::vector<std::vector<double>> pointsOn = pointsAroundPlane[2];
-
//Calculate points where splines should intersect
double middlePoint[3];
if(intersectionTop.empty() && intersectionBottom.empty()){
pointsOn.push_back(point);
}
}
+
////////
/// Check direction of points and reverse if needed.
/// Always follows axis vector direction
+ /// remove points if size is less than or equal to 2
////////
if(pointsUnder.size() > 2){
vtkMath::Subtract(pointsUnder.front(), pointsUnder.back(), vector1);
}
}
}
+ else{
+ pointsUnder.clear();
+ }
+
if(pointsOver.size() > 2){
vtkMath::Subtract(pointsOver.front(), pointsOver.back(), vector1);
double dot = vtkMath::Dot(vector1, rotAxis.data());
}
}
}
+ else{
+ pointsOver.clear();
+ }
std::vector<std::vector<std::vector<double>>> results = {pointsOver, pointsUnder, pointsOn};
return results;