Add shape type #201 = PIPETSHAPE in geompy.ShapeIdToType and in doc

This commit is contained in:
gdd 2012-04-18 09:31:00 +00:00
parent e1b9dcd73e
commit 04fbb85011
2 changed files with 4 additions and 1 deletions

View File

@ -65,6 +65,7 @@ The possible values of the geometrical objects are listed in the table below:
<tr align=center><td>44</td><td>3DSKETCHER</td></tr> <tr align=center><td>44</td><td>3DSKETCHER</td></tr>
<tr align=center><td>45</td><td>FILLET_2D</td></tr> <tr align=center><td>45</td><td>FILLET_2D</td></tr>
<tr align=center><td>46</td><td>FILLET_1D</td></tr> <tr align=center><td>46</td><td>FILLET_1D</td></tr>
<tr align=center><td>201</td><td>PIPETSHAPE</td></tr>
</table> </table>
Also geompy.py module provides a helper function ShapeIdToType() Also geompy.py module provides a helper function ShapeIdToType()

View File

@ -6938,7 +6938,7 @@ class geompyDC(GEOM._objref_GEOM_Gen):
# @return TRUE, if the shape contains no self-intersections. # @return TRUE, if the shape contains no self-intersections.
# #
# @ref tui_measurement_tools_page "Example" # @ref tui_measurement_tools_page "Example"
def CheckSelfIntersections (self, theShape): def CheckSelfIntersections(self, theShape):
""" """
Detect self-intersections in the given shape. Detect self-intersections in the given shape.
@ -8169,6 +8169,8 @@ class geompyDC(GEOM._objref_GEOM_Gen):
return "FILLET_2D" return "FILLET_2D"
if theId == 46: if theId == 46:
return "FILLET_1D" return "FILLET_1D"
if theId == 201:
return "PIPETSHAPE"
return "Shape Id not exist." return "Shape Id not exist."
## Returns a main shape associated with the group ## Returns a main shape associated with the group