From 5c210a49ddf14c32b68c1423298fef54126105e8 Mon Sep 17 00:00:00 2001 From: abv Date: Wed, 29 Apr 2015 23:00:28 +0300 Subject: [PATCH] 0026166: Improve ShapeHealing execution time on shape without PCurves Default projection algorithm changed to Tree in Extrema_GenExtPS Test grid perf heal added --- src/Extrema/Extrema_GenExtPS.cxx | 2 +- tests/perf/grids.list | 1 + tests/perf/heal/pcurves1 | 4 ++++ tests/perf/heal/pcurves2 | 4 ++++ 4 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 tests/perf/heal/pcurves1 create mode 100644 tests/perf/heal/pcurves2 diff --git a/src/Extrema/Extrema_GenExtPS.cxx b/src/Extrema/Extrema_GenExtPS.cxx index 97cf856d3f..1130aae139 100644 --- a/src/Extrema/Extrema_GenExtPS.cxx +++ b/src/Extrema/Extrema_GenExtPS.cxx @@ -219,7 +219,7 @@ Extrema_GenExtPS::Extrema_GenExtPS() myDone = Standard_False; myInit = Standard_False; myFlag = Extrema_ExtFlag_MINMAX; - myAlgo = Extrema_ExtAlgo_Grad; + myAlgo = Extrema_ExtAlgo_Tree; } diff --git a/tests/perf/grids.list b/tests/perf/grids.list index c7c4c778db..af7c3d4c58 100644 --- a/tests/perf/grids.list +++ b/tests/perf/grids.list @@ -1,3 +1,4 @@ 001 bop 002 ncollection 003 bspline +004 heal diff --git a/tests/perf/heal/pcurves1 b/tests/perf/heal/pcurves1 new file mode 100644 index 0000000000..4320e1ebf6 --- /dev/null +++ b/tests/perf/heal/pcurves1 @@ -0,0 +1,4 @@ +# Fixing shape on a case where most is taken by projection of pcurves + +restore [locate_data_file bug26166_beforeSH1.brep] a +fixshape result a diff --git a/tests/perf/heal/pcurves2 b/tests/perf/heal/pcurves2 new file mode 100644 index 0000000000..977b704eba --- /dev/null +++ b/tests/perf/heal/pcurves2 @@ -0,0 +1,4 @@ +# Fixing shape on a case where most is taken by projection of pcurves + +restore [locate_data_file bug26166_beforeSH2.brep] a +fixshape result a -- 2.39.5