occt: master a86d3ec0

Author Committer Branch Timestamp Parent
nbv bugmaster master 2014-01-20 10:56:15 master 091232ba
Affected Issues  0024203: Command "sameparameter" in DRAW on attached edge set tolerance equal to 116.
Changeset 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
mod - src/Approx/Approx_SameParameter.cxx Diff File
mod - src/BRepLib/BRepLib.cxx Diff File
mod - src/BRepTest/BRepTest_CurveCommands.cxx Diff File
mod - src/Extrema/Extrema_GLocateExtPC.gxx Diff File
add - tests/bugs/modalg_5/bug24203 Diff File
mod - tests/heal/data/advanced/Z3 Diff File