- aTr2.PositionOnCurve()==IntRes2d_Middle) {
- //
- const Handle(Geom_Curve)& aC3D1=aIE1.Curve();
- if (!aC3D1.IsNull()) {
- aP3D1=aC3D1->Value(aIP_ParamOnFirst);
- }
- else {
- aP2D1=aGAC1.Value(aIP_ParamOnFirst);
- aS->D0(aP2D1.X(), aP2D1.Y(), aP3D1);
- }
- //
- const Handle(Geom_Curve)& aC3D2=aIE2.Curve();
- if (!aC3D2.IsNull()) {
- aP3D2=aC3D2->Value(aIP_ParamOnSecond);
- }
- else {
- aP2D2=aGAC2.Value(aIP_ParamOnSecond);
- aS->D0(aP2D2.X(), aP2D2.Y(), aP3D2);
- }
- //
- aD1=aPV.Distance(aP3D1);
- aD2=aPV.Distance(aP3D2);
- aDmax=(aD1>aD2)? aD1 : aD2;
- if (aDmax>aCoeff*aTolV) {
- if (aDmax<10.*aTolV){
- aBB.UpdateVertex(aV, aDmax);
- bRet=Standard_True;
- }
- }
+ aTr2.PositionOnCurve()==IntRes2d_Middle) {
+ //
+ const Handle(Geom_Curve)& aC3D1=aIE1.Curve();
+ if (!aC3D1.IsNull()) {
+ aP3D1=aC3D1->Value(aIP_ParamOnFirst);
+ }
+ else {
+ aP2D1=aGAC1.Value(aIP_ParamOnFirst);
+ aS->D0(aP2D1.X(), aP2D1.Y(), aP3D1);
+ }
+ //
+ const Handle(Geom_Curve)& aC3D2=aIE2.Curve();
+ if (!aC3D2.IsNull()) {
+ aP3D2=aC3D2->Value(aIP_ParamOnSecond);
+ }
+ else {
+ aP2D2=aGAC2.Value(aIP_ParamOnSecond);
+ aS->D0(aP2D2.X(), aP2D2.Y(), aP3D2);
+ }
+ //
+ aD1=aPV.Distance(aP3D1);
+ aD2=aPV.Distance(aP3D2);
+ aDmax=(aD1>aD2)? aD1 : aD2;
+ if (aDmax>aCoeff*aTolV) {
+ //modified by NIZNHY-PKV Mon Jul 02 13:56:35 2012f
+ aDT=10.*aTolV;
+ if (aDT<aDTresh) {
+ aDT=aDTresh;
+ }
+ if (aDmax<aDT){
+ //if (aDmax<10.*aTolV){
+ //modified by NIZNHY-PKV Mon Jul 02 13:56:40 2012t
+ aBB.UpdateVertex(aV, aDmax);
+ bRet=Standard_True;
+ }
+ }