diff --git a/src/GeomAdaptor/GeomAdaptor_Curve.cxx b/src/GeomAdaptor/GeomAdaptor_Curve.cxx index 7ca68ce73a..b4f4a7662d 100755 --- a/src/GeomAdaptor/GeomAdaptor_Curve.cxx +++ b/src/GeomAdaptor/GeomAdaptor_Curve.cxx @@ -331,6 +331,7 @@ void GeomAdaptor_Curve::Intervals(TColStd_Array1OfReal& T, { Standard_Integer myNbIntervals = 1; Standard_Integer NbSplit; + Standard_Real FirstParam = myFirst, LastParam = myLast; if (myTypeCurve == GeomAbs_BSplineCurve) { @@ -398,6 +399,8 @@ void GeomAdaptor_Curve::Intervals(TColStd_Array1OfReal& T, BSplCLib::LocateParameter(myBspl->Degree(),TK,TM,myLast, myBspl->IsPeriodic(), 1,Nb,Index2,newLast); + FirstParam = newFirst; + LastParam = newLast; // On decale eventuellement les indices // On utilise une "petite" tolerance, la resolution ne doit // servir que pour les tres longue courbes....(PRO9248) @@ -456,8 +459,8 @@ void GeomAdaptor_Curve::Intervals(TColStd_Array1OfReal& T, // akm 05/04/02 ^^^ } - T( T.Lower() ) = myFirst; - T( T.Lower() + myNbIntervals ) = myLast; + T( T.Lower() ) = FirstParam; + T( T.Lower() + myNbIntervals ) = LastParam; } //======================================================================= diff --git a/tests/bugs/end b/tests/bugs/end index b0fd1654ab..e3527d926f 100755 --- a/tests/bugs/end +++ b/tests/bugs/end @@ -158,5 +158,9 @@ if { [info exist only_screen2d] } { v2ddump $imagedir/${test_image}.png } +if { [info exist only_screen_axo] } { + xwd $imagedir/${test_image}.png +} + # to end a test script puts "TEST COMPLETED" diff --git a/tests/bugs/vis/bug23062 b/tests/bugs/vis/bug23062 new file mode 100755 index 0000000000..80b9354553 --- /dev/null +++ b/tests/bugs/vis/bug23062 @@ -0,0 +1,21 @@ +puts "========" +puts "CR23062" +puts "========" +puts "" + +####################################################### +## Incorrect display of edge in draw axo viewer +####################################################### + +restore [locate_data_file bug23062_ProblemWire.brep] result + +smallview +display result +fit + +explode result v + +vinit +vdisplay result + +set only_screen_axo 1