fixed a small problem in the extrusion direction determination

This commit is contained in:
rnc 2012-03-02 13:03:21 +00:00
parent cdce318394
commit f04d9d5e1f

View File

@ -278,11 +278,12 @@ Standard_Integer GEOMImpl_PrismDriver::Execute(TFunction_Logbook& log) const
aFaceBase=aTempFace; aFaceBase=aTempFace;
} }
} }
}
// Invert height and angle if the operation is an extruded cut // Invert height and angle if the operation is an extruded cut
bool invert = !isProtrusion; bool invert = !isProtrusion;
// If the face has a reverse orientation invert for extruded boss operations // If the face has a reversed orientation invert for extruded boss operations
if(aFaceBase.Orientation() == TopAbs_REVERSED) if(aFaceBase.Orientation() == TopAbs_REVERSED)
invert = isProtrusion; invert = isProtrusion;
@ -292,8 +293,6 @@ Standard_Integer GEOMImpl_PrismDriver::Execute(TFunction_Logbook& log) const
aHeight = -aHeight; aHeight = -aHeight;
} }
}
BRepFeat_MakeDPrism thePrism(anInitShape, aFaceBase, TopoDS_Face(), BRepFeat_MakeDPrism thePrism(anInitShape, aFaceBase, TopoDS_Face(),
anAngle*PI180, isProtrusion, Standard_True); anAngle*PI180, isProtrusion, Standard_True);