Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix for crash on abort of Boolean with one argument set.
[modules/shaper.git]
/
src
/
GeomAlgoAPI
/
GeomAlgoAPI_FaceBuilder.cpp
diff --git
a/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp
b/src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp
index 46a46d233446b0a923c44dd605128f3e16f88105..8e108ebfa01d4f3423bba3c23f8a617500c69d60 100644
(file)
--- a/
src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp
+++ b/
src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp
@@
-67,6
+67,12
@@
std::shared_ptr<GeomAPI_Pln> GeomAlgoAPI_FaceBuilder::plane(
gp_Pln aPln = isPlanar.Plan();
double aA, aB, aC, aD;
aPln.Coefficients(aA, aB, aC, aD);
gp_Pln aPln = isPlanar.Plan();
double aA, aB, aC, aD;
aPln.Coefficients(aA, aB, aC, aD);
+ if (aFace.Orientation() == TopAbs_REVERSED) {
+ aA = -aA;
+ aB = -aB;
+ aC = -aC;
+ aD = -aD;
+ }
aResult = std::shared_ptr<GeomAPI_Pln>(new GeomAPI_Pln(aA, aB, aC, aD));
return aResult;
}
aResult = std::shared_ptr<GeomAPI_Pln>(new GeomAPI_Pln(aA, aB, aC, aD));
return aResult;
}