projects
/
opencascade.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6484173
)
[PATCH 2/7] GeomPlate_BuildAveragePlane: BasePlan: Don't set yvector to zero. See...
author
blobfish
<blobfish@gmx.com>
Thu, 20 Oct 2022 20:08:48 +0000
(21:08 +0100)
committer
Tobias Frost
<tobi@debian.org>
Thu, 20 Oct 2022 20:08:48 +0000
(21:08 +0100)
When we return, the yvector is crossed with x and we crash.
The z vector is passed in and we calculate the x vector, so just cross those 2 in this case to get y.
Gbp-Pq: Name 0002-GeomPlate_BuildAveragePlane-BasePlan-Don-t-set-yvect.patch
src/GeomPlate/GeomPlate_BuildAveragePlane.cxx
patch
|
blob
|
history
diff --git
a/src/GeomPlate/GeomPlate_BuildAveragePlane.cxx
b/src/GeomPlate/GeomPlate_BuildAveragePlane.cxx
index c058110ec1a0a7bfa06cd8f10af16da91884476b..7b7e9cdeeae69361686499b49422f5eddb1cb318 100644
(file)
--- a/
src/GeomPlate/GeomPlate_BuildAveragePlane.cxx
+++ b/
src/GeomPlate/GeomPlate_BuildAveragePlane.cxx
@@
-436,7
+436,7
@@
void GeomPlate_BuildAveragePlane::BasePlan(const gp_Vec& OZ)
|| ((Abs(n2)<=myTol)&&(Abs(n3)<=myTol))
|| ((Abs(n1)<=myTol)&&(Abs(n3)<=myTol))) {
myOX.SetCoord(V3(1),V3(2),V3(3));
- myOY
.SetCoord(0,0,0)
;
+ myOY
= OZ ^ myOX
;
}
else {
myOX.SetCoord(V3(1),V3(2),V3(3));