Mantis issue 0021066: EDF 1622: GetAngle function.

This commit is contained in:
jfa 2011-12-19 11:58:31 +00:00
parent f85d1e4bf5
commit 8b92788b34

View File

@ -2017,6 +2017,10 @@ void GEOMImpl_IMeasureOperations::PointCoordinates (Handle(GEOM_Object) theShape
Standard_Real GEOMImpl_IMeasureOperations::GetAngle (Handle(GEOM_Object) theLine1, Standard_Real GEOMImpl_IMeasureOperations::GetAngle (Handle(GEOM_Object) theLine1,
Handle(GEOM_Object) theLine2) Handle(GEOM_Object) theLine2)
{ {
if (theLine1->GetType() == GEOM_VECTOR &&
theLine2->GetType() == GEOM_VECTOR)
return GetAngleBtwVectors(theLine1, theLine2);
SetErrorCode(KO); SetErrorCode(KO);
Standard_Real anAngle = -1.0; Standard_Real anAngle = -1.0;