1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0023686: The call to 'Precision::Angular()' is pointless in the Release build

Calling 'Precision::Angular()' inky if 'DEB' is defined.
This commit is contained in:
Pawel
2013-01-04 12:04:50 +01:00
parent 746bb46a41
commit f8814ccf52

View File

@@ -1138,10 +1138,6 @@ Standard_EXPORT Standard_Boolean FUN_ds_shareG
gp_Dir nxx1; ok = FUN_tool_getxx(F1,E1,par1,nggeomF1,nxx1); gp_Dir nxx1; ok = FUN_tool_getxx(F1,E1,par1,nggeomF1,nxx1);
if (!ok) return Standard_False; if (!ok) return Standard_False;
#ifdef DEB
// Standard_Real tol = 1.e3*
#endif
Precision::Angular();
Standard_Real prod = nxx1.Dot(nxx2); Standard_Real prod = nxx1.Dot(nxx2);
shareG = (prod > 0.); shareG = (prod > 0.);
return Standard_True; return Standard_True;
@@ -1753,10 +1749,7 @@ Standard_EXPORT void FUN_ds_completeforSE6(const Handle(TopOpeBRepDS_HDataStruct
gp_Vec tgE ; ok = TopOpeBRepTool_TOOL::TggeomE(parE,SE,tgE); // dir gp_Vec tgE ; ok = TopOpeBRepTool_TOOL::TggeomE(parE,SE,tgE); // dir
Standard_Real dot = tgEsd.Dot(tgE); Standard_Real dot = tgEsd.Dot(tgE);
#ifdef DEB #ifdef DEB
Standard_Real tola = Standard_Real tola = Precision::Angular();
#endif
Precision::Angular();
#ifdef DEB
if (Abs(dot) < tola) Standard_Failure::Raise("completeforSE6"); if (Abs(dot) < tola) Standard_Failure::Raise("completeforSE6");
#endif #endif
Standard_Boolean SO = (dot > 0.); Standard_Boolean SO = (dot > 0.);