]> OCCT Git - occt-copy.git/commit
0024203: Command "sameparameter" in DRAW on attached edge set tolerance equal to...
authornbv <nbv@opencascade.com>
Mon, 20 Jan 2014 10:56:15 +0000 (14:56 +0400)
committerabv <abv@opencascade.com>
Tue, 25 Mar 2014 12:07:37 +0000 (16:07 +0400)
commit4401e4e8ff67b797968a04fec47a4dd26b104ee1
tree5727b1b256b47392f094eaf9213e295d0b461ff4
parent8db1c1c0d966528bf9da73fb594c2644aad9d68e
0024203: Command "sameparameter" in DRAW on attached edge set tolerance equal to 116.

Main problem:
Algorithm of locale extrema, which is called by "sameparameter" command, cannot find extrema because extremal point is far from initial point. Therefore, reparametrization of edge's curve (for same-parameter) cannot be made properly.

Solve:
Using of global extrema (see Approx_SameParameter.cxx).

As the given edge contains two 2d-curves and the second from them is problem, for select needed curve, an interface of "mk2dcurve" DRAW-command is changed. Now there can be used an index of curve (by default, index = 1, as earlier), see help for more detail information.

Test "heal advanced Z3":
Now checkshape finds only two invalid subshapes. Earlier, it found four subshapes. I think it is not regression. Therefore, test case was changed.

Tolerance reducing.

test
src/Approx/Approx_SameParameter.cxx
src/BRepLib/BRepLib.cxx
src/BRepTest/BRepTest_CurveCommands.cxx
src/Extrema/Extrema_GLocateExtPC.gxx
tests/bugs/modalg_5/bug24203 [new file with mode: 0644]
tests/heal/data/advanced/Z3