From 04fbb85011e5f9b6d9e68c34fb821bd1e36e101d Mon Sep 17 00:00:00 2001 From: gdd Date: Wed, 18 Apr 2012 09:31:00 +0000 Subject: [PATCH] Add shape type #201 = PIPETSHAPE in geompy.ShapeIdToType and in doc --- doc/salome/gui/GEOM/input/geometrical_object_properties.doc | 1 + src/GEOM_SWIG/geompyDC.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/salome/gui/GEOM/input/geometrical_object_properties.doc b/doc/salome/gui/GEOM/input/geometrical_object_properties.doc index f284337fc..a5b55449a 100644 --- a/doc/salome/gui/GEOM/input/geometrical_object_properties.doc +++ b/doc/salome/gui/GEOM/input/geometrical_object_properties.doc @@ -65,6 +65,7 @@ The possible values of the geometrical objects are listed in the table below: 443DSKETCHER 45FILLET_2D 46FILLET_1D + 201PIPETSHAPE Also geompy.py module provides a helper function ShapeIdToType() diff --git a/src/GEOM_SWIG/geompyDC.py b/src/GEOM_SWIG/geompyDC.py index 413a746b4..4c9072773 100644 --- a/src/GEOM_SWIG/geompyDC.py +++ b/src/GEOM_SWIG/geompyDC.py @@ -6938,7 +6938,7 @@ class geompyDC(GEOM._objref_GEOM_Gen): # @return TRUE, if the shape contains no self-intersections. # # @ref tui_measurement_tools_page "Example" - def CheckSelfIntersections (self, theShape): + def CheckSelfIntersections(self, theShape): """ Detect self-intersections in the given shape. @@ -8169,6 +8169,8 @@ class geompyDC(GEOM._objref_GEOM_Gen): return "FILLET_2D" if theId == 46: return "FILLET_1D" + if theId == 201: + return "PIPETSHAPE" return "Shape Id not exist." ## Returns a main shape associated with the group -- 2.39.2