1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // File : GEOM_Gen.idl
23 // Author : Sergey RUIN
28 #include "SALOME_Exception.idl"
29 #include "SALOME_Component.idl"
30 #include "SALOMEDS.idl"
31 #include "SALOMEDS_Attributes.idl"
33 #include "SALOME_GenericObj.idl"
38 * Topological types of shapes (like Open Cascade types)
40 enum shape_type { COMPOUND, COMPSOLID, SOLID, SHELL,
41 FACE, WIRE, EDGE, VERTEX, SHAPE };
45 * State of shape relatively geometrical surface like plane, sphere or cylinder.
46 * Is used in functions GEOM_IShapesOperations.GetShapesOn<xxx>()
50 /*! Shape is on surface */
54 * Shape is in the direction defined by the normal and not on surface.
55 * For plane it means above the plane,
56 * For sphere and cylinder it means outside of volume, bounded by the surface.
61 * Shape is in the direction defined by the normal and on surface.
67 * Complementary to ONOUT.
68 * For plane it means below the plane,
69 * For sphere and cylinder it means inside the volume, bounded by the surface
70 * (beyond axis and surface for cylinder and beyond cented and surface for sphere).
75 * Complementary to OUT.
82 * Kind of method to find inside one main shape some subshapes,
83 * corresponding to other given shape (its argument)
84 * Is used in functions GEOM_Gen.RestoreSubShapes<xxx>()
86 enum find_shape_method
88 /*! Use GetInPlace functionality. Suits all cases, except transformations */
91 /*! To be used only for transformation result, to find subshapes of argument.
92 * Only this method can be used after transformation.
96 /*! To find only shared subshapes, not modified by the operation */
99 /*! Use GetShapesOnShape method (can work only on solids) */
100 FSM_GetShapesOnShape,
102 /*! Use GetInPlaceByHistory method (can work only after Partition) */
103 FSM_GetInPlaceByHistory
107 typedef sequence<string> string_array;
108 typedef sequence<short> short_array;
109 typedef sequence<long> ListOfLong;
110 typedef sequence<double> ListOfDouble;
112 interface GEOM_Object;
114 typedef sequence<GEOM_Object> ListOfGO;
117 * GEOM_Object: interface of geometric object
119 interface GEOM_Object : SALOME::GenericObj
123 * Get an entry of the object in GEOM component.
128 * Get ID of study, where the object is created.
133 * Get internal type of the object (POINT, BOX, CYLINDER, EXTRUSION...).
138 * Get a <VAR>shape_type</VAR> of the object value.
140 shape_type GetShapeType();
143 * Set name of the object.
144 * \param theName is a name which will be associated with this object.
146 void SetName (in string theName);
149 * Get name of the object associated with this object.
154 * Set color of the object.
155 * \param theColor is a color of the object.
157 void SetColor(in SALOMEDS::Color theColor);
160 * Get color of the object.
162 SALOMEDS::Color GetColor();
165 * Toggle auto color mode on the object.
166 * \param theAtoColor is a flag which toggles auto color mode.
168 void SetAutoColor(in boolean theAutoColor);
171 * Get flag of object's auto color mode.
173 boolean GetAutoColor();
176 * Set a Study entry where this object was published.
178 void SetStudyEntry (in string theEntry);
181 * Get a Study entry where this object was published.
183 string GetStudyEntry();
186 * Get a list of all GEOM objects on which were the arguments
187 * when this object was constructed and modified.
188 * \note This method is supposed to be used by GUI only.
190 ListOfGO GetDependency();
193 * Get a list of GEOM objects on which the last function that created or modified the object depends.
194 * \note This method is supposed to be used by GUI only.
196 ListOfGO GetLastDependency();
199 * Get the TopoDS_Shape, for colocated case only.
201 long long getShape();
204 ######################################################################
205 * Internal methods (For sub shape identification)
206 ######################################################################
210 * Get geometric shape of the object as a byte stream
212 SALOMEDS::TMPFile GetShapeStream();
215 * Returns True if this object is not a sub shape of another object.
217 boolean IsMainShape();
220 * Get a list of ID's of sub shapes in the main shape.
221 * \note Internal method, suppopsed to be used only by GEOM_Client
223 ListOfLong GetSubShapeIndices();
226 * Get a main shape object to which this object is a sub shape
227 * \note Internal method, suppopsed to be used only by GEOM_Client
229 GEOM_Object GetMainShape();
232 * Return true if geom object representes a shape.
233 * For example, method return false for GEOM_MARKER
240 * GEOM_IOperations: basic methods of all geometric operations
242 interface GEOM_IOperations : SALOME::GenericObj
245 * To know, if the operation was successfully performed
250 * Set the operation error code
251 * \param theErrorID is a string describing the error occured
252 * \note This method is supposed to be used only by interfaces inheriting from IOperations.
254 void SetErrorCode (in string theErrorID);
257 * Get the operation error code
259 string GetErrorCode();
262 * Get ID of study, where the operation is defined
267 * Opens a new transaction
269 void StartOperation();
272 * Closes the previously opened trasaction
274 void FinishOperation();
277 * Aborts the previously opened transaction
279 void AbortOperation();
283 * GEOM_IBasicOperations: interface for basic geometry creation
284 * (Point, Vector, Plane, Marker)
286 interface GEOM_IBasicOperations : GEOM_IOperations
289 * Create point by three coordinates.
290 * \param theX The X coordinate of the point.
291 * \param theY The Y coordinate of the point.
292 * \param theZ The Z coordinate of the point.
293 * \return New GEOM_Object, containing the created point.
295 GEOM_Object MakePointXYZ (in double theX, in double theY, in double theZ);
298 * Create a point, distant from the referenced point
299 * on the given distances along the coordinate axes.
300 * \param theReference The referenced point.
301 * \param theX Displacement from the referenced point along OX axis.
302 * \param theY Displacement from the referenced point along OY axis.
303 * \param theZ Displacement from the referenced point along OZ axis.
304 * \return New GEOM_Object, containing the created point.
306 GEOM_Object MakePointWithReference (in GEOM_Object theReference,
307 in double theX, in double theY, in double theZ);
310 * Create a point, corresponding to the given parameter on the given curve.
311 * \param theRefCurve The referenced curve.
312 * \param theParameter Value of parameter on the referenced curve.
313 * \return New GEOM_Object, containing the created point.
315 GEOM_Object MakePointOnCurve (in GEOM_Object theRefCurve,
316 in double theParameter);
319 * Create a point, corresponding to the given parameters on the
321 * \param theRefSurf The referenced surface.
322 * \param theUParameter Value of U-parameter on the referenced surface.
323 * \param theVParameter Value of V-parameter on the referenced surface.
324 * \return New GEOM_Object, containing the created point.
326 GEOM_Object MakePointOnSurface (in GEOM_Object theRefSurf,
327 in double theUParameter,
328 in double theVParameter);
331 * Create a point, on two lines intersection.
332 * \param theRefLine1, theRefLine2 The referenced lines.
333 * \return New GEOM_Object, containing the created point.
335 GEOM_Object MakePointOnLinesIntersection (in GEOM_Object theRefLine1,
336 in GEOM_Object theRefLine2);
339 * Create a vector, corresponding to tangent to the given parameter on the given curve.
340 * \param theRefCurve The referenced curve.
341 * \param theParameter Value of parameter on the referenced curve.This value should be have value
342 * \between 0. and 1.. Value of 0. corresponds first parameter of curve value 1. corresponds
343 * \last parameter of curve.
344 * \return New GEOM_Object, containing the created point.
346 GEOM_Object MakeTangentOnCurve (in GEOM_Object theRefCurve,
347 in double theParameter);
350 * Create a vector with the given components.
351 * \param theDX X component of the vector.
352 * \param theDY Y component of the vector.
353 * \param theDZ Z component of the vector.
354 * \return New GEOM_Object, containing the created vector.
356 GEOM_Object MakeVectorDXDYDZ (in double theDX,
361 * Create a vector between two points.
362 * \param thePnt1 Start point for the vector.
363 * \param thePnt2 End point for the vector.
364 * \return New GEOM_Object, containing the created vector.
366 GEOM_Object MakeVectorTwoPnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
369 * Create a line, passing through the given point
370 * and parrallel to the given direction
371 * \param thePnt Point. The resulting line will pass through it.
372 * \param theDir Direction. The resulting line will be parallel to it.
373 * \return New GEOM_Object, containing the created line.
375 GEOM_Object MakeLine (in GEOM_Object thePnt, in GEOM_Object theDir);
378 * Create a line, passing through the given points
379 * \param thePnt1 First of two points, defining the line.
380 * \param thePnt2 Second of two points, defining the line.
381 * \return New GEOM_Object, containing the created line.
383 GEOM_Object MakeLineTwoPnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
386 * Create a line, given by two faces intersection.
387 * \param theFace1 First of two faces, defining the line.
388 * \param theFace2 Second of two faces, defining the line.
389 * \return New GEOM_Object, containing the created line.
391 GEOM_Object MakeLineTwoFaces (in GEOM_Object theFace1, in GEOM_Object theFace2);
394 * Create a plane, passing through the three given points
395 * \param thePnt1 First of three points, defining the plane.
396 * \param thePnt2 Second of three points, defining the plane.
397 * \param thePnt3 Fird of three points, defining the plane.
398 * \param theTrimSize Half size of a side of quadrangle face, representing the plane.
399 * \return New GEOM_Object, containing the created plane.
401 GEOM_Object MakePlaneThreePnt (in GEOM_Object thePnt1,
402 in GEOM_Object thePnt2,
403 in GEOM_Object thePnt3,
404 in double theTrimSize);
407 * Create a plane, passing through the given point
408 * and normal to the given vector.
409 * \param thePnt Point, the plane has to pass through.
410 * \param theVec Vector, defining the plane normal direction.
411 * \param theTrimSize Half size of a side of quadrangle face, representing the plane.
412 * \return New GEOM_Object, containing the created plane.
414 GEOM_Object MakePlanePntVec (in GEOM_Object thePnt,
415 in GEOM_Object theVec,
416 in double theTrimSize);
419 * Create a plane, similar to the existing one, but with another size of representing face.
420 * \param theFace Referenced plane or LCS(Marker).
421 * \param theTrimSize New half size of a side of quadrangle face, representing the plane.
422 * \return New GEOM_Object, containing the created plane.
424 GEOM_Object MakePlaneFace (in GEOM_Object theFace,
425 in double theTrimSize);
428 * Create a local coordinate system.
429 * \param theOX,theOY,theOZ Three coordinates of coordinate system origin.
430 * \param theXDX,theXDY,theXDZ Three components of OX direction
431 * \param theYDX,theYDY,theYDZ Three components of OY direction
432 * \return New GEOM_Object, containing the created coordinate system.
434 GEOM_Object MakeMarker (in double theOX , in double theOY , in double theOZ,
435 in double theXDX, in double theXDY, in double theXDZ,
436 in double theYDX, in double theYDY, in double theYDZ);
439 * Create a tangent plane to specified face in the point with specified parameters.
440 * Values of parameters should be between 0. and 1.0
441 * \param theFace - face for which tangent plane shuold be built.
442 * \param theParameterU - value of parameter by U
443 * \param theParameterV - value of parameter Vthe
444 * \param theTrimSize - defines sizes of created face
445 * \return New GEOM_Object, containing the face built on tangent plane.
447 GEOM_Object MakeTangentPlaneOnFace(in GEOM_Object theFace,
448 in double theParameterU,
449 in double theParameterV,
450 in double theTrimSize);
453 interface GEOM_ITransformOperations : GEOM_IOperations
456 * Translate the given object along the vector, specified by its end points.
457 * \param theObject The object to be translated.
458 * \param thePoint1 Start point of translation vector.
459 * \param thePoint2 End point of translation vector.
462 GEOM_Object TranslateTwoPoints (in GEOM_Object theObject,
463 in GEOM_Object thePoint1,
464 in GEOM_Object thePoint2);
467 * Translate the given object along the vector, specified
468 * by its end points, creating its copy before the translation.
469 * \param theObject The object to be translated.
470 * \param thePoint1 Start point of translation vector.
471 * \param thePoint2 End point of translation vector.
472 * \return New GEOM_Object, containing the translated object.
474 GEOM_Object TranslateTwoPointsCopy (in GEOM_Object theObject,
475 in GEOM_Object thePoint1,
476 in GEOM_Object thePoint2);
479 * Translate the given object along the vector, specified by its components.
480 * \param theObject The object to be translated.
481 * \param theDX,theDY,theDZ Components of translation vector.
484 GEOM_Object TranslateDXDYDZ (in GEOM_Object theObject,
485 in double theDX, in double theDY, in double theDZ);
488 * Translate the given object along the vector, specified
489 * by its components, creating its copy before the translation.
490 * \param theObject The object to be translated.
491 * \param theDX,theDY,theDZ Components of translation vector.
492 * \return New GEOM_Object, containing the translated object.
494 GEOM_Object TranslateDXDYDZCopy (in GEOM_Object theObject,
495 in double theDX, in double theDY, in double theDZ);
499 * Translate the given object along the given vector.
500 * \param theObject The object to be translated.
501 * \param theVector Translation vector, giving both direction and distance.
504 GEOM_Object TranslateVector (in GEOM_Object theObject,
505 in GEOM_Object theVector);
508 * Translate the given object along the given vector,
509 * creating its copy before the translation.
510 * \param theObject The object to be translated.
511 * \param theVector Translation vector, giving both direction and distance.
512 * \return New GEOM_Object, containing the translated object.
514 GEOM_Object TranslateVectorCopy (in GEOM_Object theObject,
515 in GEOM_Object theVector);
518 * Translate the given object along the given vector on given distance,
519 * creating its copy before the translation.
520 * \param theObject The object to be translated.
521 * \param theVector Translation vector, giving a direction.
522 * \param theDistance Translation distance, giving a distance.
523 * \param theCope Translation copy, creating its copy if true.
524 * \return New GEOM_Object, containing the translated object.
526 GEOM_Object TranslateVectorDistance (in GEOM_Object theObject,
527 in GEOM_Object theVector,
528 in double theDistance,
532 * Translate the given object along the given vector a given number times
533 * \param theObject The object to be translated.
534 * \param theVector Direction of the translation.
535 * \param theStep Distance to translate on.
536 * \param theNbTimes Quantity of translations to be done.
537 * \return New GEOM_Object, containing compound of all
538 * the shapes, obtained after each translation.
540 GEOM_Object MultiTranslate1D (in GEOM_Object theObject,
541 in GEOM_Object theVector,
546 * Conseqently apply two specified translations to theObject specified number of times.
547 * \param theObject The object to be translated.
548 * \param theVector1 Direction of the first translation.
549 * \param theStep1 Step of the first translation.
550 * \param theNbTimes1 Quantity of translations to be done along theVector1.
551 * \param theVector2 Direction of the second translation.
552 * \param theStep2 Step of the second translation.
553 * \param theNbTimes2 Quantity of translations to be done along theVector2.
554 * \return New GEOM_Object, containing compound of all
555 * the shapes, obtained after each translation.
557 GEOM_Object MultiTranslate2D (in GEOM_Object theObject,
558 in GEOM_Object theVector1,
561 in GEOM_Object theVector2,
563 in long theNbTimes2);
566 * Rotate given object around vector perpendicular to plane containing three points.
567 * \param theObject The object to be rotated.
568 * \param theCentPoint central point - the axis is the vector perpendicular to the plane
569 * containing the three points.
570 * \param thePoint1 and thePoint2 - in a perpendicular plan of the axis.
573 GEOM_Object RotateThreePoints (in GEOM_Object theObject,
574 in GEOM_Object theCentPoint,
575 in GEOM_Object thePoint1,
576 in GEOM_Object thePoint2);
580 * Rotate given object around vector perpendicular to plane containing three points.
581 * Creating its copy before the rotatation.
582 * \param theObject The object to be rotated.
583 * \param theCentPoint central point - the axis is the vector perpendicular to the plane
584 * containing the three points.
585 * \param thePoint1 and thePoint2 - in a perpendicular plan of the axis.
586 * \return New GEOM_Object, containing the rotated object.
588 GEOM_Object RotateThreePointsCopy (in GEOM_Object theObject,
589 in GEOM_Object theCentPoint,
590 in GEOM_Object thePoint1,
591 in GEOM_Object thePoint2);
594 * Rotate the given object around the given axis on the given angle.
595 * \param theObject The object to be rotated.
596 * \param theAxis Rotation axis.
597 * \param theAngle Rotation angle in radians.
600 GEOM_Object Rotate (in GEOM_Object theObject,
601 in GEOM_Object theAxis,
606 * Rotate the given object around the given axis
607 * on the given angle, creating its copy before the rotatation.
608 * \param theObject The object to be rotated.
609 * \param theAxis Rotation axis.
610 * \param theAngle Rotation angle in radians.
611 * \return New GEOM_Object, containing the rotated object.
613 GEOM_Object RotateCopy (in GEOM_Object theObject,
614 in GEOM_Object theAxis,
619 * Rotate the given object around the given axis a given number times.
620 * Rotation angle will be 2*PI/theNbTimes.
621 * \param theObject The object to be rotated.
622 * \param theAxis The rotation axis.
623 * \param theNbTimes Quantity of rotations to be done.
624 * \return New GEOM_Object, containing compound of all the
625 * shapes, obtained after each rotation.
627 GEOM_Object MultiRotate1D (in GEOM_Object theObject,
628 in GEOM_Object theAxis,
632 * Rotate the given object around the
633 * given axis on the given angle a given number
634 * times and multi-translate each rotation result.
635 * Translation direction passes through center of gravity
636 * of rotated shape and its projection on the rotation axis.
637 * \param theObject The object to be rotated.
638 * \param theAxis Rotation axis.
639 * \param theAngle Rotation angle in graduces.
640 * \param theNbTimes1 Quantity of rotations to be done.
641 * \param theStep Translation distance.
642 * \param theNbTimes2 Quantity of translations to be done.
643 * \return New GEOM_Object, containing compound of all the
644 * shapes, obtained after each transformation.
646 GEOM_Object MultiRotate2D (in GEOM_Object theObject,
647 in GEOM_Object theAxis,
651 in long theNbTimes2);
654 * Replace the given object by an object,
655 * symmetrical to it relatively the given plane.
656 * \param theObject The object to be mirrored.
657 * \param thePlane Plane of symmetry.
659 GEOM_Object MirrorPlane (in GEOM_Object theObject, in GEOM_Object thePlane);
662 * Create an object, symmetrical
663 * to the given one relatively the given plane.
664 * \param theObject The object to be mirrored.
665 * \param thePlane Plane of symmetry.
666 * \return New GEOM_Object, containing the mirrored shape.
668 GEOM_Object MirrorPlaneCopy (in GEOM_Object theObject, in GEOM_Object thePlane);
671 * Replace the given object by an object,
672 * symmetrical to it relatively the given axis.
673 * \param theObject The object to be mirrored.
674 * \param theAxis Axis of symmetry.
677 GEOM_Object MirrorAxis (in GEOM_Object theObject, in GEOM_Object theAxis);
680 * Create an object, symmetrical
681 * to the given one relatively the given axis.
682 * \param theObject The object to be mirrored.
683 * \param theAxis Axis of symmetry.
684 * \return New GEOM_Object, containing the mirrored object.
686 GEOM_Object MirrorAxisCopy (in GEOM_Object theObject, in GEOM_Object theAxis);
689 * Replace the given object by an object, symmetrical to it relatively the given point.
690 * \param theObject The object to be mirrored.
691 * \param thePoint Point of symmetry.
694 GEOM_Object MirrorPoint (in GEOM_Object theObject, in GEOM_Object thePoint);
697 * Create an object, symmetrical to the given one relatively the given point.
698 * \param theObject The object to be mirrored.
699 * \param thePoint Point of symmetry.
700 * \return New GEOM_Object, containing the mirrored object.
702 GEOM_Object MirrorPointCopy (in GEOM_Object theObject, in GEOM_Object thePoint);
705 * Replace the given object by its offset.
706 * \param theObject The base object for the offset.
707 * \param theOffset Offset value.
710 GEOM_Object OffsetShape (in GEOM_Object theObject, in double theOffset);
713 * Create new object as offset of the given one.
714 * \param theObject The base object for the offset.
715 * \param theOffset Offset value.
716 * \return New GEOM_Object, containing the offset object.
718 GEOM_Object OffsetShapeCopy (in GEOM_Object theObject, in double theOffset);
721 * Scale the given object by the factor.
722 * \param theObject The object to be scaled.
723 * \param thePoint Center point for scaling.
724 * \param theFactor Scaling factor value.
727 GEOM_Object ScaleShape (in GEOM_Object theObject, in GEOM_Object thePoint,
728 in double theFactor);
731 * Scale the given object by the factor, creating its copy before the scaling.
732 * \param theObject The object to be scaled.
733 * \param thePoint Center point for scaling.
734 * \param theFactor Scaling factor value.
735 * \return New GEOM_Object, containing the scaled shape.
737 GEOM_Object ScaleShapeCopy (in GEOM_Object theObject, in GEOM_Object thePoint,
738 in double theFactor);
741 * Scale the given object by different factors along coordinate axes.
742 * \param theObject The object to be scaled.
743 * \param thePoint Center point for scaling.
744 * \param theFactorX,theFactorY,theFactorZ Scaling factors along each axis.
747 GEOM_Object ScaleShapeAlongAxes (in GEOM_Object theObject,
748 in GEOM_Object thePoint,
749 in double theFactorX,
750 in double theFactorY,
751 in double theFactorZ);
754 * Scale the given object by different factors along coordinate axes,
755 * creating its copy before the scaling.
756 * \param theObject The object to be scaled.
757 * \param thePoint Center point for scaling.
758 * \param theFactorX,theFactorY,theFactorZ Scaling factors along each axis.
759 * \return New GEOM_Object, containing the scaled shape.
761 GEOM_Object ScaleShapeAlongAxesCopy (in GEOM_Object theObject,
762 in GEOM_Object thePoint,
763 in double theFactorX,
764 in double theFactorY,
765 in double theFactorZ);
768 * Modify the Location of the given object by LCS.
769 * \param theObject The object to be displaced.
770 * \param theStartLCS Coordinate system to perform displacement from it.
771 * If \a theStartLCS is NULL, displacement
772 * will be performed from global CS.
773 * If \a theObject itself is used as \a theStartLCS,
774 * its location will be changed to \a theEndLCS.
775 * \param theEndLCS Coordinate system to perform displacement to it.
778 GEOM_Object PositionShape (in GEOM_Object theObject,
779 in GEOM_Object theStartLCS,
780 in GEOM_Object theEndLCS);
783 * Modify the Location of the given object by LCS,
784 * creating its copy before the setting.
785 * \param theObject The object to be displaced.
786 * \param theStartLCS Coordinate system to perform displacement from it.
787 * If \a theStartLCS is NULL, displacement
788 * will be performed from global CS.
789 * If \a theObject itself is used as \a theStartLCS,
790 * its location will be changed to \a theEndLCS.
791 * \param theEndLCS Coordinate system to perform displacement to it.
792 * \return New GEOM_Object, containing the displaced shape.
794 GEOM_Object PositionShapeCopy (in GEOM_Object theObject,
795 in GEOM_Object theStartLCS,
796 in GEOM_Object theEndLCS);
799 * Recompute the shape from its arguments.
800 * \param theObject The object to be recomputed.
803 GEOM_Object RecomputeObject (in GEOM_Object theObject);
807 * GEOM_I3DPrimOperations: Interface for 3D primitives creation
808 * Box, Cylinder, Cone, Sphere, Prism (extrusion),
809 * Pipe (extrusion along contour), Revolution, Solid (from shell).
811 interface GEOM_I3DPrimOperations : GEOM_IOperations
814 * Create a box with specified dimensions along the coordinate axes
815 * and with edges, parallel to the coordinate axes.
816 * Center of the box will be at point (DX/2, DY/2, DZ/2).
817 * \param theDX Length of Box edges, parallel to OX axis.
818 * \param theDY Length of Box edges, parallel to OY axis.
819 * \param theDZ Length of Box edges, parallel to OZ axis.
820 * \return New GEOM_Object, containing the created box.
822 GEOM_Object MakeBoxDXDYDZ (in double theDX, in double theDY, in double theDZ);
825 * Create a box with two specified opposite vertices,
826 * and with edges, parallel to the coordinate axes
827 * \param thePnt1 First of two opposite vertices.
828 * \param thePnt2 Second of two opposite vertices.
829 * \return New GEOM_Object, containing the created box.
831 GEOM_Object MakeBoxTwoPnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
834 * Create a cylinder with given radius and height at
835 * the origin of coordinate system. Axis of the cylinder
836 * will be collinear to the OZ axis of the coordinate system.
837 * \param theR Cylinder radius.
838 * \param theH Cylinder height.
839 * \return New GEOM_Object, containing the created cylinder.
841 GEOM_Object MakeCylinderRH (in double theR, in double theH);
844 * Create a cylinder with given base point, axis, radius and height.
845 * \param thePnt Central point of cylinder base.
846 * \param theAxis Cylinder axis.
847 * \param theR Cylinder radius.
848 * \param theH Cylinder height.
849 * \return New GEOM_Object, containing the created cylinder.
851 GEOM_Object MakeCylinderPntVecRH (in GEOM_Object thePnt,
852 in GEOM_Object theAxis,
857 * Create a cone with given height and radiuses at
858 * the origin of coordinate system. Axis of the cone will
859 * be collinear to the OZ axis of the coordinate system.
860 * \param theR1 Radius of the first cone base.
861 * \param theR2 Radius of the second cone base.
862 * \note If both radiuses are non-zero, the cone will be truncated.
863 * \note If the radiuses are equal, a cylinder will be created instead.
864 * \param theH Cone height.
865 * \return New GEOM_Object, containing the created cone.
867 GEOM_Object MakeConeR1R2H (in double theR1, in double theR2, in double theH);
870 * Create a cone with given base point, axis, height and radiuses.
871 * \param thePnt Central point of the first cone base.
872 * \param theAxis Cone axis.
873 * \param theR1 Radius of the first cone base.
874 * \param theR2 Radius of the second cone base.
875 * \note If both radiuses are non-zero, the cone will be truncated.
876 * \note If the radiuses are equal, a cylinder will be created instead.
877 * \param theH Cone height.
878 * \return New GEOM_Object, containing the created cone.
880 GEOM_Object MakeConePntVecR1R2H (in GEOM_Object thePnt,
881 in GEOM_Object theAxis,
887 * Create a torus with given radiuses at the origin of coordinate system.
888 * \param theRMajor Torus major radius.
889 * \param theRMinor Torus minor radius.
890 * \return New GEOM_Object, containing the created torus.
892 GEOM_Object MakeTorusRR (in double theRMajor,
893 in double theRMinor);
896 * Create a torus with given center, normal vector and radiuses.
897 * \param thePnt Torus central point.
898 * \param theVec Torus axis of symmetry.
899 * \param theRMajor Torus major radius.
900 * \param theRMinor Torus minor radius.
901 * \return New GEOM_Object, containing the created torus.
903 GEOM_Object MakeTorusPntVecRR (in GEOM_Object thePnt,
904 in GEOM_Object theVec,
906 in double theRMinor);
909 * Create a sphere with given radius at the origin of coordinate system.
910 * \param theR Sphere radius.
911 * \return New GEOM_Object, containing the created sphere.
913 GEOM_Object MakeSphereR (in double theR);
916 * Create a sphere with given center and radius.
917 * \param thePnt Sphere center.
918 * \param theR Sphere radius.
919 * \return New GEOM_Object, containing the created .
921 GEOM_Object MakeSpherePntR (in GEOM_Object thePnt, in double theR);
924 * Create a shape by extrusion of the base shape along the vector,
925 * i.e. all the space, transfixed by the base shape during its translation
926 * along the vector on the given distance.
927 * \param theBase Base shape to be extruded.
928 * \param theVec Direction of extrusion.
929 * \param theH Prism dimension along theVec.
930 * \return New GEOM_Object, containing the created prism.
932 GEOM_Object MakePrismVecH (in GEOM_Object theBase,
933 in GEOM_Object theVec,
935 /* The Same Prism but in 2 directions (forward&backward) */
936 GEOM_Object MakePrismVecH2Ways (in GEOM_Object theBase,
937 in GEOM_Object theVec,
941 * Create a shape by extrusion of the base shape along a vector, defined by two points.
942 * \param theBase Base shape to be extruded.
943 * \param thePoint1 First end of extrusion vector.
944 * \param thePoint2 Second end of extrusion vector.
945 * \return New GEOM_Object, containing the created prism.
947 GEOM_Object MakePrismTwoPnt (in GEOM_Object theBase,
948 in GEOM_Object thePoint1,
949 in GEOM_Object thePoint2);
950 /* The same prism but in two directions forward&backward */
951 GEOM_Object MakePrismTwoPnt2Ways (in GEOM_Object theBase,
952 in GEOM_Object thePoint1,
953 in GEOM_Object thePoint2);
956 * Create a shape by extrusion of the base shape along
957 * the path shape. The path shape can be a wire or an edge.
958 * \param theBase Base shape to be extruded.
959 * \param thePath Path shape to extrude the base shape along it.
960 * \return New GEOM_Object, containing the created pipe.
962 GEOM_Object MakePipe (in GEOM_Object theBase, in GEOM_Object thePath);
965 * Create a shape by revolution of the base shape around the axis
966 * on the given angle, i.e. all the space, transfixed by the base
967 * shape during its rotation around the axis on the given angle.
968 * \param theBase Base shape to be rotated.
969 * \param theAxis Rotation axis.
970 * \param theAngle Rotation angle in radians.
971 * \return New GEOM_Object, containing the created revolution.
973 GEOM_Object MakeRevolutionAxisAngle (in GEOM_Object theBase,
974 in GEOM_Object theAxis,
976 /* The Same Revolution but in both ways forward&backward */
977 GEOM_Object MakeRevolutionAxisAngle2Ways (in GEOM_Object theBase,
978 in GEOM_Object theAxis,
982 * Create a filling from the given compound of contours.
983 * \param theMinDeg a minimal degree of BSpline surface to create
984 * \param theMaxDeg a maximal degree of BSpline surface to create
985 * \param theTol2D a 2d tolerance to be reached
986 * \param theTol3D a 3d tolerance to be reached
987 * \param theNbIter a number of iteration of approximation algorithm
988 * \return New GEOM_Object, containing the created filling surface.
990 GEOM_Object MakeFilling (in GEOM_Object theShape,
991 in long theMinDeg, in long theMaxDeg,
992 in double theTol2D, in double theTol3D,
993 in long theNbIter, in boolean theApprox);
996 * Create a shell or solid passing through set of sections.Sections should be wires,edges or vertices.
997 * \param theSeqSections - set of specified sections.
998 * \param theModeSolid - mode defining building solid or shell
999 * \param thePreci - precision 3D used for smoothing by default 1.e-6
1000 * \param theRuled - mode defining type of the result surfaces (ruled or smoothed).
1001 * \return New GEOM_Object, containing the created shell or solid.
1003 GEOM_Object MakeThruSections(in ListOfGO theSeqSections,
1004 in boolean theModeSolid,
1006 in boolean theRuled);
1009 * Create a shape by extrusion of the profile shape along
1010 * the path shape. The path shape can be a wire or an edge.
1011 * the several profiles can be specified in the several locations of path.
1012 * \param theSeqBases - list of Bases shape to be extruded.
1013 * \param theLocations - list of locations on the path corresponding
1014 * specified list of the Bases shapes. Number of locations
1015 * should be equal to number of bases or list of locations can be empty.
1016 * \param thePath - Path shape to extrude the base shape along it.
1017 * \param theWithContact - the mode defining that the section is translated to be in
1018 * contact with the spine.
1019 * \param - WithCorrection - defining that the section is rotated to be
1020 * orthogonal to the spine tangent in the correspondent point
1021 * \return New GEOM_Object, containing the created pipe.
1023 GEOM_Object MakePipeWithDifferentSections (in ListOfGO theSeqBases,
1024 in ListOfGO theLocations,
1025 in GEOM_Object thePath,
1026 in boolean theWithContact ,
1027 in boolean theWithCorrection );
1030 * Create a shape by extrusion of the profile shape along
1031 * the path shape. The path shape can be a shell or a face.
1032 * the several profiles can be specified in the several locations of path.
1033 * \param theSeqBases - list of Bases shape to be extruded.
1034 * \param theSeqSubBases - list of corresponding subshapes of section shapes.
1035 * \param theLocations - list of locations on the path corresponding
1036 * specified list of the Bases shapes. Number of locations
1037 * should be equal to number of bases.
1038 * \param thePath - Path shape to extrude the base shape along it.
1039 * \param theWithContact - the mode defining that the section is translated to be in
1040 * contact with the spine.
1041 * \param - WithCorrection - defining that the section is rotated to be
1042 * orthogonal to the spine tangent in the correspondent point
1043 * \return New GEOM_Object, containing the created pipe.
1045 GEOM_Object MakePipeWithShellSections (in ListOfGO theSeqBases,
1046 in ListOfGO theSeqSubBases,
1047 in ListOfGO theLocations,
1048 in GEOM_Object thePath,
1049 in boolean theWithContact ,
1050 in boolean theWithCorrection );
1053 * Create solids between given sections
1054 * \param theSeqBases - list of sections (shell or face).
1055 * \param theLocations - list of corresponding vertexes
1056 * \return New GEOM_Object, containing the created solids.
1058 GEOM_Object MakePipeShellsWithoutPath (in ListOfGO theSeqBases,
1059 in ListOfGO theLocations);
1062 * Create a shape by extrusion of the base shape along
1063 * the path shape with constant bi-normal direction along the given vector.
1064 * The path shape can be a wire or an edge.
1065 * \param theBase Base shape to be extruded.
1066 * \param thePath Path shape to extrude the base shape along it.
1067 * \param theVec Vector defines a constant binormal direction to keep the
1068 * same angle beetween the Direction and the sections
1069 * along the sweep surface.
1070 * \return New GEOM_Object, containing the created pipe.
1072 GEOM_Object MakePipeBiNormalAlongVector (in GEOM_Object theBase,
1073 in GEOM_Object thePath,
1074 in GEOM_Object theVec);
1078 * GEOM_IShapesOperations: Interface for Shapes creation:
1079 * Edge from two points, Wire from edges, Face from wire,
1080 * Shell from faces, Solid from shells, Compound from shapes
1082 interface GEOM_IShapesOperations : GEOM_IOperations
1085 * Create a linear edge with specified ends.
1086 * \param thePnt1 Point for the first end of edge.
1087 * \param thePnt2 Point for the second end of edge.
1088 * \return New GEOM_Object, containing the created edge.
1090 GEOM_Object MakeEdge (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
1093 * Create a wire from the set of edges and wires.
1094 * \param theEdgesAndWires List of edge and/or wires.
1095 * \return New GEOM_Object, containing the created wire.
1097 GEOM_Object MakeWire (in ListOfGO theEdgesAndWires);
1100 * Create a face on the given wire.
1101 * \param theWire closed Wire or Edge to build the face on.
1102 * \param isPlanarWanted If TRUE, only planar face will be built.
1103 * If impossible, NULL object will be returned.
1104 * \return New GEOM_Object, containing the created face.
1106 GEOM_Object MakeFace (in GEOM_Object theWire, in boolean isPlanarWanted);
1109 * Create a face on the given wires set.
1110 * \param theWires List of closed wires or edges to build the face on.
1111 * \param isPlanarWanted If TRUE, only planar face will be built.
1112 * If impossible, NULL object will be returned.
1113 * \return New GEOM_Object, containing the created face.
1115 GEOM_Object MakeFaceWires (in ListOfGO theWires, in boolean isPlanarWanted);
1118 * Create a shell from the set of faces and shells.
1119 * \param theFacesAndShells List of faces and/or shells.
1120 * \return New GEOM_Object, containing the created shell.
1122 GEOM_Object MakeShell (in ListOfGO theFacesAndShells);
1125 * Create a solid, bounded by the given shell.
1126 * \param theShell Bounding shell.
1127 * \return New GEOM_Object, containing the created solid.
1129 GEOM_Object MakeSolidShell (in GEOM_Object theShell);
1132 * Create a solid, bounded by the given shells.
1133 * \param theShells Bounding shells.
1134 * \return New GEOM_Object, containing the created solid.
1136 GEOM_Object MakeSolidShells (in ListOfGO theShells);
1139 * Create a compound of the given shapes.
1140 * \param theShapes List of shapes to put in compound.
1141 * \return New GEOM_Object, containing the created compound.
1143 GEOM_Object MakeCompound (in ListOfGO theShapes);
1146 * Replace coincident faces in theShape by one face.
1147 * \param theShape Initial shape.
1148 * \param theTolerance Maximum distance between faces, which can be considered as coincident.
1149 * \param doKeepNonSolids If FALSE, only solids will present in the result, otherwise all initial shapes.
1150 * \return New GEOM_Object, containing a copy of theShape without coincident faces.
1152 GEOM_Object MakeGlueFaces (in GEOM_Object theShape, in double theTolerance, in boolean doKeepNonSolids);
1155 * Find coincident faces in theShape for possible gluing.
1156 * \param theShape Initial shape.
1157 * \param theTolerance Maximum distance between faces, which can be considered as coincident.
1160 ListOfGO GetGlueFaces (in GEOM_Object theShape, in double theTolerance);
1163 * Replace coincident faces in theShape by one face
1164 * in compliance with given list of faces
1165 * \param theShape Initial shape.
1166 * \param theTolerance Maximum distance between faces, which can be considered as coincident.
1167 * \param theFaces List of faces for gluing.
1168 * \param doKeepNonSolids If FALSE, only solids will present in the result, otherwise all initial shapes.
1169 * \return New GEOM_Object, containing a copy of theShape without some faces.
1171 GEOM_Object MakeGlueFacesByList (in GEOM_Object theShape, in double theTolerance,
1172 in ListOfGO theFaces, in boolean doKeepNonSolids);
1175 * Explode a shape on subshapes of a given type.
1176 * \param theShape Shape to be exploded.
1177 * \param theShapeType Type of sub-shapes to be retrieved.
1178 * \param isSorted If this parameter is TRUE, sub-shapes will be
1179 * sorted by coordinates of their gravity centers.
1180 * \return List of sub-shapes of type theShapeType, contained in theShape.
1182 ListOfGO MakeExplode (in GEOM_Object theShape,
1183 in long theShapeType,
1184 in boolean isSorted);
1187 * Explode a shape on subshapes of a given type.
1188 * Does the same, as the above method, but returns IDs of sub-shapes,
1189 * not GEOM_Objects. It works faster.
1190 * \param theShape Shape to be exploded.
1191 * \param theShapeType Type of sub-shapes to be retrieved.
1192 * \param isSorted If this parameter is TRUE, sub-shapes will be
1193 * sorted by coordinates of their gravity centers.
1194 * \return List of IDs of sub-shapes of type theShapeType, contained in theShape.
1196 ListOfLong SubShapeAllIDs (in GEOM_Object theShape,
1197 in long theShapeType,
1198 in boolean isSorted);
1201 * Get a sub shape defined by its unique ID inside \a theMainShape
1202 * \note The sub shape GEOM_Objects can has ONLY ONE function.
1203 * Don't try to apply modification operations on them.
1205 GEOM_Object GetSubShape (in GEOM_Object theMainShape,
1209 * Get global index of \a theSubShape in \a theMainShape.
1210 * \param theMainShape Main shape.
1211 * \param theSubShape Sub-shape of the main shape.
1212 * \return global index of \a theSubShape in \a theMainShape.
1214 long GetSubShapeIndex (in GEOM_Object theMainShape, in GEOM_Object theSubShape);
1217 * Get index of \a theSubShape in \a theMainShape, unique among sub-shapes of the same type.
1218 * Together with method <VAR>GetShapeTypeString()</VAR> it can be used
1219 * to generate automatic names for sub-shapes, when publishing them in a study.
1220 * \param theMainShape Main shape.
1221 * \param theSubShape Sub-shape of the main shape.
1222 * \return index of \a theSubShape in a list of all sub-shapes of \a theMainShape of the same type.
1224 long GetTopologyIndex (in GEOM_Object theMainShape, in GEOM_Object theSubShape);
1227 * \brief Get name of type of \a theShape.
1229 * Use wide type notation, taking into consideration both topology and geometry of the shape.
1230 * Together with method <VAR>GetTopologyIndex()</VAR> it can be used
1231 * to generate automatic names for sub-shapes, when publishing them in a study.
1232 * \param theShape The shape to get a type of.
1233 * \return String, containing a type name of \a theShape.
1235 string GetShapeTypeString (in GEOM_Object theShape);
1238 * Count number of faces in the given shape.
1239 * \param theShape Shape to count faces in.
1240 * \return Number of faces in the given shape.
1242 long NumberOfFaces (in GEOM_Object theShape);
1245 * Count number of edges in the given shape.
1246 * \param theShape Shape to count edges in.
1247 * \return Number of edges in theShape.
1249 long NumberOfEdges (in GEOM_Object theShape);
1252 * Reverses an orientation the given shape.
1253 * \param theShape Shape to be reversed.
1254 * \return The reversed copy of theShape.
1256 GEOM_Object ChangeOrientation (in GEOM_Object theShape);
1259 * Retrieve all free faces from the given shape.
1260 * Free face is a face, which is not shared between two shells of the shape.
1261 * \param theShape Shape to find free faces in.
1262 * \return List of IDs of all free faces, contained in theShape.
1264 ListOfLong GetFreeFacesIDs (in GEOM_Object theShape);
1267 * Get all sub-shapes of theShape1 of the given type, shared with theShape2.
1268 * \param theShape1 Shape to find sub-shapes in.
1269 * \param theShape2 Shape to find shared sub-shapes with.
1270 * \param theShapeType Type of sub-shapes to be retrieved.
1271 * \return List of sub-shapes of theShape1, shared with theShape2.
1273 ListOfGO GetSharedShapes (in GEOM_Object theShape1,
1274 in GEOM_Object theShape2,
1275 in long theShapeType);
1278 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1279 * the specified plane by the certain way, defined through \a theState parameter.
1280 * \param theShape Shape to find sub-shapes of.
1281 * \param theShapeType Type of sub-shapes to be retrieved.
1282 * \param theAx1 Vector (or line, or linear edge), specifying normal
1283 * direction and location of the plane to find shapes on.
1284 * \param theState The state of the subshapes to find.
1285 * \return List of all found sub-shapes.
1287 ListOfGO GetShapesOnPlane (in GEOM_Object theShape,
1288 in long theShapeType,
1289 in GEOM_Object theAx1,
1290 in shape_state theState);
1292 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1293 * the specified plane by the certain way, defined through \a theState parameter.
1294 * \param theShape Shape to find sub-shapes of.
1295 * \param theShapeType Type of sub-shapes to be retrieved.
1296 * \param theAx1 Vector (or line, or linear edge), specifying normal
1297 * direction of the plane to find shapes on.
1298 * \param thePnt Point specifying location of the plane to find shapes on.
1299 * \param theState The state of the subshapes to find.
1300 * \return List of all found sub-shapes.
1302 ListOfGO GetShapesOnPlaneWithLocation (in GEOM_Object theShape,
1303 in long theShapeType,
1304 in GEOM_Object theAx1,
1305 in GEOM_Object thePnt,
1306 in shape_state theState);
1311 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1312 * the specified cylinder by the certain way, defined through \a theState parameter.
1313 * \param theShape Shape to find sub-shapes of.
1314 * \param theShapeType Type of sub-shapes to be retrieved.
1315 * \param theAxis Vector (or line, or linear edge), specifying
1316 * axis of the cylinder to find shapes on.
1317 * \param theRadius Radius of the cylinder to find shapes on.
1318 * \param theState The state of the subshapes to find.
1319 * \return List of all found sub-shapes.
1321 ListOfGO GetShapesOnCylinder (in GEOM_Object theShape,
1322 in long theShapeType,
1323 in GEOM_Object theAxis,
1324 in double theRadius,
1325 in shape_state theState);
1328 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1329 * the specified sphere by the certain way, defined through \a theState parameter.
1330 * \param theShape Shape to find sub-shapes of.
1331 * \param theShapeType Type of sub-shapes to be retrieved.
1332 * \param theCenter Point, specifying center of the sphere to find shapes on.
1333 * \param theRadius Radius of the sphere to find shapes on.
1334 * \param theState The state of the subshapes to find.
1335 * \return List of all found sub-shapes.
1337 ListOfGO GetShapesOnSphere (in GEOM_Object theShape,
1338 in long theShapeType,
1339 in GEOM_Object theCenter,
1340 in double theRadius,
1341 in shape_state theState);
1344 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1345 * the specified quadrangle by the certain way, defined through \a theState parameter.
1346 * \param theShape Shape to find sub-shapes of.
1347 * \param theShapeType Type of sub-shapes to be retrieved.
1348 * \param theTopLeftPoint Top left quadrangle corner
1349 * \param theTopRigthPoint Top right quadrangle corner
1350 * \param theBottomLeftPoint Bottom left quadrangle corner
1351 * \param theBottomRigthPoint Bottom right quadrangle corner
1352 * \param theState The state of the subshapes to find.
1353 * \return List of all found sub-shapes.
1355 ListOfGO GetShapesOnQuadrangle (in GEOM_Object theShape,
1356 in long theShapeType,
1357 in GEOM_Object theTopLeftPoint,
1358 in GEOM_Object theTopRigthPoint,
1359 in GEOM_Object theBottomLeftPoint,
1360 in GEOM_Object theBottomRigthPoint,
1361 in shape_state theState);
1364 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1365 * the specified plane by the certain way, defined through \a theState parameter.
1366 * \param theShape Shape to find sub-shapes of.
1367 * \param theShapeType Type of sub-shapes to be retrieved.
1368 * \param theAx1 Vector (or line, or linear edge), specifying normal
1369 * direction and location of the plane to find shapes on.
1370 * \param theState The state of the subshapes to find.
1371 * \return List of IDs of all found sub-shapes.
1373 ListOfLong GetShapesOnPlaneIDs (in GEOM_Object theShape,
1374 in long theShapeType,
1375 in GEOM_Object theAx1,
1376 in shape_state theState);
1379 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1380 * the specified plane by the certain way, defined through \a theState parameter.
1381 * \param theShape Shape to find sub-shapes of.
1382 * \param theShapeType Type of sub-shapes to be retrieved.
1383 * \param theAx1 Vector (or line, or linear edge), specifying normal
1384 * direction of the plane to find shapes on.
1385 * \param thePnt Point specifying location of the plane to find shapes on.
1386 * \param theState The state of the subshapes to find.
1387 * \return List of IDs of all found sub-shapes.
1389 ListOfLong GetShapesOnPlaneWithLocationIDs (in GEOM_Object theShape,
1390 in long theShapeType,
1391 in GEOM_Object theAx1,
1392 in GEOM_Object thePnt,
1393 in shape_state theState);
1396 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1397 * the specified cylinder by the certain way, defined through \a theState parameter.
1398 * \param theShape Shape to find sub-shapes of.
1399 * \param theShapeType Type of sub-shapes to be retrieved.
1400 * \param theAxis Vector (or line, or linear edge), specifying
1401 * axis of the cylinder to find shapes on.
1402 * \param theRadius Radius of the cylinder to find shapes on.
1403 * \param theState The state of the subshapes to find.
1404 * \return List of IDs of all found sub-shapes.
1406 ListOfLong GetShapesOnCylinderIDs (in GEOM_Object theShape,
1407 in long theShapeType,
1408 in GEOM_Object theAxis,
1409 in double theRadius,
1410 in shape_state theState);
1413 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1414 * the specified sphere by the certain way, defined through \a theState parameter.
1415 * \param theShape Shape to find sub-shapes of.
1416 * \param theShapeType Type of sub-shapes to be retrieved.
1417 * \param theCenter Point, specifying center of the sphere to find shapes on.
1418 * \param theRadius Radius of the sphere to find shapes on.
1419 * \param theState The state of the subshapes to find.
1420 * \return List of IDs of all found sub-shapes.
1422 ListOfLong GetShapesOnSphereIDs (in GEOM_Object theShape,
1423 in long theShapeType,
1424 in GEOM_Object theCenter,
1425 in double theRadius,
1426 in shape_state theState);
1429 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1430 * the specified quadrangle by the certain way, defined through \a theState parameter.
1431 * \param theShape Shape to find sub-shapes of.
1432 * \param theShapeType Type of sub-shapes to be retrieved.
1433 * \param theTopLeftPoint Top left quadrangle corner
1434 * \param theTopRigthPoint Top right quadrangle corner
1435 * \param theBottomLeftPoint Bottom left quadrangle corner
1436 * \param theBottomRigthPoint Bottom right quadrangle corner
1437 * \param theState The state of the subshapes to find.
1438 * \return List of IDs of all found sub-shapes.
1440 ListOfLong GetShapesOnQuadrangleIDs (in GEOM_Object theShape,
1441 in long theShapeType,
1442 in GEOM_Object theTopLeftPoint,
1443 in GEOM_Object theTopRigthPoint,
1444 in GEOM_Object theBottomLeftPoint,
1445 in GEOM_Object theBottomRigthPoint,
1446 in shape_state theState);
1449 * \brief Find subshapes complying with given status
1450 * \param theBox - the box to check state of subshapes against
1451 * \param theShape - the shape to explore
1452 * \param theShapeType - type of subshape of theShape
1453 * \param theState - required state
1454 * \return List of IDs of all found sub-shapes.
1456 ListOfLong GetShapesOnBoxIDs (in GEOM_Object theBox,
1457 in GEOM_Object theShape,
1458 in long theShapeType,
1459 in shape_state theState);
1462 * \brief Find subshapes complying with given status
1463 * \param theBox - the box to check state of subshapes against
1464 * \param theShape - the shape to explore
1465 * \param theShapeType - type of subshape of theShape
1466 * \param theState - required state
1467 * \return List of all found sub-shapes.
1469 ListOfGO GetShapesOnBox (in GEOM_Object theBox,
1470 in GEOM_Object theShape,
1471 in long theShapeType,
1472 in shape_state theState);
1475 * \brief Find subshapes complying with given status
1476 * \param theCheckShape - the shape to check state of subshapes against
1477 * \param theShape - the shape to explore
1478 * \param theShapeType - type of subshape of theShape
1479 * \param theState - required state
1480 * \return List of IDs of all found sub-shapes.
1482 ListOfLong GetShapesOnShapeIDs (in GEOM_Object theCheckShape,
1483 in GEOM_Object theShape,
1484 in short theShapeType,
1485 in shape_state theState);
1488 * \brief Find subshapes complying with given status
1489 * \param theCheckShape - the shape to check state of subshapes against
1490 * \param theShape - the shape to explore
1491 * \param theShapeType - type of subshape of theShape
1492 * \param theState - required state
1493 * \return List of all found sub-shapes.
1495 ListOfGO GetShapesOnShape (in GEOM_Object theCheckShape,
1496 in GEOM_Object theShape,
1497 in short theShapeType,
1498 in shape_state theState);
1501 * \brief Find subshapes complying with given status
1502 * \param theCheckShape - the shape to check state of subshapes against
1503 * \param theShape - the shape to explore
1504 * \param theShapeType - type of subshape of theShape
1505 * \param theState - required state
1506 * \return compound includes all found sub-shapes.
1508 GEOM_Object GetShapesOnShapeAsCompound (in GEOM_Object theCheckShape,
1509 in GEOM_Object theShape,
1510 in short theShapeType,
1511 in shape_state theState);
1514 * Get sub-shape(s) of \a theShapeWhere, which are
1515 * coincident with \a theShapeWhat or could be a part of it.
1516 * \param theShapeWhere Shape to find sub-shapes of.
1517 * \param theShapeWhat Shape, specifying what to find.
1518 * \return Group of all found sub-shapes or a single found sub-shape.
1520 GEOM_Object GetInPlace (in GEOM_Object theShapeWhere,
1521 in GEOM_Object theShapeWhat);
1524 * Get sub-shape(s) of \a theShapeWhere, which are
1525 * coincident with \a theShapeWhat or could be a part of it.
1527 * Implementation of this method is based on a saved history of an operation,
1528 * produced \a theShapeWhere. The \a theShapeWhat must be among this operation's
1529 * arguments (an argument shape or a sub-shape of an argument shape).
1530 * The operation could be the Partition or one of boolean operations,
1531 * performed on simple shapes (not on compounds).
1533 * \param theShapeWhere Shape to find sub-shapes of.
1534 * \param theShapeWhat Shape, specifying what to find.
1535 * \return Group of all found sub-shapes or a single found sub-shape.
1537 GEOM_Object GetInPlaceByHistory (in GEOM_Object theShapeWhere,
1538 in GEOM_Object theShapeWhat);
1541 * Get sub-shape of theShapeWhere, which are
1542 * coincident with \a theShapeWhat that can either SOLID, FACE, EDGE or VERTEX.
1543 * \param theShapeWhere Shape to find sub-shapes of.
1544 * \param theShapeWhat Shape, specifying what to find.
1545 * \return found sub-shape.
1547 GEOM_Object GetSame (in GEOM_Object theShapeWhere,
1548 in GEOM_Object theShapeWhat);
1552 * GEOM_IBlocksOperations: Interface for Blocks construction
1553 * Face from points or edges, Block from faces,
1554 * Blocks multi-translation and multi-rotation
1556 interface GEOM_IBlocksOperations : GEOM_IOperations
1559 * Creation of blocks
1563 * Create a quadrangle face from four edges. Order of Edges is not
1564 * important. It is not necessary that edges share the same vertex.
1565 * \param theEdge1,theEdge2,theEdge3,theEdge4 Edges for the face bound.
1566 * \return New GEOM_Object, containing the created face.
1568 GEOM_Object MakeQuad (in GEOM_Object theEdge1,
1569 in GEOM_Object theEdge2,
1570 in GEOM_Object theEdge3,
1571 in GEOM_Object theEdge4);
1574 * Create a quadrangle face on two edges.
1575 * The missing edges will be built by creating the shortest ones.
1576 * \param theEdge1,theEdge2 Two opposite edges for the face.
1577 * \return New GEOM_Object, containing the created face.
1579 GEOM_Object MakeQuad2Edges (in GEOM_Object theEdge1,
1580 in GEOM_Object theEdge2);
1583 * Create a quadrangle face with specified corners.
1584 * The missing edges will be built by creating the shortest ones.
1585 * \param thePnt1,thePnt2,thePnt3,thePnt4 Corner vertices for the face.
1586 * \return New GEOM_Object, containing the created face.
1588 GEOM_Object MakeQuad4Vertices (in GEOM_Object thePnt1,
1589 in GEOM_Object thePnt2,
1590 in GEOM_Object thePnt3,
1591 in GEOM_Object thePnt4);
1594 * Create a hexahedral solid, bounded by the six given faces. Order of
1595 * faces is not important. It is not necessary that Faces share the same edge.
1596 * \param theFace1-theFace6 Faces for the hexahedral solid.
1597 * \return New GEOM_Object, containing the created solid.
1599 GEOM_Object MakeHexa (in GEOM_Object theFace1,
1600 in GEOM_Object theFace2,
1601 in GEOM_Object theFace3,
1602 in GEOM_Object theFace4,
1603 in GEOM_Object theFace5,
1604 in GEOM_Object theFace6);
1607 * Create a hexahedral solid between two given faces.
1608 * The missing faces will be built by creating the smallest ones.
1609 * \param theFace1,theFace2 Two opposite faces for the hexahedral solid.
1610 * \return New GEOM_Object, containing the created solid.
1612 GEOM_Object MakeHexa2Faces (in GEOM_Object theFace1,
1613 in GEOM_Object theFace2);
1616 * Extract elements of blocks and blocks compounds
1620 * Get a vertex, found in the given shape by its coordinates.
1621 * \param theShape Block or a compound of blocks.
1622 * \param theX,theY,theZ Coordinates of the sought vertex.
1623 * \param theEpsilon Maximum allowed distance between the resulting
1624 * vertex and point with the given coordinates.
1625 * \return New GEOM_Object, containing the found vertex.
1627 GEOM_Object GetPoint (in GEOM_Object theShape,
1631 in double theEpsilon);
1634 * Get an edge, found in the given shape by two given vertices.
1635 * \param theShape Block or a compound of blocks.
1636 * \param thePoint1,thePoint2 Points, close to the ends of the desired edge.
1637 * \return New GEOM_Object, containing the found edge.
1639 GEOM_Object GetEdge (in GEOM_Object theShape,
1640 in GEOM_Object thePoint1,
1641 in GEOM_Object thePoint2);
1644 * Find an edge of the given shape, which has minimal distance to the given point.
1645 * \param theShape Block or a compound of blocks.
1646 * \param thePoint Point, close to the desired edge.
1647 * \return New GEOM_Object, containing the found edge.
1649 GEOM_Object GetEdgeNearPoint (in GEOM_Object theShape,
1650 in GEOM_Object thePoint);
1653 * Returns a face, found in the given shape by four given corner vertices.
1654 * \param theShape Block or a compound of blocks.
1655 * \param thePoint1-thePoint4 Points, close to the corners of the desired face.
1656 * \return New GEOM_Object, containing the found face.
1658 GEOM_Object GetFaceByPoints (in GEOM_Object theShape,
1659 in GEOM_Object thePoint1,
1660 in GEOM_Object thePoint2,
1661 in GEOM_Object thePoint3,
1662 in GEOM_Object thePoint4);
1665 * Get a face of block, found in the given shape by two given edges.
1666 * \param theShape Block or a compound of blocks.
1667 * \param theEdge1,theEdge2 Edges, close to the edges of the desired face.
1668 * \return New GEOM_Object, containing the found face.
1670 GEOM_Object GetFaceByEdges (in GEOM_Object theShape,
1671 in GEOM_Object theEdge1,
1672 in GEOM_Object theEdge2);
1675 * Find a face, opposite to the given one in the given block.
1676 * \param theBlock Must be a hexahedral solid.
1677 * \param theFace Face of \a theBlock, opposite to the desired face.
1678 * \return New GEOM_Object, containing the found face.
1680 GEOM_Object GetOppositeFace (in GEOM_Object theBlock,
1681 in GEOM_Object theFace);
1684 * Find a face of the given shape, which has minimal distance to the given point.
1685 * \param theShape Block or a compound of blocks.
1686 * \param thePoint Point, close to the desired face.
1687 * \return New GEOM_Object, containing the found face.
1689 GEOM_Object GetFaceNearPoint (in GEOM_Object theShape,
1690 in GEOM_Object thePoint);
1693 * Find a face of block, whose outside normale has minimal angle with the given vector.
1694 * \param theShape Block or a compound of blocks.
1695 * \param theVector Vector, close to the normale of the desired face.
1696 * \return New GEOM_Object, containing the found face.
1698 GEOM_Object GetFaceByNormale (in GEOM_Object theBlock,
1699 in GEOM_Object theVector);
1702 * Extract blocks from blocks compounds
1706 * Check, if the compound contains only specified blocks.
1707 * \param theCompound The compound to check.
1708 * \param theMinNbFaces If solid has lower number of faces, it is not a block.
1709 * \param theMaxNbFaces If solid has higher number of faces, it is not a block.
1710 * \note If theMaxNbFaces = 0, the maximum number of faces is not restricted.
1711 * \return TRUE, if the given compound contains only blocks.
1712 * \return theNbBlocks Number of specified blocks in theCompound.
1714 boolean IsCompoundOfBlocks (in GEOM_Object theCompound,
1715 in long theMinNbFaces,
1716 in long theMaxNbFaces,
1717 out long theNbBlocks);
1720 * Enumeration of Blocks Compound defects.
1724 /* Each element of the compound should be a Block */
1727 /* An element is a potential block, but has degenerated and/or seam edge(s). */
1730 /* A connection between two Blocks should be an entire face or an entire edge */
1733 /* The compound should be connexe */
1736 /* The glue between two quadrangle faces should be applied */
1741 * Description of Blocks Compound defect: type and incriminated sub-shapes.
1746 ListOfLong incriminated;
1750 * Sequence of all Blocks Compound defects.
1752 typedef sequence<BCError> BCErrors;
1755 * Check, if the compound of blocks is given.
1756 * To be considered as a compound of blocks, the
1757 * given shape must satisfy the following conditions:
1758 * - Each element of the compound should be a Block (6 faces and 12 edges).
1759 * - A connection between two Blocks should be an entire quadrangle face or an entire edge.
1760 * - The compound should be connexe.
1761 * - The glue between two quadrangle faces should be applied.
1762 * \note Single block is also accepted as a valid compound of blocks.
1763 * \param theCompound The compound to check.
1764 * \return TRUE, if the given shape is a compound of blocks.
1765 * \return theErrors Structure, containing discovered errors and incriminated sub-shapes.
1767 boolean CheckCompoundOfBlocks (in GEOM_Object theCompound,
1768 out BCErrors theErrors);
1771 * Convert sequence of Blocks Compound errors, returned by
1772 * <VAR>CheckCompoundOfBlocks()</VAR>, into string.
1773 * \param theCompound The bad compound.
1774 * \param theErrors The sequence of \a theCompound errors.
1775 * \return String, describing all the errors in form, suitable for printing.
1777 string PrintBCErrors (in GEOM_Object theCompound,
1778 in BCErrors theErrors);
1781 * Remove all seam and degenerated edges from \a theShape.
1782 * Unite faces and edges, sharing one surface.
1783 * \param theShape The compound or single solid to remove irregular edges from.
1784 * \param theOptimumNbFaces If more than zero, unite faces only for those solids,
1785 * that have more than theOptimumNbFaces faces. If zero, unite faces always,
1786 * regardsless their quantity in the solid. If negative, do not unite faces at all.
1787 * For blocks repairing recommended value is 6.
1788 * \return Improved shape.
1790 GEOM_Object RemoveExtraEdges (in GEOM_Object theShape,
1791 in long theOptimumNbFaces);
1794 * Check, if the given shape is a blocks compound.
1795 * Fix all detected errors.
1796 * \note Single block can be also fixed by this method.
1797 * \param theCompound The compound to check and improve.
1798 * \return Improved compound.
1800 GEOM_Object CheckAndImprove (in GEOM_Object theCompound);
1803 * Get all the blocks, contained in the given compound.
1804 * \param theCompound The compound to explode.
1805 * \param theMinNbFaces If solid has lower number of faces, it is not a block.
1806 * \param theMaxNbFaces If solid has higher number of faces, it is not a block.
1807 * \note If theMaxNbFaces = 0, the maximum number of faces is not restricted.
1808 * \return List of GEOM_Objects, containing the retrieved blocks.
1810 ListOfGO ExplodeCompoundOfBlocks (in GEOM_Object theCompound,
1811 in long theMinNbFaces,
1812 in long theMaxNbFaces);
1815 * Find block, containing the given point inside its volume or on boundary.
1816 * \param theCompound Compound, to find block in.
1817 * \param thePoint Point, close to the desired block. If the point lays on
1818 * boundary between some blocks, we return block with nearest center.
1819 * \return New GEOM_Object, containing the found block.
1821 GEOM_Object GetBlockNearPoint (in GEOM_Object theCompound,
1822 in GEOM_Object thePoint);
1825 * Find block, containing all the elements, passed as the parts, or maximum quantity of them.
1826 * \param theCompound Compound, to find block in.
1827 * \param theParts List of faces and/or edges and/or vertices to be parts of the found block.
1828 * \return New GEOM_Object, containing the found block.
1830 GEOM_Object GetBlockByParts (in GEOM_Object theCompound,
1831 in ListOfGO theParts);
1834 * Return all blocks, containing all the elements, passed as the parts.
1835 * \param theCompound Compound, to find blocks in.
1836 * \param theParts List of faces and/or edges and/or vertices to be parts of the found blocks.
1837 * \return List of GEOM_Objects, containing the found blocks.
1839 ListOfGO GetBlocksByParts (in GEOM_Object theCompound,
1840 in ListOfGO theParts);
1843 * Operations on blocks with gluing of result
1847 * Multi-transformate block and glue the result.
1848 * Transformation is defined so, as to superpose theDirFace1 with theDirFace2.
1849 * \param theBlock Hexahedral solid to be multi-transformed.
1850 * \param theDirFace1 First direction face global index.
1851 * \param theDirFace2 Second direction face global index.
1852 * \param theNbTimes Quantity of transformations to be done.
1853 * \note Global index of sub-shape can be obtained, using method
1854 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
1855 * \return New GEOM_Object, containing the result shape.
1857 GEOM_Object MakeMultiTransformation1D (in GEOM_Object theBlock,
1858 in long theDirFace1,
1859 in long theDirFace2,
1860 in long theNbTimes);
1863 * Multi-transformate block and glue the result.
1864 * \param theBlock Hexahedral solid to be multi-transformed.
1865 * \param theDirFace1U,theDirFace2U Direction faces for the first transformation.
1866 * \param theDirFace1V,theDirFace2V Direction faces for the second transformation.
1867 * \param theNbTimesU,theNbTimesV Quantity of transformations to be done.
1868 * \return New GEOM_Object, containing the result shape.
1870 GEOM_Object MakeMultiTransformation2D (in GEOM_Object theBlock,
1871 in long theDirFace1U,
1872 in long theDirFace2U,
1873 in long theNbTimesU,
1874 in long theDirFace1V,
1875 in long theDirFace2V,
1876 in long theNbTimesV);
1879 * Special operation - propagation
1883 * Build all possible propagation groups.
1884 * Propagation group is a set of all edges, opposite to one (main)
1885 * edge of this group directly or through other opposite edges.
1886 * Notion of Opposite Edge make sence only on quadrangle face.
1887 * \param theShape Shape to build propagation groups on.
1888 * \return List of GEOM_Objects, each of them is a propagation group.
1890 ListOfGO Propagate (in GEOM_Object theShape);
1894 * GEOM_IBooleanOperations: Interface for boolean operations (Cut, Fuse, Common)
1896 interface GEOM_IBooleanOperations : GEOM_IOperations
1899 * Perform one of boolean operations on two given shapes.
1900 * \param theShape1 First argument for boolean operation.
1901 * \param theShape2 Second argument for boolean operation.
1902 * \param theOperation Indicates the operation to be done:
1903 * 1 - Common, 2 - Cut, 3 - Fuse, 4 - Section.
1904 * \return New GEOM_Object, containing the result shape.
1906 GEOM_Object MakeBoolean (in GEOM_Object theShape1,
1907 in GEOM_Object theShape2,
1908 in long theOperation);
1911 * Perform partition operation.
1912 * \param theShapes Shapes to be intersected.
1913 * \param theTools Shapes to intersect theShapes.
1914 * \note Each compound from ListShapes and ListTools will be exploded in order
1915 * to avoid possible intersection between shapes from this compound.
1916 * \param theLimit Type of resulting shapes (corresponding to TopAbs_ShapeEnum).
1917 # \param KeepNonlimitShapes: if this parameter == 0 - only shapes with
1918 # type <= Limit are kept in the result,
1919 # else - shapes with type > Limit are kept
1920 # also (if they exist)
1922 * After implementation new version of PartitionAlgo (October 2006)
1923 * other parameters are ignored by current functionality. They are kept
1924 * in this function only for supporting old versions.
1925 * Ignored parameters:
1926 * \param theKeepInside Shapes, outside which the results will be deleted.
1927 * Each shape from theKeepInside must belong to theShapes also.
1928 * \param theRemoveInside Shapes, inside which the results will be deleted.
1929 * Each shape from theRemoveInside must belong to theShapes also.
1930 * \param theRemoveWebs If TRUE, perform Glue 3D algorithm.
1931 * \param theMaterials Material indices for each shape. Make sence, only if theRemoveWebs is TRUE.
1933 * \return New GEOM_Object, containing the result shapes.
1935 GEOM_Object MakePartition (in ListOfGO theShapes,
1936 in ListOfGO theTools,
1937 in ListOfGO theKeepInside,
1938 in ListOfGO theRemoveInside,
1940 in boolean theRemoveWebs,
1941 in ListOfLong theMaterials,
1942 in short theKeepNonlimitShapes);
1945 * Perform partition operation.
1946 * This method may be usefull if it is needed to make a partition for
1947 * a compound containing nonintersected shapes. Performance will be better
1948 * since intersection between shapes from compound is not performed.
1950 * Description of all parameters as in previous method MakePartition()
1952 * \note Passed compounds (via ListShapes or via ListTools)
1953 * have to consist of nonintersecting shapes.
1955 * \return New GEOM_Object, containing the result shapes.
1957 GEOM_Object MakePartitionNonSelfIntersectedShape (in ListOfGO theShapes,
1958 in ListOfGO theTools,
1959 in ListOfGO theKeepInside,
1960 in ListOfGO theRemoveInside,
1962 in boolean theRemoveWebs,
1963 in ListOfLong theMaterials,
1964 in short theKeepNonlimitShapes);
1967 * Perform partition of the Shape with the Plane
1968 * \param theShape Shape to be intersected.
1969 * \param thePlane Tool shape, to intersect theShape.
1970 * \return New GEOM_Object, containing the result shape.
1972 GEOM_Object MakeHalfPartition (in GEOM_Object theShape,
1973 in GEOM_Object thePlane);
1977 * GEOM_ICurvesOperations: Interface for curves creation.
1978 * Polyline, Circle, Spline (Bezier and Interpolation)
1980 interface GEOM_ICurvesOperations : GEOM_IOperations
1983 * Create a circle with given center, normal vector and radius.
1984 * \param thePnt Circle center.
1985 * \param theVec Vector, normal to the plane of the circle.
1986 * \param theR Circle radius.
1987 * \return New GEOM_Object, containing the created circle.
1989 GEOM_Object MakeCirclePntVecR (in GEOM_Object thePnt,
1990 in GEOM_Object theVec,
1993 * Create a circle, passing through three given points
1994 * \param thePnt1,thePnt2,thePnt3 Points, defining the circle.
1995 * \return New GEOM_Object, containing the created circle.
1997 GEOM_Object MakeCircleThreePnt (in GEOM_Object thePnt1,
1998 in GEOM_Object thePnt2,
1999 in GEOM_Object thePnt3);
2001 * Create a circle with given center, with a radius equals the distance from center to Point1
2002 * and on a plane defined by all of three points.
2003 * \param thePnt1,thePnt2,thePnt3 Points, defining the circle.
2004 * \return New GEOM_Object, containing the created circle.
2006 GEOM_Object MakeCircleCenter2Pnt (in GEOM_Object thePnt1,
2007 in GEOM_Object thePnt2,
2008 in GEOM_Object thePnt3);
2010 * Create an ellipse with given center, normal vector and radiuses.
2011 * \param thePnt Ellipse center.
2012 * \param theVec Vector, normal to the plane of the ellipse.
2013 * \param theRMajor Major ellipse radius.
2014 * \param theRMinor Minor ellipse radius.
2015 * \return New GEOM_Object, containing the created ellipse.
2017 GEOM_Object MakeEllipse (in GEOM_Object thePnt,
2018 in GEOM_Object theVec,
2019 in double theRMajor,
2020 in double theRMinor);
2023 * Create an ellipse with given center, normal vector, main axis vector and radiuses.
2024 * \param thePnt Ellipse center.
2025 * \param theVec Vector, normal to the plane of the ellipse.
2026 * \param theRMajor Major ellipse radius.
2027 * \param theRMinor Minor ellipse radius.
2028 * \param theVecMaj Vector, direction of the ellipse's main axis.
2029 * \return New GEOM_Object, containing the created ellipse.
2031 GEOM_Object MakeEllipseVec (in GEOM_Object thePnt,
2032 in GEOM_Object theVec,
2033 in double theRMajor,
2034 in double theRMinor,
2035 in GEOM_Object theVecMaj);
2038 * Create an arc of circle, passing through three given points.
2039 * \param thePnt1 Start point of the arc.
2040 * \param thePnt2 Middle point of the arc.
2041 * \param thePnt3 End point of the arc.
2042 * \return New GEOM_Object, containing the created arc.
2044 GEOM_Object MakeArc (in GEOM_Object thePnt1,
2045 in GEOM_Object thePnt2,
2046 in GEOM_Object thePnt3);
2049 * Create an arc of circle of center C from one point to another
2050 * \param theCenter Center point of the arc.
2051 * \param thePnt1 Start point of the arc.
2052 * \param thePnt2 End point of the arc.
2053 * \param theSense Orientation of the arc
2054 * \return New GEOM_Object, containing the created arc.
2056 GEOM_Object MakeArcCenter (in GEOM_Object theCenter,
2057 in GEOM_Object thePnt1,
2058 in GEOM_Object thePnt2,
2059 in boolean theSense);
2063 * Create a polyline on the set of points.
2064 * \param thePoints Sequence of points for the polyline.
2065 * \return New GEOM_Object, containing the created polyline.
2067 GEOM_Object MakePolyline (in ListOfGO thePoints);
2070 * Create bezier curve on the set of points.
2071 * \param thePoints Sequence of points for the bezier curve.
2072 * \return New GEOM_Object, containing the created bezier curve.
2074 GEOM_Object MakeSplineBezier (in ListOfGO thePoints);
2077 * Create B-Spline curve on the set of points.
2078 * \param thePoints Sequence of points for the B-Spline curve.
2079 * \return New GEOM_Object, containing the created B-Spline curve.
2081 GEOM_Object MakeSplineInterpolation (in ListOfGO thePoints);
2084 * Create a sketcher (wire or face), following the textual description,
2085 * passed through \a theCommand argument. \n
2086 * Edges of the resulting wire or face will be arcs of circles and/or linear segments. \n
2087 * Format of the description string have to be the following:
2089 * "Sketcher[:F x1 y1]:CMD[:CMD[:CMD...]]"
2092 * - x1, y1 are coordinates of the first sketcher point (zero by default),
2094 * - "R angle" : Set the direction by angle
2095 * - "D dx dy" : Set the direction by DX & DY
2098 * - "TT x y" : Create segment by point at X & Y
2099 * - "T dx dy" : Create segment by point with DX & DY
2100 * - "L length" : Create segment by direction & Length
2101 * - "IX x" : Create segment by direction & Intersect. X
2102 * - "IY y" : Create segment by direction & Intersect. Y
2105 * - "C radius length" : Create arc by direction, radius and length(in degree)
2108 * - "WW" : Close Wire (to finish)
2109 * - "WF" : Close Wire and build face (to finish)
2111 * \param theCommand String, defining the sketcher in local
2112 * coordinates of the working plane.
2113 * \param theWorkingPlane Nine double values, defining origin,
2114 * OZ and OX directions of the working plane.
2115 * \return New GEOM_Object, containing the created wire.
2117 GEOM_Object MakeSketcher (in string theCommand, in ListOfDouble theWorkingPlane);
2120 * Create a sketcher (wire or face), following the textual description,
2121 * passed through \a theCommand argument. \n
2122 * For format of the description string see the previous method.\n
2123 * \param theCommand String, defining the sketcher in local
2124 * coordinates of the working plane.
2125 * \param theWorkingPlane Planar Face or LCS(Marker) of the working plane.
2126 * \return New GEOM_Object, containing the created wire.
2128 GEOM_Object MakeSketcherOnPlane (in string theCommand, in GEOM_Object theWorkingPlane);
2132 * GEOM_ILocalOperations: Interface for fillet and chamfer creation.
2134 interface GEOM_ILocalOperations : GEOM_IOperations
2137 * Perform a fillet on all edges of the given shape.
2138 * \param theShape Shape, to perform fillet on.
2139 * \param theR Fillet radius.
2140 * \return New GEOM_Object, containing the result shape.
2142 GEOM_Object MakeFilletAll (in GEOM_Object theShape,
2146 * Perform a fillet on the specified edges of the given shape
2147 * \param theShape Shape, to perform fillet on.
2148 * \param theR Fillet radius.
2149 * \param theEdges Global indices of edges to perform fillet on.
2150 * \note Global index of sub-shape can be obtained, using method
2151 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2152 * \return New GEOM_Object, containing the result shape.
2154 GEOM_Object MakeFilletEdges (in GEOM_Object theShape,
2156 in ListOfLong theEdges);
2157 GEOM_Object MakeFilletEdgesR1R2 (in GEOM_Object theShape,
2160 in ListOfLong theEdges);
2163 * Perform a fillet on all edges of the specified faces of the given shape.
2164 * \param theShape Shape, to perform fillet on.
2165 * \param theR Fillet radius.
2166 * \param theFaces Global indices of faces to perform fillet on.
2167 * \note Global index of sub-shape can be obtained, using method
2168 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2169 * \return New GEOM_Object, containing the result shape.
2171 GEOM_Object MakeFilletFaces (in GEOM_Object theShape,
2173 in ListOfLong theFaces);
2174 GEOM_Object MakeFilletFacesR1R2 (in GEOM_Object theShape,
2177 in ListOfLong theFaces);
2180 * Perform a symmetric chamfer on all edges of the given shape.
2181 * \param theShape Shape, to perform chamfer on.
2182 * \param theD Chamfer size along each face.
2183 * \return New GEOM_Object, containing the result shape.
2185 GEOM_Object MakeChamferAll (in GEOM_Object theShape,
2189 * Perform a chamfer on edges, common to the specified faces.
2190 * with distance D1 on the Face1
2191 * \param theShape Shape, to perform chamfer on.
2192 * \param theD1 Chamfer size along \a theFace1.
2193 * \param theD2 Chamfer size along \a theFace2.
2194 * \param theFace1,theFace2 Global indices of two faces of \a theShape.
2195 * \note Global index of sub-shape can be obtained, using method
2196 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2197 * \return New GEOM_Object, containing the result shape.
2199 GEOM_Object MakeChamferEdge (in GEOM_Object theShape,
2200 in double theD1, in double theD2,
2201 in long theFace1, in long theFace2);
2203 * The Same but with params theD = Chamfer Lenght
2204 * and theAngle = Chamfer Angle (Angle in radians)
2206 GEOM_Object MakeChamferEdgeAD (in GEOM_Object theShape,
2207 in double theD, in double theAngle,
2208 in long theFace1, in long theFace2);
2211 * Perform a chamfer on all edges of the specified faces.
2212 * with distance D1 on the first specified face (if several for one edge)
2213 * \param theShape Shape, to perform chamfer on.
2214 * \param theD1 Chamfer size along face from \a theFaces. If both faces,
2215 * connected to the edge, are in \a theFaces, \a theD1
2216 * will be get along face, which is nearer to \a theFaces beginning.
2217 * \param theD2 Chamfer size along another of two faces, connected to the edge.
2218 * \param theFaces Sequence of global indices of faces of \a theShape.
2219 * \note Global index of sub-shape can be obtained, using method
2220 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2221 * \return New GEOM_Object, containing the result shape.
2223 GEOM_Object MakeChamferFaces (in GEOM_Object theShape,
2224 in double theD1, in double theD2,
2225 in ListOfLong theFaces);
2227 * The Same but with params theD = Chamfer Lenght
2228 * and theAngle = Chamfer Angle (Angle in radians)
2230 GEOM_Object MakeChamferFacesAD (in GEOM_Object theShape,
2231 in double theD, in double theAngle,
2232 in ListOfLong theFaces);
2235 * Perform a chamfer on edges,
2236 * with distance D1 on the first specified face (if several for one edge)
2237 * \param theShape Shape, to perform chamfer on.
2238 * \param theD1 theD2 Chamfer size
2239 * \param theEdges Sequence of edges of \a theShape.
2240 * \return New GEOM_Object, containing the result shape.
2242 GEOM_Object MakeChamferEdges (in GEOM_Object theShape,
2243 in double theD1, in double theD2,
2244 in ListOfLong theEdges);
2246 * The Same but with params theD = Chamfer Lenght
2247 * and theAngle = Chamfer Angle (Angle in radians)
2249 GEOM_Object MakeChamferEdgesAD (in GEOM_Object theShape,
2250 in double theD, in double theAngle,
2251 in ListOfLong theEdges);
2254 * Perform an Archimde operation on the given shape with given parameters.
2255 * The object presenting the resulting face is returned
2256 * \param theShape Shape to be put in water.
2257 * \param theWeight Weight og the shape.
2258 * \param theWaterDensity Density of the water.
2259 * \param theMeshDeflection Deflection od the mesh, using to compute the section.
2260 * \return New GEOM_Object, containing a section of \a theShape
2261 * by a plane, corresponding to water level.
2263 GEOM_Object MakeArchimede (in GEOM_Object theShape,
2264 in double theWeight,
2265 in double theWaterDensity,
2266 in double theMeshDeflection);
2269 * Duplicates <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2270 * Present here only for compatibility.
2272 long GetSubShapeIndex (in GEOM_Object theShape, in GEOM_Object theSubShape);
2276 * GEOM_IHealingOperations: Interface for shape healing operations.
2277 * Shape Processing, SuppressFaces, etc.
2279 interface GEOM_IHealingOperations : GEOM_IOperations
2282 * Apply a sequence of Shape Healing operators to the given object.
2283 * \param theShapes Shape to be processed.
2284 * \param theOperators List of names of operators ("FixShape", "SplitClosedFaces", etc.).
2285 * \param theParameters List of names of parameters
2286 * ("FixShape.Tolerance3d", "SplitClosedFaces.NbSplitPoints", etc.).
2287 * \param theValues List of values of parameters, in the same order
2288 * as parameters are listed in \a theParameters list.
2289 * \return New GEOM_Object, containing processed shape.
2291 GEOM_Object ProcessShape (in GEOM_Object theShapes,
2292 in string_array theOperators,
2293 in string_array theParameters,
2294 in string_array theValues);
2297 * Get default sequence of operators, their parameters and parameters' values
2298 * of Shape Process operation. In the current implementation the defaults are
2299 * read from the file pointed by CSF_ShHealingDefaults environmental variable.
2300 * \param theOperators Output. Default list of names of operators.
2301 * \param theParameters Output. Default list of names of parameters.
2302 * \param theValues Output. List of default values of parameters, in the same order
2303 * as parameters are listed in \a theParameters list.
2305 void GetShapeProcessParameters (out string_array theOperators,
2306 out string_array theParameters,
2307 out string_array theValues);
2309 * Get parameters and parameters' values for the given Shape Process operation.
2310 * In the current implementation the defaults are
2311 * read from the file pointed by CSF_ShHealingDefaults environmental variable.
2312 * \param theOperator Input. The operator's name.
2313 * \param theParameters Output. Default list of names of parameters.
2314 * \param theValues Output. List of default values of parameters, in the same order
2315 * as parameters are listed in \a theParameters list.
2317 void GetOperatorParameters (in string theOperator,
2318 out string_array theParameters,
2319 out string_array theValues);
2322 * Remove faces from the given object (shape).
2323 * \param theObject Shape to be processed.
2324 * \param theFaces Indices of faces to be removed, if EMPTY then the method
2325 * removes ALL faces of the given object.
2326 * \return New GEOM_Object, containing processed shape.
2328 GEOM_Object SuppressFaces (in GEOM_Object theObject, in short_array theFaces);
2331 * Close an open wire.
2332 * \param theObject Shape to be processed.
2333 * \param theWires Indexes of edge(s) and wire(s) to be closed within <VAR>theObject</VAR>'s shape,
2334 * if -1, then theObject itself is a wire.
2335 * \param isCommonVertex If TRUE : closure by creation of a common vertex,
2336 * If FALS : closure by creation of an edge between ends.
2337 * \return New GEOM_Object, containing processed shape.
2339 GEOM_Object CloseContour (in GEOM_Object theObject, in short_array theWires,
2340 in boolean isCommonVertex);
2343 * Remove internal wires and edges from the given object (face).
2344 * \param theObject Shape to be processed.
2345 * \param theWires Indices of wires to be removed, if EMPTY then the method
2346 * removes ALL internal wires of the given object.
2347 * \return New GEOM_Object, containing processed shape.
2349 GEOM_Object RemoveIntWires (in GEOM_Object theObject, in short_array theWires);
2352 * Remove internal closed contours (holes) from the given object.
2353 * \param theObject Shape to be processed.
2354 * \param theWires Indices of wires to be removed, if EMPTY then the method
2355 * removes ALL internal holes of the given object
2356 * \return New GEOM_Object, containing processed shape.
2358 GEOM_Object FillHoles (in GEOM_Object theObject, in short_array theWires);
2361 * Sewing of the given object.
2362 * \param theObject Shape to be processed.
2363 * \param theTolerance Required tolerance value.
2364 * \return New GEOM_Object, containing processed shape.
2366 GEOM_Object Sew (in GEOM_Object theObject, in double theTolerance);
2369 * Addition of a point to a given edge object.
2370 * \param theObject Shape to be processed.
2371 * \param theEdgeIndex Index of edge to be divided within theObject's shape,
2372 * if -1, then theObject itself is the edge.
2373 * \param theValue Value of parameter on edge or length parameter,
2374 * depending on \a isByParameter.
2375 * \param isByParameter If TRUE : \a theValue is treated as a curve parameter [0..1],
2376 * if FALSE : \a theValue is treated as a length parameter [0..1]
2377 * \return New GEOM_Object, containing processed shape.
2379 GEOM_Object DivideEdge (in GEOM_Object theObject, in short theEdgeIndex,
2380 in double theValue, in boolean isByParameter);
2383 * Get a list of wires (wrapped in GEOM_Object-s),
2384 * that constitute a free boundary of the given shape.
2385 * \param theObject Shape to get free boundary of.
2386 * \param theClosedWires Output. Closed wires on the free boundary of the given shape.
2387 * \param theOpenWires Output. Open wires on the free boundary of the given shape.
2388 * \return FALSE, if an error(s) occured during the method execution.
2390 boolean GetFreeBoundary (in GEOM_Object theObject,
2391 out ListOfGO theClosedWires,
2392 out ListOfGO theOpenWires);
2395 * Change orientation of the given object.
2396 * \param theObject Shape to be processed.
2397 * \return New GEOM_Object, containing processed shape.
2399 GEOM_Object ChangeOrientation (in GEOM_Object theObject);
2400 GEOM_Object ChangeOrientationCopy (in GEOM_Object theObject);
2405 * GEOM_IInsertOperations: Interface for shape insert operations (like copy, import).
2408 interface GEOM_IInsertOperations : GEOM_IOperations
2411 * Create a copy of the given object
2413 GEOM_Object MakeCopy (in GEOM_Object theOriginal);
2416 * Export the given shape into a file with given name.
2417 * \param theObject Shape to be stored in the file.
2418 * \param theFileName Name of the file to store the given shape in.
2419 * \param theFormatName Specify format for the shape storage.
2420 * Available formats can be obtained with <VAR>ImportTranslators()</VAR> method.
2422 void Export (in GEOM_Object theObject, in string theFileName, in string theFormatName);
2425 * Import a shape from the BRep or IGES or STEP file
2426 * (depends on given format) with given name.
2427 * \param theFileName The file, containing the shape.
2428 * \param theFormatName Specify format for the file reading.
2429 * Available formats can be obtained with <VAR>ImportTranslators()</VAR> method.
2430 * \return New GEOM_Object, containing the imported shape.
2432 GEOM_Object Import (in string theFileName, in string theFormatName);
2435 * Get the supported import formats and corresponding patterns for File dialog.
2436 * \param theFormats Output. List of formats, available for import.
2437 * \param thePatterns Output. List of file patterns, corresponding to available formats.
2438 * \return Returns available formats and patterns through the arguments.
2440 void ImportTranslators (out string_array theFormats,
2441 out string_array thePatterns);
2444 * Get the supported export formats and corresponding patterns for File dialog.
2445 * \param theFormats Output. List of formats, available for export.
2446 * \param thePatterns Output. List of file patterns, corresponding to available formats.
2447 * \return Returns available formats and patterns through the arguments.
2449 void ExportTranslators (out string_array theFormats,
2450 out string_array thePatterns);
2454 * GEOM_IKindOfShape: namespace for shape_kind enumeration.
2456 interface GEOM_IKindOfShape
2466 SPHERE, // full sphere
2467 CYLINDER, // cylinder
2468 BOX, // box with faces, parallel to global coordinate planes
2469 ROTATED_BOX, // other box
2470 TORUS, // full torus
2472 POLYHEDRON, // solid, bounded by polygons
2473 SOLID, // other solid
2475 SPHERE2D, // spherical face (closed)
2476 CYLINDER2D, // cylindrical face with defined height
2477 TORUS2D, // toroidal face (closed)
2478 CONE2D, // conical face with defined height
2479 DISK_CIRCLE, // planar, bounded by circle
2480 DISK_ELLIPSE, // planar, bounded by ellipse
2481 POLYGON, // planar, bounded by segments
2482 PLANE, // infinite planar
2483 PLANAR, // other planar
2486 CIRCLE, // full circle
2487 ARC_CIRCLE, // arc of circle
2488 ELLIPSE, // full ellipse
2489 ARC_ELLIPSE, // arc of ellipse
2490 LINE, // infinite segment
2500 * GEOM_IMeasureOperations: Interface for measurement (distance, whatis) and
2501 * properties calculation (like Centre of Mass, Inertia, etc.).
2504 interface GEOM_IMeasureOperations : GEOM_IOperations
2507 * Get kind of theShape.
2508 * \param theShape Shape to get a kind of.
2509 * \param theIntegers Output. Integer and enumerated shape's parameters
2510 * (kind of surface, closed/unclosed, number of edges, etc.)
2511 * \param theDoubles Output. Double shape's parameters (coordinates, dimensions, etc.)
2512 * \note Concrete meaning of each value, returned via \a theIntegers
2513 * or \a theDoubles list depends on the kind of the shape.
2514 * \return Returns a kind of shape in terms of <VAR>GEOM_IKindOfShape.shape_kind</VAR> enumeration.
2516 //short KindOfShape (in GEOM_Object theShape,
2517 GEOM_IKindOfShape::shape_kind KindOfShape (in GEOM_Object theShape,
2518 out ListOfLong theIntegers,
2519 out ListOfDouble theDoubles);
2522 * Get position (LCS) of theShape.
2523 * \param theShape Shape to calculate position of.
2524 * \param Ox,Oy,Oz Output. Coordinates of shape's location origin.
2525 * Origin of the LCS is situated at the shape's center of mass.
2526 * \param Zx,Zy,Zz Output. Coordinates of shape's location normal(main) direction.
2527 * \param Xx,Xy,Xz Output. Coordinates of shape's location X direction.
2528 * Axes of the LCS are obtained from shape's location or,
2529 * if the shape is a planar face, from position of its plane.
2530 * \return Returns position of the shape through the last nine arguments.
2532 void GetPosition (in GEOM_Object theShape,
2533 out double Ox, out double Oy, out double Oz,
2534 out double Zx, out double Zy, out double Zz,
2535 out double Xx, out double Xy, out double Xz);
2538 * Get summarized length of all wires,
2539 * area of surface and volume of the given shape.
2540 * \param theShape Shape to define properties of.
2541 * \param theLength Output. Summarized length of all wires of the given shape.
2542 * \param theSurfArea Output. Area of surface of the given shape.
2543 * \param theVolume Output. Volume of the given shape.
2544 * \return Returns shape properties through the last three arguments.
2546 void GetBasicProperties (in GEOM_Object theShape,
2547 out double theLength,
2548 out double theSurfArea,
2549 out double theVolume);
2552 * Get a point, situated at the centre of mass of theShape.
2553 * \param theShape Shape to define centre of mass of.
2554 * \return New GEOM_Object, containing the created point.
2556 GEOM_Object GetCentreOfMass (in GEOM_Object theShape);
2559 * Get a vector, representing the normal of theFace.
2560 * If the face is not planar, theOptionalPoint is obligatory.
2561 * \param theFace Shape (face) to define the normal of.
2562 * \param theOptionalPoint Shape (point) to define the normal at.
2563 * Can be NULL in case of planar face.
2564 * \return New GEOM_Object, containing the created normal vector.
2566 GEOM_Object GetNormal (in GEOM_Object theFace,
2567 in GEOM_Object theOptionalPoint);
2570 * Get inertia matrix and moments of inertia of theShape.
2571 * \param theShape Shape to calculate inertia of.
2572 * \param I(1-3)(1-3) Output. Components of the inertia matrix of the given shape.
2573 * \param Ix,Iy,Iz Output. Moments of inertia of the given shape.
2574 * \return Returns inertia through the last twelve arguments.
2576 void GetInertia (in GEOM_Object theShape,
2577 out double I11, out double I12, out double I13,
2578 out double I21, out double I22, out double I23,
2579 out double I31, out double I32, out double I33,
2580 out double Ix , out double Iy , out double Iz);
2583 * Get parameters of bounding box of the given shape
2584 * \param theShape Shape to obtain bounding box of.
2585 * \param Xmin,Xmax Output. Limits of shape along OX axis.
2586 * \param Ymin,Ymax Output. Limits of shape along OY axis.
2587 * \param Zmin,Zmax Output. Limits of shape along OZ axis.
2588 * \return Returns parameters of bounding box through the last six arguments.
2590 void GetBoundingBox (in GEOM_Object theShape,
2591 out double Xmin, out double Xmax,
2592 out double Ymin, out double Ymax,
2593 out double Zmin, out double Zmax);
2596 * Get min and max tolerances of sub-shapes of theShape
2597 * \param theShape Shape, to get tolerances of.
2598 * \param FaceMin,FaceMax Output. Min and max tolerances of the faces.
2599 * \param EdgeMin,EdgeMax Output. Min and max tolerances of the edges.
2600 * \param VertMin,VertMax Output. Min and max tolerances of the vertices.
2601 * \return Returns shape tolerances through the last six arguments.
2603 void GetTolerance (in GEOM_Object theShape,
2604 out double FaceMin, out double FaceMax,
2605 out double EdgeMin, out double EdgeMax,
2606 out double VertMin, out double VertMax);
2609 * Check a topology of the given shape.
2610 * \param theShape Shape to check validity of.
2611 * \param theDescription Output. Description of problems in the shape, if they are.
2612 * \return TRUE, if the shape "seems to be valid" from the topological point of view.
2614 boolean CheckShape (in GEOM_Object theShape,
2615 out string theDescription);
2618 * Check a topology and a geometry of the given shape.
2619 * \param theShape Shape to check validity of.
2620 * \param theDescription Output. Description of problems in the shape, if they are.
2621 * \return TRUE, if the shape "seems to be valid".
2623 boolean CheckShapeWithGeometry (in GEOM_Object theShape,
2624 out string theDescription);
2627 * Obtain description of the given shape
2628 * \param theShape Shape to be described.
2629 * \return Description of the given shape.
2631 string WhatIs (in GEOM_Object theShape);
2634 * Get minimal distance between the given shapes.
2635 * \param theShape1,theShape2 Shapes to find minimal distance between.
2636 * \param X1,Y1,Z1 Output. Coordinates of point on theShape1, nearest to theShape2.
2637 * \param X2,Y2,Z2 Output. Coordinates of point on theShape2, nearest to theShape1.
2638 * \return Value of the minimal distance between the given shapes.
2640 double GetMinDistance (in GEOM_Object theShape1, in GEOM_Object theShape2,
2641 out double X1, out double Y1, out double Z1,
2642 out double X2, out double Y2, out double Z2);
2645 * Get angle between the given lines or linear edges.
2646 * \param theShape1,theShape2 Shapes to find angle between. Lines or linear edges.
2647 * \return Value of the angle between the given shapes.
2649 double GetAngle (in GEOM_Object theShape1, in GEOM_Object theShape2);
2652 * Get point coordinates
2654 void PointCoordinates (in GEOM_Object theShape, out double X, out double Y, out double Z);
2657 * Get radius of curvature of curve in the point determinated by param
2658 * \param theShape - curve.
2659 * \param theParam - parameter on curve
2660 * \return Value of curvature.
2662 double CurveCurvatureByParam (in GEOM_Object theShape, in double theParam);
2665 * Get radius of curvature of curve in the given point
2666 * \param theShape - curve.
2667 * \param thePoint - point
2668 * \return Value of curvature.
2670 double CurveCurvatureByPoint (in GEOM_Object theShape, in GEOM_Object thePoint);
2673 * Get max radius of curvature of surface in the point determinated by params
2674 * \param theShape - surface.
2675 * \param theUParam - U-parameter on surface
2676 * \param theVParam - V-parameter on surface
2677 * \return Value of curvature.
2679 double MaxSurfaceCurvatureByParam (in GEOM_Object theShape, in double theUParam,
2680 in double theVParam);
2683 * Get max radius of curvature of surface in the given point
2684 * \param theShape - surface.
2685 * \param thePoint - point
2686 * \return Value of curvature.
2688 double MaxSurfaceCurvatureByPoint (in GEOM_Object theShape, in GEOM_Object thePoint);
2691 * Get min radius of curvature of surface in the point determinated by params
2692 * \param theShape - surface.
2693 * \param theUParam - U-parameter on surface
2694 * \param theVParam - V-parameter on surface
2695 * \return Value of curvature.
2697 double MinSurfaceCurvatureByParam (in GEOM_Object theShape, in double theUParam,
2698 in double theVParam);
2701 * Get min radius of curvature of surface in the given point
2702 * \param theShape - surface.
2703 * \param thePoint - point
2704 * \return Value of curvature.
2706 double MinSurfaceCurvatureByPoint (in GEOM_Object theShape, in GEOM_Object thePoint);
2712 * GEOM_IGroupOperations: Interface for groups creation.
2714 interface GEOM_IGroupOperations : GEOM_IOperations
2717 * Creates a new group which will store sub shapes of theMainShape
2718 * \param theMainShape is a GEOM object on which the group is selected
2719 * \param theShapeType defines a shape type of the group
2720 * \return a newly created GEOM group
2722 GEOM_Object CreateGroup (in GEOM_Object theMainShape, in long theShapeType);
2725 * Adds a sub object with ID theSubShapeId to the group
2726 * \param theGroup is a GEOM group to which the new sub shape is added
2727 * \param theSubShapeId is a sub shape ID in the main object.
2728 * \note Use method <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR> to get an ID by the sub shape
2730 void AddObject (in GEOM_Object theGroup, in long theSubShapeId);
2733 * Removes a sub object with ID \a theSubShapeId from the group
2734 * \param theGroup is a GEOM group from which the sub shape is removed.
2735 * \param theSubShapeId is a sub shape ID in the main object.
2736 * \note Use method <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR> to get an ID by the sub shape
2738 void RemoveObject (in GEOM_Object theGroup, in long theSubShapeId);
2741 * Adds to the group all the given shapes. No errors, if some shapes are alredy included.
2742 * \param theGroup is a GEOM group to which the new sub shapes are added.
2743 * \param theSubShapes is a list of sub shapes to be added.
2745 void UnionList (in GEOM_Object theGroup, in ListOfGO theSubShapes);
2748 * Removes from the group all the given shapes. No errors, if some shapes are not included.
2749 * \param theGroup is a GEOM group from which the sub-shapes are removed.
2750 * \param theSubShapes is a list of sub-shapes to be removed.
2752 void DifferenceList (in GEOM_Object theGroup, in ListOfGO theSubShapes);
2755 * Adds to the group all the given shapes. No errors, if some shapes are alredy included.
2756 * \param theGroup is a GEOM group to which the new sub shapes are added.
2757 * \param theSubShapes is a list of IDs of sub shapes to be added.
2759 void UnionIDs (in GEOM_Object theGroup, in ListOfLong theSubShapes);
2762 * Removes from the group all the given shapes. No errors, if some shapes are not included.
2763 * \param theGroup is a GEOM group from which the sub-shapes are removed.
2764 * \param theSubShapes is a list of IDs of sub-shapes to be removed.
2766 void DifferenceIDs (in GEOM_Object theGroup, in ListOfLong theSubShapes);
2769 * Returns a type of sub objects stored in the group
2770 * \param theGroup is a GEOM group which type is returned.
2772 long GetType (in GEOM_Object theGroup);
2775 * Returns a main shape associated with the group
2776 * \param theGroup is a GEOM group for which a main shape object is requested
2777 * \return a GEOM object which is a main shape for theGroup
2779 GEOM_Object GetMainShape (in GEOM_Object theGroup);
2782 * Returns a list of sub objects ID stored in the group
2783 * \param theGroup is a GEOM group for which a list of IDs is requested
2785 ListOfLong GetObjects (in GEOM_Object theGroup);
2790 * GEOM_Gen: Interface to access other GEOM interfaces.
2791 * Also contains some methods to access and manage GEOM objects.
2793 interface GEOM_Gen : Engines::Component,SALOMEDS::Driver
2796 * Undo/Redo Management
2799 void Undo (in long theStudyID);
2801 void Redo (in long theStudyID);
2804 * Publishing management
2805 * Adds in theStudy a object theObject under with a name theName,
2806 * if theFather is not NULL the object is placed under thFather's SObject.
2807 * Returns a SObject where theObject is placed
2809 SALOMEDS::SObject AddInStudy (in SALOMEDS::Study theStudy,
2810 in GEOM_Object theObject,
2812 in GEOM_Object theFather);
2815 * Publish sub-shapes, standing for arguments and sub-shapes of arguments
2816 * To be used from python scripts out of geompy.addToStudy (non-default usage)
2817 * \param theStudy the study, in which theObject is published already,
2818 * and in which the arguments will be published
2819 * \param theObject published GEOM object, arguments of which will be published
2820 * \param theArgs list of GEOM_Object, operation arguments to be published.
2821 * If this list is empty, all operation arguments will be published
2822 * \param theFindMethod method to search subshapes, corresponding to arguments and
2823 * their subshapes. Value from enumeration GEOM::find_shape_method.
2824 * \param theInheritFirstArg set properties of the first argument for \a theObject.
2825 * Do not publish subshapes in place of arguments, but only
2826 * in place of subshapes of the first argument,
2827 * because the whole shape corresponds to the first argument.
2828 * Mainly to be used after transformations, but it also can be
2829 * usefull after partition with one object shape, and some other
2830 * operations, where only the first argument has to be considered.
2831 * If theObject has only one argument shape, this flag is automatically
2832 * considered as True, not regarding really passed value.
2833 * \return True in case of success, False otherwise.
2835 boolean RestoreSubShapesO (in SALOMEDS::Study theStudy,
2836 in GEOM_Object theObject,
2837 in ListOfGO theArgs,
2838 in find_shape_method theFindMethod,
2839 in boolean theInheritFirstArg);
2842 * Publish sub-shapes, standing for arguments and sub-shapes of arguments
2843 * To be used from GUI and from geompy.addToStudy.
2844 * Work like the above method, but accepts study object theSObject instead of GEOM_Object.
2845 * \param theSObject study object, referencing GEOM object, arguments of which will be published
2847 boolean RestoreSubShapesSO (in SALOMEDS::Study theStudy,
2848 in SALOMEDS::SObject theSObject,
2849 in ListOfGO theArgs,
2850 in find_shape_method theFindMethod,
2851 in boolean theInheritFirstArg);
2854 * Methods to access interfaces for objects creation and transformation
2856 GEOM_IBasicOperations GetIBasicOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2857 GEOM_ITransformOperations GetITransformOperations(in long theStudyID) raises (SALOME::SALOME_Exception);
2858 GEOM_I3DPrimOperations GetI3DPrimOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2859 GEOM_IShapesOperations GetIShapesOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2860 GEOM_IBooleanOperations GetIBooleanOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2861 GEOM_ICurvesOperations GetICurvesOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2862 GEOM_ILocalOperations GetILocalOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2863 GEOM_IHealingOperations GetIHealingOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2864 GEOM_IInsertOperations GetIInsertOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2865 GEOM_IMeasureOperations GetIMeasureOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2866 GEOM_IBlocksOperations GetIBlocksOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2867 GEOM_IGroupOperations GetIGroupOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2870 * Objects Management
2874 * Removes the object from the GEOM component
2875 * \param theObject is a GEOM object to be removed
2877 void RemoveObject (in GEOM_Object theObject);
2880 * Returns an object defined by the study and its entry in the GEOM component
2881 * \param theStudyID is a SALOMEDS Study ID
2882 * \param theEntry is an entry of the requested GEOM object in the GEOM component
2883 * \note if the object has not previously been created a NULL GEOM object is returned
2885 GEOM_Object GetObject (in long theStudyID, in string theEntry);
2888 * Add a sub shape defined by indices in \a theIndices
2889 * (contains unique IDs of sub shapes inside theMainShape)
2890 * \note The sub shape GEOM_Objects can has ONLY ONE function.
2891 * Don't try to apply modification operations on them.
2892 * \note Internal method
2894 GEOM_Object AddSubShape (in GEOM_Object theMainShape, in ListOfLong theIndices);
2897 * GEOM object's IOR Management
2901 * Returns a GEOM Object defined by its IOR
2902 * \param theIOR a string containg an IOR of the requested GEOM object
2904 GEOM_Object GetIORFromString (in string theIOR);
2907 * Returns a string which contains an IOR of the GEOM object
2908 * \param theObject is a GEOM object which IOR is requested
2910 string GetStringFromIOR (in GEOM_Object theObject);
2913 * Returns a name with which a GEOM object was dumped into python script
2914 * \param theStudyEntry is an entry of the GEOM object in the study
2916 string GetDumpName (in string theStudyEntry);
2919 * Returns all names with which a GEOM objects was dumped
2920 * into python script to avoid the same names in SMESH script
2922 string_array GetAllDumpNames();