From e738a9e72b5a9005c27520ee108cfbfcb5ad07c0 Mon Sep 17 00:00:00 2001 From: jfa Date: Tue, 6 Sep 2022 16:06:18 +0300 Subject: [PATCH] Correct test --- src/GEOM_SWIG/CMakeLists.txt | 1 - src/GEOM_SWIG/geomBuilder.py | 31 ++++++++++--------- .../GEOM_TestCR.py => test/test_CR.py | 0 test/tests.set | 1 + 4 files changed, 17 insertions(+), 16 deletions(-) rename src/GEOM_SWIG/GEOM_TestCR.py => test/test_CR.py (100%) diff --git a/src/GEOM_SWIG/CMakeLists.txt b/src/GEOM_SWIG/CMakeLists.txt index 0aae52841..39f3ac6af 100644 --- a/src/GEOM_SWIG/CMakeLists.txt +++ b/src/GEOM_SWIG/CMakeLists.txt @@ -59,7 +59,6 @@ SET(_other_SCRIPTS GEOM_Nut.py GEOM_Sketcher.py GEOM_ObjectInfo.py - GEOM_TestCR.py PAL_MESH_019_020_geometry.py PAL_MESH_028_geometry.py PAL_MESH_030_geometry.py diff --git a/src/GEOM_SWIG/geomBuilder.py b/src/GEOM_SWIG/geomBuilder.py index 827a257e7..5d6a516a2 100644 --- a/src/GEOM_SWIG/geomBuilder.py +++ b/src/GEOM_SWIG/geomBuilder.py @@ -2787,21 +2787,6 @@ class geomBuilder(GEOM._objref_GEOM_Gen): pl = Polyline2D (self) return pl - ## Obtain a 2D polyline creation interface - # @return An instance of @ref gsketcher.Polyline2D "Polyline2D" interface - # - # @ref tui_3dsketcher_page "Example" - def CanonicalRecognition (self): - """ - Obtain a canonical recognition interface. - - Example of usage: - cr = geompy.CanonicalRecognition() - cr.isLine(aLine, tolerance) - """ - cr = CanonicalRecognition (self) - return cr - # end of l3_sketcher ## @} @@ -11771,6 +11756,22 @@ class geomBuilder(GEOM._objref_GEOM_Gen): aDescr = self.MeasuOp.IsGoodForSolid(theShell) return aDescr + ## Obtain a canonical recognition interface. + # @return An instance of + # @ref canonicalrecognition.CanonicalRecognition "CanonicalRecognition" interface + # + # @ref tui_3dsketcher_page "Example" + def CanonicalRecognition (self): + """ + Obtain a canonical recognition interface. + + Example of usage: + cr = geompy.CanonicalRecognition() + cr.isLine(aLine, tolerance) + """ + cr = CanonicalRecognition (self) + return cr + # end of l2_measure ## @} diff --git a/src/GEOM_SWIG/GEOM_TestCR.py b/test/test_CR.py similarity index 100% rename from src/GEOM_SWIG/GEOM_TestCR.py rename to test/test_CR.py diff --git a/test/tests.set b/test/tests.set index f9d399eff..8b5c4e5a6 100644 --- a/test/tests.set +++ b/test/tests.set @@ -19,4 +19,5 @@ SET(ALL_TESTS test_perf_01.py + test_CR.py ) -- 2.39.2