Toponaming: Bring in Chamfer, Fillet code and add tests (#14035)
* Toponaming: bring in missing code fragments in Sketcher * Toponaming: Fix infinite recursion, remove debug cruft, rough in fillet test * Bring in missing code; fix chamfers * Toponaming: Add code for fillets and test
This commit is contained in:
@@ -119,7 +119,7 @@ App::DocumentObjectExecReturn *Pocket::execute()
|
||||
|
||||
base.move(invObjLoc);
|
||||
|
||||
Base::Vector3d pocketDirection = computeDirection(SketchVector);
|
||||
Base::Vector3d pocketDirection = computeDirection(SketchVector, false);
|
||||
|
||||
// create vector in pocketing direction with length 1
|
||||
gp_Dir dir(pocketDirection.x, pocketDirection.y, pocketDirection.z);
|
||||
@@ -258,3 +258,14 @@ App::DocumentObjectExecReturn *Pocket::execute()
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Base::Vector3d Pocket::getProfileNormal() const
|
||||
{
|
||||
auto res = FeatureExtrude::getProfileNormal();
|
||||
// turn around for pockets
|
||||
#ifdef FC_USE_TNP_FIX
|
||||
return res * -1;
|
||||
#else
|
||||
return res;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user