Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ad649a
)
IMP 0021537: [CEA 554] Add behaviour in GetAngle and GetAngleRadians.
author
jfa
<jfa@opencascade.com>
Fri, 3 Aug 2012 13:38:37 +0000
(13:38 +0000)
committer
jfa
<jfa@opencascade.com>
Fri, 3 Aug 2012 13:38:37 +0000
(13:38 +0000)
src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx
patch
|
blob
|
history
diff --git
a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx
b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx
index 73800fb7f55bc58bfe04249ddd788563830fc50b..98abba29cb334a09d5a9ccd8300692767b77a087 100644
(file)
--- a/
src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx
+++ b/
src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx
@@
-2111,6
+2111,11
@@
Standard_Real GEOMImpl_IMeasureOperations::GetAngleBtwVectors (Handle(GEOM_Objec
if (theVec1.IsNull() || theVec2.IsNull())
return anAngle;
+ if (theVec1->GetType() != GEOM_VECTOR || theVec2->GetType() != GEOM_VECTOR) {
+ SetErrorCode("Two vectors must be given");
+ return anAngle;
+ }
+
Handle(GEOM_Function) aRefVec1 = theVec1->GetLastFunction();
Handle(GEOM_Function) aRefVec2 = theVec2->GetLastFunction();
if (aRefVec1.IsNull() || aRefVec2.IsNull())