0023404: Create SquareConfusion function in Precision package for speed and convenience
[occt.git] / src / VrmlData / VrmlData_ShapeConvert.cxx
index c523c43..410d393 100755 (executable)
@@ -414,7 +414,7 @@ Handle_VrmlData_Geometry VrmlData_ShapeConvert::triToIndexedFaceSet
   Poly_Connect PC(theTri);
   // Create the Normals node (if UV- values are available)
   TopLoc_Location aLoc;
-  const Standard_Real aConf2 = Precision::Confusion()*Precision::Confusion();
+  const Standard_Real aConf2 = Precision::SquareConfusion();
   const Handle(Geom_Surface) aSurface = BRep_Tool::Surface (theFace, aLoc);
   if (theTri->HasUVNodes() && aSurface.IsNull() == Standard_False) {
     if (aSurface->IsCNu(1) && aSurface->IsCNv(1))