From 9359c346c2cf500c7d793748fb345d14052503ea Mon Sep 17 00:00:00 2001 From: dmv Date: Wed, 20 Jan 2010 13:08:18 +0000 Subject: [PATCH] 0020654: [CEA 386] GetType() function --- .../input/geometrical_object_properties.doc | 30 +++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/doc/salome/gui/GEOM/input/geometrical_object_properties.doc b/doc/salome/gui/GEOM/input/geometrical_object_properties.doc index 21b72f7f5..9b21c7792 100644 --- a/doc/salome/gui/GEOM/input/geometrical_object_properties.doc +++ b/doc/salome/gui/GEOM/input/geometrical_object_properties.doc @@ -2,7 +2,9 @@ \page geometrical_obj_prop_page Geometrical Object Properties -

Geometrical Object Type

+

Geometrical Object Types

+ +GetType function: The Type property of the geometrical object specifies the way the object has been created. It is an integer identifier that @@ -16,8 +18,7 @@ IGES, STEP or other CAD file, has type equal to 1. The possible values of the geometrical objects are listed in the table below: - +
@@ -66,13 +67,14 @@ The possible values of the geometrical objects are listed in the table below: +
IDSTRING
0COPY
1IMPORT
443DSKETCHER
45FILLET_2D
46FILLET_1D
&nbps;&nbps;
Also geompy.py module provides a helper function ShapeIdToType() that allows converting of the geometrical object type id value to its string representation. -For example: +For example: \code import geompy box = geompy.MakeBoxDXDYDZ(10,10,10) @@ -80,6 +82,24 @@ type = geompy.ShapeIdToType(box.GetType()) print type \endcode -The above code prints "BOX" value. +The above code prints "BOX" value. + +GetShapeType function: + +There are the shape type in terms of its topology nature, possible +values are: { COMPOUND, COMPSOLID, SOLID, SHELL, FACE, WIRE, EDGE, +VERTEX, SHAPE }
+This type can be retrieved using geompy function GetShapeType(). + +Example code: +\code +import geompy +import GEOM +box = geompy.MakeBoxDXDYDZ(10,10,10) +type = geompy.GetShapeType() +print type == GEOM.SOLID +\endcode + +The code above prints "True". */ -- 2.39.2