[PD] Fix Pad uptoshape and add unit test
This commit is contained in:
committed by
Chris Hennes
parent
d6e9be45bb
commit
22fbfeddc2
@@ -4231,10 +4231,12 @@ TopoShape& TopoShape::makeElementPrismUntil(const TopoShape& _base,
|
||||
BRepFeat_MakePrism PrismMaker;
|
||||
|
||||
// don't remove limits of concave face
|
||||
Base::Vector3d vCog;
|
||||
profile.getCenterOfGravity(vCog);
|
||||
gp_Pnt pCog(vCog.x, vCog.y, vCog.z);
|
||||
checkLimits = ! Part::Tools::isConcave(TopoDS::Face(__uptoface.getShape()), pCog , direction);
|
||||
if (checkLimits && __uptoface.shapeType(true) == TopAbs_FACE){
|
||||
Base::Vector3d vCog;
|
||||
profile.getCenterOfGravity(vCog);
|
||||
gp_Pnt pCog(vCog.x, vCog.y, vCog.z);
|
||||
checkLimits = ! Part::Tools::isConcave(TopoDS::Face(__uptoface.getShape()), pCog , direction);
|
||||
}
|
||||
|
||||
TopoShape _uptoface(__uptoface);
|
||||
if (checkLimits && _uptoface.shapeType(true) == TopAbs_FACE
|
||||
|
||||
Reference in New Issue
Block a user