mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-22 12:00:33 +05:00
fixed a small problem in the extrusion direction determination
This commit is contained in:
parent
cdce318394
commit
f04d9d5e1f
@ -277,21 +277,20 @@ Standard_Integer GEOMImpl_PrismDriver::Execute(TFunction_Logbook& log) const
|
|||||||
else
|
else
|
||||||
aFaceBase=aTempFace;
|
aFaceBase=aTempFace;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// Invert height and angle if the operation is an extruded cut
|
|
||||||
bool invert = !isProtrusion;
|
|
||||||
|
|
||||||
// If the face has a reverse orientation invert for extruded boss operations
|
|
||||||
if(aFaceBase.Orientation() == TopAbs_REVERSED)
|
|
||||||
invert = isProtrusion;
|
|
||||||
|
|
||||||
if(invert)
|
|
||||||
{
|
|
||||||
anAngle = -anAngle; // Invert angle and height
|
|
||||||
aHeight = -aHeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// Invert height and angle if the operation is an extruded cut
|
||||||
|
bool invert = !isProtrusion;
|
||||||
|
|
||||||
|
// If the face has a reversed orientation invert for extruded boss operations
|
||||||
|
if(aFaceBase.Orientation() == TopAbs_REVERSED)
|
||||||
|
invert = isProtrusion;
|
||||||
|
|
||||||
|
if(invert)
|
||||||
|
{
|
||||||
|
anAngle = -anAngle; // Invert angle and height
|
||||||
|
aHeight = -aHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
BRepFeat_MakeDPrism thePrism(anInitShape, aFaceBase, TopoDS_Face(),
|
BRepFeat_MakeDPrism thePrism(anInitShape, aFaceBase, TopoDS_Face(),
|
||||||
|
Loading…
Reference in New Issue
Block a user