Fixed bug with temporary objects.
UV(1) = aMaxCU;
UV(2) = aMaxSU;
UV(3) = aMaxSV;
- math_FunctionSetRoot(myF, UV, Tol, UVinf, UVsup);
+ math_FunctionSetRoot aFunc(myF, UV, Tol, UVinf, UVsup);
break;
}
//
Standard_Real aDeflection =
MAX3( aXmax-aXmin , aYmax-aYmin , aZmax-aZmin) * 0.004;
- BRepMesh_IncrementalMesh(S, aDeflection);
+ BRepMesh_IncrementalMesh aMesh (S, aDeflection);
TopLoc_Location L;
else if (iNode == pTri[i]->Node(2))
const_cast<Poly_CoherentTriangle *>(pTri[i])->mypLink[2] = 0L;
else
- Standard_ProgramError("Poly_CoherentTriangulation::RemoveLink: "
- " wrong connectivity between triangles");
+ Standard_ProgramError::Raise("Poly_CoherentTriangulation::RemoveLink: "
+ " wrong connectivity between triangles");
}
}
}
else if (aTri.Node(1) == theLink.Node(1))
pTri[1] = &aTri;
} else
- Standard_ProgramError("Poly_CoherentTriangulation::FindTriangle : "
- " Data incoherence detected");
+ Standard_ProgramError::Raise("Poly_CoherentTriangulation::FindTriangle : "
+ " Data incoherence detected");
if (pTri[0] && pTri[1])
break;
}
aPM.Start();
aTM.Start();
- // do some operation that will take considerable time compared with time or starting / stopping timers
+ // do some operation that will take considerable time compared with time of starting / stopping timers
BRepPrimAPI_MakeBox aBox (10., 10., 10.);
BRepPrimAPI_MakeSphere aSphere (10.);
- BRepAlgo_Cut (aBox.Shape(), aSphere.Shape());
+ BRepAlgo_Cut aCutter (aBox.Shape(), aSphere.Shape());
aTM.Stop();
aPM.Stop();
if( isAutoTriangulation && !BRepTools::Triangulation (theShape, Precision::Infinite()) )
{
- BRepMesh_IncrementalMesh(theShape, theDeflection, Standard_False, theDeviationAngle);
+ BRepMesh_IncrementalMesh aMesher(theShape, theDeflection, Standard_False, theDeviationAngle);
}
Handle(StdSelect_BRepOwner) aBrepOwner;
gp_Pnt tsee_entity0::Pnt() const
{
- if (!Is0()) Standard_Failure("not 0d");
+ if (!Is0()) Standard_Failure::Raise("not 0d");
gp_Pnt P;
if (IsP()) P = myEPDS->Point(myEindex).Point();
else if (IsV()) P = BRep_Tool::Pnt(TopoDS::Vertex(myEPDS->Shape(myEindex)));