Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::vector<mwAdaptiveRoughing::ToolPath> TPCreatorRoughingTriangleBased::ARCreateToolpaths( const std::vector<triax::mwAdaptiveRoughing::Polylines> &softBoundaries, const std::vector<triax::mwAdaptiveRoughing::Polylines> &hardBoundaries )
- {
- const int slicesCount = static_cast<int>(softBoundaries.size());
- const double toolDiam = mTool.GetDiameter();
- const double curvatureRadius = GetAdaptiveRoughingCurvatureRadius();
- const double maximalEngagement = mathdef::mw_min(toolDiam, mParam.GetMaxStepoverDistance());
- const double optimalEngagement = 0.8 * maximalEngagement;
- const int machineDirection = ARGetMachDirection();
- const bool rampMovesAllowed = mParam.GetTpCalculationMethodsParams().GetTriangleMeshBasedTpCalcParams().GetCenterCuttingToolFlg();
- const double cutTolerance = mParam.GetCutTolerance();
- std::vector<mwAdaptiveRoughing::ToolPath> toolpaths(slicesCount);
- #pragma omp parallel for schedule(dynamic, 1)
- for (int i = 0; i < slicesCount; ++i)
- {
- mwAdaptiveRoughing::Point outsidePoint = ARGetOutsidePoint(softBoundaries[i], hardBoundaries[i]);
- mwAdaptiveRoughing aR(
- softBoundaries[i],
- hardBoundaries[i],
- optimalEngagement, maximalEngagement,
- machineDirection, rampMovesAllowed,
- toolDiam*0.5,
- curvatureRadius,
- cutTolerance);
- toolpaths[i] = aR.CreateToolPath(outsidePoint);
- }
- return toolpaths;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement