1 // Copyright (C) 2007-2010 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 };
46 enum marker_type { MT_NONE, MT_POINT, MT_PLUS, MT_STAR, MT_O, MT_X, MT_O_POINT, MT_O_PLUS,
47 MT_O_STAR, MT_O_X, MT_BALL, MT_RING1, MT_RING2, MT_RING3, MT_USER };
52 enum marker_size { MS_NONE, MS_10, MS_15, MS_20, MS_25, MS_30, MS_35,
53 MS_40, MS_45, MS_50, MS_55, MS_60, MS_65, MS_70 };
56 * State of shape relatively geometrical surface like plane, sphere or cylinder.
57 * Is used in functions GEOM_IShapesOperations.GetShapesOn<xxx>()
61 /*! Shape is on surface */
65 * Shape is in the direction defined by the normal and not on surface.
66 * For plane it means above the plane,
67 * For sphere and cylinder it means outside of volume, bounded by the surface.
72 * Shape is in the direction defined by the normal and on surface.
78 * Complementary to ONOUT.
79 * For plane it means below the plane,
80 * For sphere and cylinder it means inside the volume, bounded by the surface
81 * (beyond axis and surface for cylinder and beyond cented and surface for sphere).
86 * Complementary to OUT.
93 * Kind of method to find inside one main shape some subshapes,
94 * corresponding to other given shape (its argument)
95 * Is used in functions GEOM_Gen.RestoreSubShapes<xxx>()
97 enum find_shape_method
99 /*! Use GetInPlace functionality. Suits all cases, except transformations */
102 /*! To be used only for transformation result, to find subshapes of argument.
103 * Only this method can be used after transformation.
107 /*! To find only shared subshapes, not modified by the operation */
110 /*! Use GetShapesOnShape method (can work only on solids) */
111 FSM_GetShapesOnShape,
113 /*! Use GetInPlaceByHistory method (can work only after Partition) */
114 FSM_GetInPlaceByHistory
118 * Kind of method to perform filling operation
119 * Is used in functions GEOM_Gen.MakeFilling<xxx>()
121 enum filling_oper_method
123 /*! Default (standard behaviour) */
126 /*! Use edges orientation */
129 /*! Auto-correct edges orientation */
134 typedef sequence<string> string_array;
135 typedef sequence<short> short_array;
136 typedef sequence<long> ListOfLong;
137 typedef sequence<double> ListOfDouble;
139 interface GEOM_Object;
141 typedef sequence<GEOM_Object> ListOfGO;
144 * GEOM_Object: interface of geometric object
146 interface GEOM_Object : SALOME::GenericObj
150 * Get an entry of the object in GEOM component.
155 * Get ID of study, where the object is created.
160 * Get internal type of the object (POINT, BOX, CYLINDER, EXTRUSION...).
165 * Get a <VAR>shape_type</VAR> of the object value.
167 shape_type GetShapeType();
170 * Get the topology type of the object value.
171 * In contrast to the shape type, this function returns type of the most
172 * top-level sub-shape of the COMPOUND or COMPSOLID, if there is only one
176 shape_type GetTopologyType();
179 * Set name of the object.
180 * \param theName is a name which will be associated with this object.
182 void SetName (in string theName);
185 * Get name of the object associated with this object.
190 * Set color of the object.
191 * \param theColor is a color of the object.
193 void SetColor(in SALOMEDS::Color theColor);
196 * Get color of the object.
198 SALOMEDS::Color GetColor();
201 * Toggle auto color mode on the object.
202 * \param theAtoColor is a flag which toggles auto color mode.
204 void SetAutoColor(in boolean theAutoColor);
207 * Get flag of object's auto color mode.
209 boolean GetAutoColor();
212 * Set standard point marker for the object
213 * \param theType standard marker type
214 * \param theSize marker relative size
216 void SetMarkerStd(in marker_type theType, in marker_size theSize );
219 * Set custom point marker for the object. The texture can be added
220 * by LoadTexture() or AddTexture() functions.
221 * \param theTextureId texture ID
223 void SetMarkerTexture(in long theTextureId);
226 * Get type of the point marker assigned to the object
227 * \return current marker type (MT_NONE if no marker is set)
229 marker_type GetMarkerType();
232 * Get size of the point marker assigned to the object
233 * \return current marker relative size (MS_NONE if no marker is set)
235 marker_size GetMarkerSize();
238 * Get texture idenifier of the point marker assigned to the object
239 * \return marker texture ID (0 if no marker set)
241 long GetMarkerTexture();
244 * Set a Study entry where this object was published.
246 void SetStudyEntry (in string theEntry);
249 * Get a Study entry where this object was published.
251 string GetStudyEntry();
254 * Get a list of all GEOM objects on which were the arguments
255 * when this object was constructed and modified.
256 * \note This method is supposed to be used by GUI only.
258 ListOfGO GetDependency();
261 * Get a list of GEOM objects on which the last function that created or modified the object depends.
262 * \note This method is supposed to be used by GUI only.
264 ListOfGO GetLastDependency();
267 * Get the TopoDS_Shape, for colocated case only.
269 long long getShape();
272 ######################################################################
273 * Internal methods (For sub shape identification)
274 ######################################################################
278 * Get geometric shape of the object as a byte stream
280 SALOMEDS::TMPFile GetShapeStream();
283 * Returns True if this object is not a sub shape of another object.
285 boolean IsMainShape();
288 * Get a list of ID's of sub shapes in the main shape.
289 * \note Internal method, suppopsed to be used only by GEOM_Client
291 ListOfLong GetSubShapeIndices();
294 * Get a main shape object to which this object is a sub shape
295 * \note Internal method, suppopsed to be used only by GEOM_Client
297 GEOM_Object GetMainShape();
300 * Return true if geom object representes a shape.
301 * For example, method return false for GEOM_MARKER
306 * Set list of parameters
307 * \param theParameters is a string containing the notebook variables separated by ":" symbol,
308 * used for object creation
310 void SetParameters (in string theParameters);
313 * Return list of notebook variables used for object creation separated by ":" symbol
315 string GetParameters();
320 * GEOM_IOperations: basic methods of all geometric operations
322 interface GEOM_IOperations : SALOME::GenericObj
325 * To know, if the operation was successfully performed
330 * Set the operation error code
331 * \param theErrorID is a string describing the error occured
332 * \note This method is supposed to be used only by interfaces inheriting from IOperations.
334 void SetErrorCode (in string theErrorID);
337 * Get the operation error code
339 string GetErrorCode();
342 * Get ID of study, where the operation is defined
347 * Opens a new transaction
349 void StartOperation();
352 * Closes the previously opened trasaction
354 void FinishOperation();
357 * Aborts the previously opened transaction
359 void AbortOperation();
363 * GEOM_IBasicOperations: interface for basic geometry creation
364 * (Point, Vector, Plane, Marker)
366 interface GEOM_IBasicOperations : GEOM_IOperations
369 * Create point by three coordinates.
370 * \param theX The X coordinate of the point.
371 * \param theY The Y coordinate of the point.
372 * \param theZ The Z coordinate of the point.
373 * \return New GEOM_Object, containing the created point.
375 GEOM_Object MakePointXYZ (in double theX, in double theY, in double theZ);
378 * Create a point, distant from the referenced point
379 * on the given distances along the coordinate axes.
380 * \param theReference The referenced point.
381 * \param theX Displacement from the referenced point along OX axis.
382 * \param theY Displacement from the referenced point along OY axis.
383 * \param theZ Displacement from the referenced point along OZ axis.
384 * \return New GEOM_Object, containing the created point.
386 GEOM_Object MakePointWithReference (in GEOM_Object theReference,
387 in double theX, in double theY, in double theZ);
390 * Create a point, corresponding to the given parameter on the given curve.
391 * \param theRefCurve The referenced curve.
392 * \param theParameter Value of parameter on the referenced curve.
393 * \return New GEOM_Object, containing the created point.
395 GEOM_Object MakePointOnCurve (in GEOM_Object theRefCurve,
396 in double theParameter);
399 * Create a point on the given curve, projecting given point
400 * \param theRefCurve The referenced curve.
401 * \param theXParameter X co-ordinate of point to project on curve
402 * \param theYParameter Y co-ordinate of point to project on curve
403 * \param theZParameter Z co-ordinate of point to project on curve
404 * \return New GEOM_Object, containing the created point.
406 GEOM_Object MakePointOnCurveByCoord (in GEOM_Object theRefCurve,
407 in double theXParameter,
408 in double theYarameter,
409 in double theZPameter);
412 * Create a point, corresponding to the given parameters on the
414 * \param theRefSurf The referenced surface.
415 * \param theUParameter Value of U-parameter on the referenced surface.
416 * \param theVParameter Value of V-parameter on the referenced surface.
417 * \return New GEOM_Object, containing the created point.
419 GEOM_Object MakePointOnSurface (in GEOM_Object theRefSurf,
420 in double theUParameter,
421 in double theVParameter);
424 * Create a point on the given surface, projecting given point
425 * \param theRefSurf The referenced surface.
426 * \param theXParameter X co-ordinate of point to project on curve
427 * \param theYParameter Y co-ordinate of point to project on curve
428 * \param theZParameter Z co-ordinate of point to project on curve
429 * \return New GEOM_Object, containing the created point.
431 GEOM_Object MakePointOnSurfaceByCoord (in GEOM_Object theRefSurf,
432 in double theXParameter,
433 in double theYarameter,
434 in double theZPameter);
438 * Create a point, on two lines intersection.
439 * \param theRefLine1, theRefLine2 The referenced lines.
440 * \return New GEOM_Object, containing the created point.
442 GEOM_Object MakePointOnLinesIntersection (in GEOM_Object theRefLine1,
443 in GEOM_Object theRefLine2);
446 * Create a vector, corresponding to tangent to the given parameter on the given curve.
447 * \param theRefCurve The referenced curve.
448 * \param theParameter Value of parameter on the referenced curve.This value should be have value
449 * \between 0. and 1.. Value of 0. corresponds first parameter of curve value 1. corresponds
450 * \last parameter of curve.
451 * \return New GEOM_Object, containing the created point.
453 GEOM_Object MakeTangentOnCurve (in GEOM_Object theRefCurve,
454 in double theParameter);
457 * Create a vector with the given components.
458 * \param theDX X component of the vector.
459 * \param theDY Y component of the vector.
460 * \param theDZ Z component of the vector.
461 * \return New GEOM_Object, containing the created vector.
463 GEOM_Object MakeVectorDXDYDZ (in double theDX,
468 * Create a vector between two points.
469 * \param thePnt1 Start point for the vector.
470 * \param thePnt2 End point for the vector.
471 * \return New GEOM_Object, containing the created vector.
473 GEOM_Object MakeVectorTwoPnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
476 * Create a line, passing through the given point
477 * and parrallel to the given direction
478 * \param thePnt Point. The resulting line will pass through it.
479 * \param theDir Direction. The resulting line will be parallel to it.
480 * \return New GEOM_Object, containing the created line.
482 GEOM_Object MakeLine (in GEOM_Object thePnt, in GEOM_Object theDir);
485 * Create a line, passing through the given points
486 * \param thePnt1 First of two points, defining the line.
487 * \param thePnt2 Second of two points, defining the line.
488 * \return New GEOM_Object, containing the created line.
490 GEOM_Object MakeLineTwoPnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
493 * Create a line, given by two faces intersection.
494 * \param theFace1 First of two faces, defining the line.
495 * \param theFace2 Second of two faces, defining the line.
496 * \return New GEOM_Object, containing the created line.
498 GEOM_Object MakeLineTwoFaces (in GEOM_Object theFace1, in GEOM_Object theFace2);
501 * Create a plane, passing through the three given points
502 * \param thePnt1 First of three points, defining the plane.
503 * \param thePnt2 Second of three points, defining the plane.
504 * \param thePnt3 Fird of three points, defining the plane.
505 * \param theTrimSize Half size of a side of quadrangle face, representing the plane.
506 * \return New GEOM_Object, containing the created plane.
508 GEOM_Object MakePlaneThreePnt (in GEOM_Object thePnt1,
509 in GEOM_Object thePnt2,
510 in GEOM_Object thePnt3,
511 in double theTrimSize);
514 * Create a plane, passing through the given point
515 * and normal to the given vector.
516 * \param thePnt Point, the plane has to pass through.
517 * \param theVec Vector, defining the plane normal direction.
518 * \param theTrimSize Half size of a side of quadrangle face, representing the plane.
519 * \return New GEOM_Object, containing the created plane.
521 GEOM_Object MakePlanePntVec (in GEOM_Object thePnt,
522 in GEOM_Object theVec,
523 in double theTrimSize);
526 * Create a plane, similar to the existing one, but with another size of representing face.
527 * \param theFace Referenced plane or LCS(Marker).
528 * \param theTrimSize New half size of a side of quadrangle face, representing the plane.
529 * \return New GEOM_Object, containing the created plane.
531 GEOM_Object MakePlaneFace (in GEOM_Object theFace,
532 in double theTrimSize);
535 * Create a plane, by two vectors.
536 * \param theVec1 Vector1, the plane has to pass through first point of this vector.
537 * \param theVec Vector2, defining the plane normal direction.
538 * \param theTrimSize Half size of a side of quadrangle face, representing the plane.
539 * \return New GEOM_Object, containing the created plane.
541 GEOM_Object MakePlane2Vec (in GEOM_Object theVec1,
542 in GEOM_Object theVec2,
543 in double theTrimSize);
546 * Create a plane, defined by local coordinate system.
547 * \param theLCS Referenced LCS(Marker).
548 * \param theTrimSize Half size of a side of quadrangle face, representing the plane.
549 * \param theOrientation OXY, OYZ or OZX orientation = (1, 2 or 3).
550 * \return New GEOM_Object, containing the created plane.
552 GEOM_Object MakePlaneLCS (in GEOM_Object theLCS,
553 in double theTrimSize,
554 in double theOrientation);
557 * Create a local coordinate system.
558 * \param theOX,theOY,theOZ Three coordinates of coordinate system origin.
559 * \param theXDX,theXDY,theXDZ Three components of OX direction
560 * \param theYDX,theYDY,theYDZ Three components of OY direction
561 * \return New GEOM_Object, containing the created coordinate system.
563 GEOM_Object MakeMarker (in double theOX , in double theOY , in double theOZ,
564 in double theXDX, in double theXDY, in double theXDZ,
565 in double theYDX, in double theYDY, in double theYDZ);
568 * Create a local coordinate system from shape.
569 * \param theShape The initial shape to detect the coordinate system.
570 * \return New GEOM_Object, containing the created coordinate system.
572 GEOM_Object MakeMarkerFromShape (in GEOM_Object theShape);
575 * Create a local coordinate system from point and two vectors (DX, DY).
576 * \param theOrigin Point of coordinate system origin.
577 * \param theXVec Vector of X direction.
578 * \param theYVec Vector of Y direction.
579 * \return New GEOM_Object, containing the created coordinate system.
581 GEOM_Object MakeMarkerPntTwoVec (in GEOM_Object theOrigin, in GEOM_Object theXVec, in GEOM_Object theYVec);
584 * Create a tangent plane to specified face in the point with specified parameters.
585 * Values of parameters should be between 0. and 1.0
586 * \param theFace - face for which tangent plane shuold be built.
587 * \param theParameterU - value of parameter by U
588 * \param theParameterV - value of parameter Vthe
589 * \param theTrimSize - defines sizes of created face
590 * \return New GEOM_Object, containing the face built on tangent plane.
592 GEOM_Object MakeTangentPlaneOnFace(in GEOM_Object theFace,
593 in double theParameterU,
594 in double theParameterV,
595 in double theTrimSize);
598 interface GEOM_ITransformOperations : GEOM_IOperations
601 * Translate the given object along the vector, specified by its end points.
602 * \param theObject The object to be translated.
603 * \param thePoint1 Start point of translation vector.
604 * \param thePoint2 End point of translation vector.
607 GEOM_Object TranslateTwoPoints (in GEOM_Object theObject,
608 in GEOM_Object thePoint1,
609 in GEOM_Object thePoint2);
612 * Translate the given object along the vector, specified
613 * by its end points, creating its copy before the translation.
614 * \param theObject The object to be translated.
615 * \param thePoint1 Start point of translation vector.
616 * \param thePoint2 End point of translation vector.
617 * \return New GEOM_Object, containing the translated object.
619 GEOM_Object TranslateTwoPointsCopy (in GEOM_Object theObject,
620 in GEOM_Object thePoint1,
621 in GEOM_Object thePoint2);
624 * Translate the given object along the vector, specified by its components.
625 * \param theObject The object to be translated.
626 * \param theDX,theDY,theDZ Components of translation vector.
629 GEOM_Object TranslateDXDYDZ (in GEOM_Object theObject,
630 in double theDX, in double theDY, in double theDZ);
633 * Translate the given object along the vector, specified
634 * by its components, creating its copy before the translation.
635 * \param theObject The object to be translated.
636 * \param theDX,theDY,theDZ Components of translation vector.
637 * \return New GEOM_Object, containing the translated object.
639 GEOM_Object TranslateDXDYDZCopy (in GEOM_Object theObject,
640 in double theDX, in double theDY, in double theDZ);
644 * Translate the given object along the given vector.
645 * \param theObject The object to be translated.
646 * \param theVector Translation vector, giving both direction and distance.
649 GEOM_Object TranslateVector (in GEOM_Object theObject,
650 in GEOM_Object theVector);
653 * Translate the given object along the given vector,
654 * creating its copy before the translation.
655 * \param theObject The object to be translated.
656 * \param theVector Translation vector, giving both direction and distance.
657 * \return New GEOM_Object, containing the translated object.
659 GEOM_Object TranslateVectorCopy (in GEOM_Object theObject,
660 in GEOM_Object theVector);
663 * Translate the given object along the given vector on given distance,
664 * creating its copy before the translation.
665 * \param theObject The object to be translated.
666 * \param theVector Translation vector, giving a direction.
667 * \param theDistance Translation distance, giving a distance.
668 * \param theCope Translation copy, creating its copy if true.
669 * \return New GEOM_Object, containing the translated object.
671 GEOM_Object TranslateVectorDistance (in GEOM_Object theObject,
672 in GEOM_Object theVector,
673 in double theDistance,
677 * Translate the given object along the given vector a given number times
678 * \param theObject The object to be translated.
679 * \param theVector Direction of the translation.
680 * \param theStep Distance to translate on.
681 * \param theNbTimes Quantity of translations to be done.
682 * \return New GEOM_Object, containing compound of all
683 * the shapes, obtained after each translation.
685 GEOM_Object MultiTranslate1D (in GEOM_Object theObject,
686 in GEOM_Object theVector,
691 * Conseqently apply two specified translations to theObject specified number of times.
692 * \param theObject The object to be translated.
693 * \param theVector1 Direction of the first translation.
694 * \param theStep1 Step of the first translation.
695 * \param theNbTimes1 Quantity of translations to be done along theVector1.
696 * \param theVector2 Direction of the second translation.
697 * \param theStep2 Step of the second translation.
698 * \param theNbTimes2 Quantity of translations to be done along theVector2.
699 * \return New GEOM_Object, containing compound of all
700 * the shapes, obtained after each translation.
702 GEOM_Object MultiTranslate2D (in GEOM_Object theObject,
703 in GEOM_Object theVector1,
706 in GEOM_Object theVector2,
708 in long theNbTimes2);
711 * Rotate given object around vector perpendicular to plane containing three points.
712 * \param theObject The object to be rotated.
713 * \param theCentPoint central point - the axis is the vector perpendicular to the plane
714 * containing the three points.
715 * \param thePoint1 and thePoint2 - in a perpendicular plan of the axis.
718 GEOM_Object RotateThreePoints (in GEOM_Object theObject,
719 in GEOM_Object theCentPoint,
720 in GEOM_Object thePoint1,
721 in GEOM_Object thePoint2);
725 * Rotate given object around vector perpendicular to plane containing three points.
726 * Creating its copy before the rotatation.
727 * \param theObject The object to be rotated.
728 * \param theCentPoint central point - the axis is the vector perpendicular to the plane
729 * containing the three points.
730 * \param thePoint1 and thePoint2 - in a perpendicular plan of the axis.
731 * \return New GEOM_Object, containing the rotated object.
733 GEOM_Object RotateThreePointsCopy (in GEOM_Object theObject,
734 in GEOM_Object theCentPoint,
735 in GEOM_Object thePoint1,
736 in GEOM_Object thePoint2);
739 * Rotate the given object around the given axis on the given angle.
740 * \param theObject The object to be rotated.
741 * \param theAxis Rotation axis.
742 * \param theAngle Rotation angle in radians.
745 GEOM_Object Rotate (in GEOM_Object theObject,
746 in GEOM_Object theAxis,
751 * Rotate the given object around the given axis
752 * on the given angle, creating its copy before the rotatation.
753 * \param theObject The object to be rotated.
754 * \param theAxis Rotation axis.
755 * \param theAngle Rotation angle in radians.
756 * \return New GEOM_Object, containing the rotated object.
758 GEOM_Object RotateCopy (in GEOM_Object theObject,
759 in GEOM_Object theAxis,
764 * Rotate the given object around the given axis a given number times.
765 * Rotation angle will be 2*PI/theNbTimes.
766 * \param theObject The object to be rotated.
767 * \param theAxis The rotation axis.
768 * \param theNbTimes Quantity of rotations to be done.
769 * \return New GEOM_Object, containing compound of all the
770 * shapes, obtained after each rotation.
772 GEOM_Object MultiRotate1D (in GEOM_Object theObject,
773 in GEOM_Object theAxis,
777 * Rotate the given object around the
778 * given axis on the given angle a given number
779 * times and multi-translate each rotation result.
780 * Translation direction passes through center of gravity
781 * of rotated shape and its projection on the rotation axis.
782 * \param theObject The object to be rotated.
783 * \param theAxis Rotation axis.
784 * \param theAngle Rotation angle in graduces.
785 * \param theNbTimes1 Quantity of rotations to be done.
786 * \param theStep Translation distance.
787 * \param theNbTimes2 Quantity of translations to be done.
788 * \return New GEOM_Object, containing compound of all the
789 * shapes, obtained after each transformation.
791 GEOM_Object MultiRotate2D (in GEOM_Object theObject,
792 in GEOM_Object theAxis,
796 in long theNbTimes2);
799 * Replace the given object by an object,
800 * symmetrical to it relatively the given plane.
801 * \param theObject The object to be mirrored.
802 * \param thePlane Plane of symmetry.
804 GEOM_Object MirrorPlane (in GEOM_Object theObject, in GEOM_Object thePlane);
807 * Create an object, symmetrical
808 * to the given one relatively the given plane.
809 * \param theObject The object to be mirrored.
810 * \param thePlane Plane of symmetry.
811 * \return New GEOM_Object, containing the mirrored shape.
813 GEOM_Object MirrorPlaneCopy (in GEOM_Object theObject, in GEOM_Object thePlane);
816 * Replace the given object by an object,
817 * symmetrical to it relatively the given axis.
818 * \param theObject The object to be mirrored.
819 * \param theAxis Axis of symmetry.
822 GEOM_Object MirrorAxis (in GEOM_Object theObject, in GEOM_Object theAxis);
825 * Create an object, symmetrical
826 * to the given one relatively the given axis.
827 * \param theObject The object to be mirrored.
828 * \param theAxis Axis of symmetry.
829 * \return New GEOM_Object, containing the mirrored object.
831 GEOM_Object MirrorAxisCopy (in GEOM_Object theObject, in GEOM_Object theAxis);
834 * Replace the given object by an object, symmetrical to it relatively the given point.
835 * \param theObject The object to be mirrored.
836 * \param thePoint Point of symmetry.
839 GEOM_Object MirrorPoint (in GEOM_Object theObject, in GEOM_Object thePoint);
842 * Create an object, symmetrical to the given one relatively the given point.
843 * \param theObject The object to be mirrored.
844 * \param thePoint Point of symmetry.
845 * \return New GEOM_Object, containing the mirrored object.
847 GEOM_Object MirrorPointCopy (in GEOM_Object theObject, in GEOM_Object thePoint);
850 * Replace the given object by its offset.
851 * \param theObject The base object for the offset.
852 * \param theOffset Offset value.
855 GEOM_Object OffsetShape (in GEOM_Object theObject, in double theOffset);
858 * Create new object as offset of the given one.
859 * \param theObject The base object for the offset.
860 * \param theOffset Offset value.
861 * \return New GEOM_Object, containing the offset object.
863 GEOM_Object OffsetShapeCopy (in GEOM_Object theObject, in double theOffset);
866 * Scale the given object by the factor.
867 * \param theObject The object to be scaled.
868 * \param thePoint Center point for scaling.
869 * \param theFactor Scaling factor value.
872 GEOM_Object ScaleShape (in GEOM_Object theObject, in GEOM_Object thePoint,
873 in double theFactor);
876 * Scale the given object by the factor, creating its copy before the scaling.
877 * \param theObject The object to be scaled.
878 * \param thePoint Center point for scaling.
879 * \param theFactor Scaling factor value.
880 * \return New GEOM_Object, containing the scaled shape.
882 GEOM_Object ScaleShapeCopy (in GEOM_Object theObject, in GEOM_Object thePoint,
883 in double theFactor);
886 * Scale the given object by different factors along coordinate axes.
887 * \param theObject The object to be scaled.
888 * \param thePoint Center point for scaling.
889 * \param theFactorX,theFactorY,theFactorZ Scaling factors along each axis.
892 GEOM_Object ScaleShapeAlongAxes (in GEOM_Object theObject,
893 in GEOM_Object thePoint,
894 in double theFactorX,
895 in double theFactorY,
896 in double theFactorZ);
899 * Scale the given object by different factors along coordinate axes,
900 * creating its copy before the scaling.
901 * \param theObject The object to be scaled.
902 * \param thePoint Center point for scaling.
903 * \param theFactorX,theFactorY,theFactorZ Scaling factors along each axis.
904 * \return New GEOM_Object, containing the scaled shape.
906 GEOM_Object ScaleShapeAlongAxesCopy (in GEOM_Object theObject,
907 in GEOM_Object thePoint,
908 in double theFactorX,
909 in double theFactorY,
910 in double theFactorZ);
913 * Modify the Location of the given object by LCS.
914 * \param theObject The object to be displaced.
915 * \param theStartLCS Coordinate system to perform displacement from it.
916 * If \a theStartLCS is NULL, displacement
917 * will be performed from global CS.
918 * If \a theObject itself is used as \a theStartLCS,
919 * its location will be changed to \a theEndLCS.
920 * \param theEndLCS Coordinate system to perform displacement to it.
923 GEOM_Object PositionShape (in GEOM_Object theObject,
924 in GEOM_Object theStartLCS,
925 in GEOM_Object theEndLCS);
928 * Modify the Location of the given object by LCS,
929 * creating its copy before the setting.
930 * \param theObject The object to be displaced.
931 * \param theStartLCS Coordinate system to perform displacement from it.
932 * If \a theStartLCS is NULL, displacement
933 * will be performed from global CS.
934 * If \a theObject itself is used as \a theStartLCS,
935 * its location will be changed to \a theEndLCS.
936 * \param theEndLCS Coordinate system to perform displacement to it.
937 * \return New GEOM_Object, containing the displaced shape.
939 GEOM_Object PositionShapeCopy (in GEOM_Object theObject,
940 in GEOM_Object theStartLCS,
941 in GEOM_Object theEndLCS);
944 * Modify the Location of the given object by Path,
945 * \param theObject The object to be displaced.
946 * \param thePath Wire or Edge along that the object will be translated.
947 * \param theDistance progress of Path (0 = actual location, 1 = end of path location).
948 * \param theCopy is a true or false parameter. true is to create a copy, false to move the object.
949 * \param theCopy is a true or false parameter. true is to reverse direction, false is to move normal direction.
950 * \return New GEOM_Object, containing the displaced shape.
953 GEOM_Object PositionAlongPath (in GEOM_Object theObject,
954 in GEOM_Object thePath,
955 in double theDistance,
957 in boolean theReverse);
960 * Recompute the shape from its arguments.
961 * \param theObject The object to be recomputed.
964 GEOM_Object RecomputeObject (in GEOM_Object theObject);
968 * GEOM_I3DPrimOperations: Interface for 3D primitives creation
969 * Box, Cylinder, Cone, Sphere, Prism (extrusion),
970 * Pipe (extrusion along contour), Revolution, Solid (from shell).
972 interface GEOM_I3DPrimOperations : GEOM_IOperations
975 * Create a box with specified dimensions along the coordinate axes
976 * and with edges, parallel to the coordinate axes.
977 * Center of the box will be at point (DX/2, DY/2, DZ/2).
978 * \param theDX Length of Box edges, parallel to OX axis.
979 * \param theDY Length of Box edges, parallel to OY axis.
980 * \param theDZ Length of Box edges, parallel to OZ axis.
981 * \return New GEOM_Object, containing the created box.
983 GEOM_Object MakeBoxDXDYDZ (in double theDX, in double theDY, in double theDZ);
986 * Create a box with two specified opposite vertices,
987 * and with edges, parallel to the coordinate axes
988 * \param thePnt1 First of two opposite vertices.
989 * \param thePnt2 Second of two opposite vertices.
990 * \return New GEOM_Object, containing the created box.
992 GEOM_Object MakeBoxTwoPnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
995 * Create a face specified dimensions along OX-OY coordinate axes,
996 * with edges parallel to the coordinate axes.
997 * Center of the face will be at point (0, 0, 0).
998 * \param theH Height of the Face.
999 * \param theW Width of the Face.
1000 * \param theOrientation Orientation belong axis OXY OYZ OZX
1001 * \return New GEOM_Object, containing the created face.
1003 GEOM_Object MakeFaceHW (in double theH, in double theW, in short theOrientation);
1005 * Create a face by normale vector or edge and two specified sizes,
1006 * vertical (H) and horisontal (W).
1007 * \param theVec defines plane.
1008 * \param theH vertical size (height).
1009 * \param theW horisontal size (width).
1010 * \return New GEOM_Object, containing the created face.
1012 GEOM_Object MakeFaceObjHW (in GEOM_Object theObj, in double theH, in double theW);
1014 * Create a Disk (circular face) with given center, normal vector and radius.
1015 * \param thePnt disk center.
1016 * \param theVec Vector, normal to the plane of the disk.
1017 * \param theR Disk radius.
1018 * \return New GEOM_Object, containing the created disk.
1020 GEOM_Object MakeDiskPntVecR (in GEOM_Object thePnt,
1021 in GEOM_Object theVec,
1024 * Create a disk (circular face), passing through three given points
1025 * \param thePnt1, thePnt2, thePnt3 Points, defining the disk.
1026 * \return New GEOM_Object, containing the created disk.
1028 GEOM_Object MakeDiskThreePnt (in GEOM_Object thePnt1,
1029 in GEOM_Object thePnt2,
1030 in GEOM_Object thePnt3);
1033 * Create a disk specified dimensions along OX-OY coordinate axes,
1034 * Center of the disk at point (0, 0, 0).
1035 * \param theR of the Disk.
1036 * \param theOrientation Orientation belong axis OXY OYZ OZX
1037 * \return New GEOM_Object, containing the created disk.
1039 GEOM_Object MakeDiskR (in double theR, in short theOrientation);
1042 * Create a cylinder with given radius and height at
1043 * the origin of coordinate system. Axis of the cylinder
1044 * will be collinear to the OZ axis of the coordinate system.
1045 * \param theR Cylinder radius.
1046 * \param theH Cylinder height.
1047 * \return New GEOM_Object, containing the created cylinder.
1049 GEOM_Object MakeCylinderRH (in double theR, in double theH);
1052 * Create a cylinder with given base point, axis, radius and height.
1053 * \param thePnt Central point of cylinder base.
1054 * \param theAxis Cylinder axis.
1055 * \param theR Cylinder radius.
1056 * \param theH Cylinder height.
1057 * \return New GEOM_Object, containing the created cylinder.
1059 GEOM_Object MakeCylinderPntVecRH (in GEOM_Object thePnt,
1060 in GEOM_Object theAxis,
1065 * Create a cone with given height and radiuses at
1066 * the origin of coordinate system. Axis of the cone will
1067 * be collinear to the OZ axis of the coordinate system.
1068 * \param theR1 Radius of the first cone base.
1069 * \param theR2 Radius of the second cone base.
1070 * \note If both radiuses are non-zero, the cone will be truncated.
1071 * \note If the radiuses are equal, a cylinder will be created instead.
1072 * \param theH Cone height.
1073 * \return New GEOM_Object, containing the created cone.
1075 GEOM_Object MakeConeR1R2H (in double theR1, in double theR2, in double theH);
1078 * Create a cone with given base point, axis, height and radiuses.
1079 * \param thePnt Central point of the first cone base.
1080 * \param theAxis Cone axis.
1081 * \param theR1 Radius of the first cone base.
1082 * \param theR2 Radius of the second cone base.
1083 * \note If both radiuses are non-zero, the cone will be truncated.
1084 * \note If the radiuses are equal, a cylinder will be created instead.
1085 * \param theH Cone height.
1086 * \return New GEOM_Object, containing the created cone.
1088 GEOM_Object MakeConePntVecR1R2H (in GEOM_Object thePnt,
1089 in GEOM_Object theAxis,
1095 * Create a torus with given radiuses at the origin of coordinate system.
1096 * \param theRMajor Torus major radius.
1097 * \param theRMinor Torus minor radius.
1098 * \return New GEOM_Object, containing the created torus.
1100 GEOM_Object MakeTorusRR (in double theRMajor,
1101 in double theRMinor);
1104 * Create a torus with given center, normal vector and radiuses.
1105 * \param thePnt Torus central point.
1106 * \param theVec Torus axis of symmetry.
1107 * \param theRMajor Torus major radius.
1108 * \param theRMinor Torus minor radius.
1109 * \return New GEOM_Object, containing the created torus.
1111 GEOM_Object MakeTorusPntVecRR (in GEOM_Object thePnt,
1112 in GEOM_Object theVec,
1113 in double theRMajor,
1114 in double theRMinor);
1117 * Create a sphere with given radius at the origin of coordinate system.
1118 * \param theR Sphere radius.
1119 * \return New GEOM_Object, containing the created sphere.
1121 GEOM_Object MakeSphereR (in double theR);
1124 * Create a sphere with given center and radius.
1125 * \param thePnt Sphere center.
1126 * \param theR Sphere radius.
1127 * \return New GEOM_Object, containing the created .
1129 GEOM_Object MakeSpherePntR (in GEOM_Object thePnt, in double theR);
1132 * Create a shape by extrusion of the base shape along the vector,
1133 * i.e. all the space, transfixed by the base shape during its translation
1134 * along the vector on the given distance.
1135 * \param theBase Base shape to be extruded.
1136 * \param theVec Direction of extrusion.
1137 * \param theH Prism dimension along theVec.
1138 * \return New GEOM_Object, containing the created prism.
1140 GEOM_Object MakePrismVecH (in GEOM_Object theBase,
1141 in GEOM_Object theVec,
1143 /* The Same Prism but in 2 directions (forward&backward) */
1144 GEOM_Object MakePrismVecH2Ways (in GEOM_Object theBase,
1145 in GEOM_Object theVec,
1149 * Create a shape by extrusion of the base shape along a vector, defined by two points.
1150 * \param theBase Base shape to be extruded.
1151 * \param thePoint1 First end of extrusion vector.
1152 * \param thePoint2 Second end of extrusion vector.
1153 * \return New GEOM_Object, containing the created prism.
1155 GEOM_Object MakePrismTwoPnt (in GEOM_Object theBase,
1156 in GEOM_Object thePoint1,
1157 in GEOM_Object thePoint2);
1158 /* The same prism but in two directions forward&backward */
1159 GEOM_Object MakePrismTwoPnt2Ways (in GEOM_Object theBase,
1160 in GEOM_Object thePoint1,
1161 in GEOM_Object thePoint2);
1164 * Create a shape by extrusion of the base shape along a vector, defined by DX DY DZ.
1165 * \param theBase Base shape to be extruded.
1166 * \param DX, DY, DZ end of extrusion vector.
1167 * \return New GEOM_Object, containing the created prism.
1169 GEOM_Object MakePrismDXDYDZ (in GEOM_Object theBase,
1170 in double theDX, in double theDY, in double theDZ);
1171 /* The same prism but in two directions forward&backward */
1172 GEOM_Object MakePrismDXDYDZ2Ways (in GEOM_Object theBase,
1173 in double theDX, in double theDY, in double theDZ);
1176 * Create a shape by extrusion of the base shape along
1177 * the path shape. The path shape can be a wire or an edge.
1178 * \param theBase Base shape to be extruded.
1179 * \param thePath Path shape to extrude the base shape along it.
1180 * \return New GEOM_Object, containing the created pipe.
1182 GEOM_Object MakePipe (in GEOM_Object theBase, in GEOM_Object thePath);
1185 * Create a shape by revolution of the base shape around the axis
1186 * on the given angle, i.e. all the space, transfixed by the base
1187 * shape during its rotation around the axis on the given angle.
1188 * \param theBase Base shape to be rotated.
1189 * \param theAxis Rotation axis.
1190 * \param theAngle Rotation angle in radians.
1191 * \return New GEOM_Object, containing the created revolution.
1193 GEOM_Object MakeRevolutionAxisAngle (in GEOM_Object theBase,
1194 in GEOM_Object theAxis,
1195 in double theAngle);
1196 /* The Same Revolution but in both ways forward&backward */
1197 GEOM_Object MakeRevolutionAxisAngle2Ways (in GEOM_Object theBase,
1198 in GEOM_Object theAxis,
1199 in double theAngle);
1202 * Create a filling from the given compound of contours.
1203 * \param theMinDeg a minimal degree of BSpline surface to create
1204 * \param theMaxDeg a maximal degree of BSpline surface to create
1205 * \param theTol2D a 2d tolerance to be reached
1206 * \param theTol3D a 3d tolerance to be reached
1207 * \param theNbIter a number of iteration of approximation algorithm
1208 * \param theMethod Kind of method to perform filling operation.
1209 * \return New GEOM_Object, containing the created filling surface.
1211 GEOM_Object MakeFilling (in GEOM_Object theShape,
1212 in long theMinDeg, in long theMaxDeg,
1213 in double theTol2D, in double theTol3D,
1215 in filling_oper_method theMethod,
1216 in boolean theApprox);
1219 * Create a shell or solid passing through set of sections.Sections should be wires,edges or vertices.
1220 * \param theSeqSections - set of specified sections.
1221 * \param theModeSolid - mode defining building solid or shell
1222 * \param thePreci - precision 3D used for smoothing by default 1.e-6
1223 * \param theRuled - mode defining type of the result surfaces (ruled or smoothed).
1224 * \return New GEOM_Object, containing the created shell or solid.
1226 GEOM_Object MakeThruSections(in ListOfGO theSeqSections,
1227 in boolean theModeSolid,
1229 in boolean theRuled);
1232 * Create a shape by extrusion of the profile shape along
1233 * the path shape. The path shape can be a wire or an edge.
1234 * the several profiles can be specified in the several locations of path.
1235 * \param theSeqBases - list of Bases shape to be extruded.
1236 * \param theLocations - list of locations on the path corresponding
1237 * specified list of the Bases shapes. Number of locations
1238 * should be equal to number of bases or list of locations can be empty.
1239 * \param thePath - Path shape to extrude the base shape along it.
1240 * \param theWithContact - the mode defining that the section is translated to be in
1241 * contact with the spine.
1242 * \param - WithCorrection - defining that the section is rotated to be
1243 * orthogonal to the spine tangent in the correspondent point
1244 * \return New GEOM_Object, containing the created pipe.
1246 GEOM_Object MakePipeWithDifferentSections (in ListOfGO theSeqBases,
1247 in ListOfGO theLocations,
1248 in GEOM_Object thePath,
1249 in boolean theWithContact ,
1250 in boolean theWithCorrection );
1253 * Create a shape by extrusion of the profile shape along
1254 * the path shape. The path shape can be a shell or a face.
1255 * the several profiles can be specified in the several locations of path.
1256 * \param theSeqBases - list of Bases shape to be extruded.
1257 * \param theSeqSubBases - list of corresponding subshapes of section shapes.
1258 * \param theLocations - list of locations on the path corresponding
1259 * specified list of the Bases shapes. Number of locations
1260 * should be equal to number of bases.
1261 * \param thePath - Path shape to extrude the base shape along it.
1262 * \param theWithContact - the mode defining that the section is translated to be in
1263 * contact with the spine.
1264 * \param - WithCorrection - defining that the section is rotated to be
1265 * orthogonal to the spine tangent in the correspondent point
1266 * \return New GEOM_Object, containing the created pipe.
1268 GEOM_Object MakePipeWithShellSections (in ListOfGO theSeqBases,
1269 in ListOfGO theSeqSubBases,
1270 in ListOfGO theLocations,
1271 in GEOM_Object thePath,
1272 in boolean theWithContact ,
1273 in boolean theWithCorrection );
1276 * Create solids between given sections
1277 * \param theSeqBases - list of sections (shell or face).
1278 * \param theLocations - list of corresponding vertexes
1279 * \return New GEOM_Object, containing the created solids.
1281 GEOM_Object MakePipeShellsWithoutPath (in ListOfGO theSeqBases,
1282 in ListOfGO theLocations);
1285 * Create a shape by extrusion of the base shape along
1286 * the path shape with constant bi-normal direction along the given vector.
1287 * The path shape can be a wire or an edge.
1288 * \param theBase Base shape to be extruded.
1289 * \param thePath Path shape to extrude the base shape along it.
1290 * \param theVec Vector defines a constant binormal direction to keep the
1291 * same angle beetween the Direction and the sections
1292 * along the sweep surface.
1293 * \return New GEOM_Object, containing the created pipe.
1295 GEOM_Object MakePipeBiNormalAlongVector (in GEOM_Object theBase,
1296 in GEOM_Object thePath,
1297 in GEOM_Object theVec);
1302 * GEOM_IShapesOperations: Interface for Shapes creation:
1303 * Edge from two points, Wire from edges, Face from wire,
1304 * Shell from faces, Solid from shells, Compound from shapes
1306 interface GEOM_IShapesOperations : GEOM_IOperations
1309 * Create a linear edge with specified ends.
1310 * \param thePnt1 Point for the first end of edge.
1311 * \param thePnt2 Point for the second end of edge.
1312 * \return New GEOM_Object, containing the created edge.
1314 GEOM_Object MakeEdge (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
1317 * Create an edge from specified wire.
1318 * \param theWire source Wire.
1319 * \param theLinearTolerance linear tolerance value
1320 * \param theAngularTolerance angular tolerance value
1321 * \return New GEOM_Object, containing the created edge.
1323 GEOM_Object MakeEdgeWire (in GEOM_Object theWire,
1324 in double theLinearTolerance,
1325 in double theAngularTolerance);
1328 * Create a wire from the set of edges and wires.
1329 * \param theEdgesAndWires List of edge and/or wires.
1330 * \param theTolerance Maximum distance between vertices, that will be merged.
1331 * Values less than 1e-07 are equivalent to 1e-07 (Precision::Confusion()).
1332 * \return New GEOM_Object, containing the created wire.
1334 GEOM_Object MakeWire (in ListOfGO theEdgesAndWires,
1335 in double theTolerance);
1338 * Create a face on the given wire.
1339 * \param theWire closed Wire or Edge to build the face on.
1340 * \param isPlanarWanted If TRUE, only planar face will be built.
1341 * If impossible, NULL object will be returned.
1342 * \return New GEOM_Object, containing the created face.
1344 GEOM_Object MakeFace (in GEOM_Object theWire, in boolean isPlanarWanted);
1347 * Create a face on the given wires set.
1348 * \param theWires List of closed wires or edges to build the face on.
1349 * \param isPlanarWanted If TRUE, only planar face will be built.
1350 * If impossible, NULL object will be returned.
1351 * \return New GEOM_Object, containing the created face.
1353 GEOM_Object MakeFaceWires (in ListOfGO theWires, in boolean isPlanarWanted);
1356 * Create a shell from the set of faces and shells.
1357 * \param theFacesAndShells List of faces and/or shells.
1358 * \return New GEOM_Object, containing the created shell.
1360 GEOM_Object MakeShell (in ListOfGO theFacesAndShells);
1363 * Create a solid, bounded by the given shell.
1364 * \param theShell Bounding shell.
1365 * \return New GEOM_Object, containing the created solid.
1367 GEOM_Object MakeSolidShell (in GEOM_Object theShell);
1370 * Create a solid, bounded by the given shells.
1371 * \param theShells Bounding shells.
1372 * \return New GEOM_Object, containing the created solid.
1374 GEOM_Object MakeSolidShells (in ListOfGO theShells);
1377 * Create a compound of the given shapes.
1378 * \param theShapes List of shapes to put in compound.
1379 * \return New GEOM_Object, containing the created compound.
1381 GEOM_Object MakeCompound (in ListOfGO theShapes);
1384 * Replace coincident faces in theShape by one face.
1385 * \param theShape Initial shape.
1386 * \param theTolerance Maximum distance between faces, which can be considered as coincident.
1387 * \param doKeepNonSolids If FALSE, only solids will present in the result, otherwise all initial shapes.
1388 * \return New GEOM_Object, containing a copy of theShape without coincident faces.
1390 GEOM_Object MakeGlueFaces (in GEOM_Object theShape, in double theTolerance, in boolean doKeepNonSolids);
1393 * Find coincident faces in theShape for possible gluing.
1394 * \param theShape Initial shape.
1395 * \param theTolerance Maximum distance between faces, which can be considered as coincident.
1398 ListOfGO GetGlueFaces (in GEOM_Object theShape, in double theTolerance);
1401 * Replace coincident faces in theShape by one face
1402 * in compliance with given list of faces
1403 * \param theShape Initial shape.
1404 * \param theTolerance Maximum distance between faces, which can be considered as coincident.
1405 * \param theFaces List of faces for gluing.
1406 * \param doKeepNonSolids If FALSE, only solids will present in the result, otherwise all initial shapes.
1407 * \return New GEOM_Object, containing a copy of theShape without some faces.
1409 GEOM_Object MakeGlueFacesByList (in GEOM_Object theShape, in double theTolerance,
1410 in ListOfGO theFaces, in boolean doKeepNonSolids);
1413 * Get all sub-shapes and groups of \a theShape,
1414 * that were created already by any other methods.
1415 * \param theShape Any shape.
1416 * \param theGroupsOnly If this parameter is TRUE, only groups will be
1417 * returned, else all found sub-shapes and groups.
1418 * \return List of existing sub-objects of \a theShape.
1420 ListOfGO GetExistingSubObjects (in GEOM_Object theShape,
1421 in boolean theGroupsOnly);
1424 * Explode a shape on subshapes of a given type.
1425 * \param theShape Shape to be exploded.
1426 * \param theShapeType Type of sub-shapes to be retrieved.
1427 * \param isSorted If this parameter is TRUE, sub-shapes will be
1428 * sorted by coordinates of their gravity centers.
1429 * \return List of sub-shapes of type theShapeType, contained in theShape.
1431 ListOfGO MakeExplode (in GEOM_Object theShape,
1432 in long theShapeType,
1433 in boolean isSorted);
1436 * Explode a shape on subshapes of a given type.
1437 * Does the same, as the above method, but returns IDs of sub-shapes,
1438 * not GEOM_Objects. It works faster.
1439 * \param theShape Shape to be exploded.
1440 * \param theShapeType Type of sub-shapes to be retrieved.
1441 * \param isSorted If this parameter is TRUE, sub-shapes will be
1442 * sorted by coordinates of their gravity centers.
1443 * \return List of IDs of sub-shapes of type theShapeType, contained in theShape.
1445 ListOfLong SubShapeAllIDs (in GEOM_Object theShape,
1446 in long theShapeType,
1447 in boolean isSorted);
1450 * Get a sub shape defined by its unique ID inside \a theMainShape
1451 * \note The sub shape GEOM_Objects can has ONLY ONE function.
1452 * Don't try to apply modification operations on them.
1454 GEOM_Object GetSubShape (in GEOM_Object theMainShape,
1458 * Get global index of \a theSubShape in \a theMainShape.
1459 * \param theMainShape Main shape.
1460 * \param theSubShape Sub-shape of the main shape.
1461 * \return global index of \a theSubShape in \a theMainShape.
1463 long GetSubShapeIndex (in GEOM_Object theMainShape, in GEOM_Object theSubShape);
1466 * Get index of \a theSubShape in \a theMainShape, unique among sub-shapes of the same type.
1467 * Together with method <VAR>GetShapeTypeString()</VAR> it can be used
1468 * to generate automatic names for sub-shapes, when publishing them in a study.
1469 * \param theMainShape Main shape.
1470 * \param theSubShape Sub-shape of the main shape.
1471 * \return index of \a theSubShape in a list of all sub-shapes of \a theMainShape of the same type.
1473 long GetTopologyIndex (in GEOM_Object theMainShape, in GEOM_Object theSubShape);
1476 * \brief Get name of type of \a theShape.
1478 * Use wide type notation, taking into consideration both topology and geometry of the shape.
1479 * Together with method <VAR>GetTopologyIndex()</VAR> it can be used
1480 * to generate automatic names for sub-shapes, when publishing them in a study.
1481 * \param theShape The shape to get a type of.
1482 * \return String, containing a type name of \a theShape.
1484 string GetShapeTypeString (in GEOM_Object theShape);
1487 * Count number of faces in the given shape.
1488 * \param theShape Shape to count faces in.
1489 * \return Number of faces in the given shape.
1491 long NumberOfFaces (in GEOM_Object theShape);
1494 * Count number of edges in the given shape.
1495 * \param theShape Shape to count edges in.
1496 * \return Number of edges in theShape.
1498 long NumberOfEdges (in GEOM_Object theShape);
1501 * Count number of subshapes of type \a theShapeType in the given shape.
1502 * \param theShape Shape to count subshapes in.
1503 * \param theShapeType The type of subshapes to count.
1504 * \return Number of subshapes of type \a theShapeType in \a theShape.
1506 long NumberOfSubShapes (in GEOM_Object theShape,
1507 in long theShapeType);
1510 * Reverses an orientation the given shape.
1511 * \param theShape Shape to be reversed.
1512 * \return The reversed copy of theShape.
1514 GEOM_Object ChangeOrientation (in GEOM_Object theShape);
1517 * Retrieve all free faces from the given shape.
1518 * Free face is a face, which is not shared between two shells of the shape.
1519 * \param theShape Shape to find free faces in.
1520 * \return List of IDs of all free faces, contained in theShape.
1522 ListOfLong GetFreeFacesIDs (in GEOM_Object theShape);
1525 * Get all sub-shapes of theShape1 of the given type, shared with theShape2.
1526 * \param theShape1 Shape to find sub-shapes in.
1527 * \param theShape2 Shape to find shared sub-shapes with.
1528 * \param theShapeType Type of sub-shapes to be retrieved.
1529 * \return List of sub-shapes of theShape1, shared with theShape2.
1531 ListOfGO GetSharedShapes (in GEOM_Object theShape1,
1532 in GEOM_Object theShape2,
1533 in long theShapeType);
1536 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1537 * the specified plane by the certain way, defined through \a theState parameter.
1538 * \param theShape Shape to find sub-shapes of.
1539 * \param theShapeType Type of sub-shapes to be retrieved.
1540 * \param theAx1 Vector (or line, or linear edge), specifying normal
1541 * direction and location of the plane to find shapes on.
1542 * \param theState The state of the subshapes to find.
1543 * \return List of all found sub-shapes.
1545 ListOfGO GetShapesOnPlane (in GEOM_Object theShape,
1546 in long theShapeType,
1547 in GEOM_Object theAx1,
1548 in shape_state theState);
1550 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1551 * the specified plane by the certain way, defined through \a theState parameter.
1552 * \param theShape Shape to find sub-shapes of.
1553 * \param theShapeType Type of sub-shapes to be retrieved.
1554 * \param theAx1 Vector (or line, or linear edge), specifying normal
1555 * direction of the plane to find shapes on.
1556 * \param thePnt Point specifying location of the plane to find shapes on.
1557 * \param theState The state of the subshapes to find.
1558 * \return List of all found sub-shapes.
1560 ListOfGO GetShapesOnPlaneWithLocation (in GEOM_Object theShape,
1561 in long theShapeType,
1562 in GEOM_Object theAx1,
1563 in GEOM_Object thePnt,
1564 in shape_state theState);
1569 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1570 * the specified cylinder by the certain way, defined through \a theState parameter.
1571 * \param theShape Shape to find sub-shapes of.
1572 * \param theShapeType Type of sub-shapes to be retrieved.
1573 * \param theAxis Vector (or line, or linear edge), specifying
1574 * axis of the cylinder to find shapes on.
1575 * \param theRadius Radius of the cylinder to find shapes on.
1576 * \param theState The state of the subshapes to find.
1577 * \return List of all found sub-shapes.
1579 ListOfGO GetShapesOnCylinder (in GEOM_Object theShape,
1580 in long theShapeType,
1581 in GEOM_Object theAxis,
1582 in double theRadius,
1583 in shape_state theState);
1586 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1587 * the specified cylinder by the certain way, defined through \a theState parameter.
1588 * \param theShape Shape to find sub-shapes of.
1589 * \param theShapeType Type of sub-shapes to be retrieved.
1590 * \param theAxis Vector (or line, or linear edge), specifying
1591 * axis of the cylinder to find shapes on.
1592 * \param thePnt Point specifying location of the bottom of the cylinder.
1593 * \param theRadius Radius of the cylinder to find shapes on.
1594 * \param theState The state of the subshapes to find.
1595 * \return List of all found sub-shapes.
1597 ListOfGO GetShapesOnCylinderWithLocation (in GEOM_Object theShape,
1598 in long theShapeType,
1599 in GEOM_Object theAxis,
1600 in GEOM_Object thePnt,
1601 in double theRadius,
1602 in shape_state theState);
1605 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1606 * the specified sphere by the certain way, defined through \a theState parameter.
1607 * \param theShape Shape to find sub-shapes of.
1608 * \param theShapeType Type of sub-shapes to be retrieved.
1609 * \param theCenter Point, specifying center of the sphere to find shapes on.
1610 * \param theRadius Radius of the sphere to find shapes on.
1611 * \param theState The state of the subshapes to find.
1612 * \return List of all found sub-shapes.
1614 ListOfGO GetShapesOnSphere (in GEOM_Object theShape,
1615 in long theShapeType,
1616 in GEOM_Object theCenter,
1617 in double theRadius,
1618 in shape_state theState);
1621 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1622 * the specified quadrangle by the certain way, defined through \a theState parameter.
1623 * \param theShape Shape to find sub-shapes of.
1624 * \param theShapeType Type of sub-shapes to be retrieved.
1625 * \param theTopLeftPoint Top left quadrangle corner
1626 * \param theTopRigthPoint Top right quadrangle corner
1627 * \param theBottomLeftPoint Bottom left quadrangle corner
1628 * \param theBottomRigthPoint Bottom right quadrangle corner
1629 * \param theState The state of the subshapes to find.
1630 * \return List of all found sub-shapes.
1632 ListOfGO GetShapesOnQuadrangle (in GEOM_Object theShape,
1633 in long theShapeType,
1634 in GEOM_Object theTopLeftPoint,
1635 in GEOM_Object theTopRigthPoint,
1636 in GEOM_Object theBottomLeftPoint,
1637 in GEOM_Object theBottomRigthPoint,
1638 in shape_state theState);
1641 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1642 * the specified plane by the certain way, defined through \a theState parameter.
1643 * \param theShape Shape to find sub-shapes of.
1644 * \param theShapeType Type of sub-shapes to be retrieved.
1645 * \param theAx1 Vector (or line, or linear edge), specifying normal
1646 * direction and location of the plane to find shapes on.
1647 * \param theState The state of the subshapes to find.
1648 * \return List of IDs of all found sub-shapes.
1650 ListOfLong GetShapesOnPlaneIDs (in GEOM_Object theShape,
1651 in long theShapeType,
1652 in GEOM_Object theAx1,
1653 in shape_state theState);
1656 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1657 * the specified plane by the certain way, defined through \a theState parameter.
1658 * \param theShape Shape to find sub-shapes of.
1659 * \param theShapeType Type of sub-shapes to be retrieved.
1660 * \param theAx1 Vector (or line, or linear edge), specifying normal
1661 * direction of the plane to find shapes on.
1662 * \param thePnt Point specifying location of the plane to find shapes on.
1663 * \param theState The state of the subshapes to find.
1664 * \return List of IDs of all found sub-shapes.
1666 ListOfLong GetShapesOnPlaneWithLocationIDs (in GEOM_Object theShape,
1667 in long theShapeType,
1668 in GEOM_Object theAx1,
1669 in GEOM_Object thePnt,
1670 in shape_state theState);
1673 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1674 * the specified cylinder by the certain way, defined through \a theState parameter.
1675 * \param theShape Shape to find sub-shapes of.
1676 * \param theShapeType Type of sub-shapes to be retrieved.
1677 * \param theAxis Vector (or line, or linear edge), specifying
1678 * axis of the cylinder to find shapes on.
1679 * \param theRadius Radius of the cylinder to find shapes on.
1680 * \param theState The state of the subshapes to find.
1681 * \return List of IDs of all found sub-shapes.
1683 ListOfLong GetShapesOnCylinderIDs (in GEOM_Object theShape,
1684 in long theShapeType,
1685 in GEOM_Object theAxis,
1686 in double theRadius,
1687 in shape_state theState);
1690 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1691 * the specified cylinder by the certain way, defined through \a theState parameter.
1692 * \param theShape Shape to find sub-shapes of.
1693 * \param theShapeType Type of sub-shapes to be retrieved.
1694 * \param theAxis Vector (or line, or linear edge), specifying
1695 * axis of the cylinder to find shapes on.
1696 * \param thePnt Point specifying location of the bottom of the cylinder.
1697 * \param theRadius Radius of the cylinder to find shapes on.
1698 * \param theState The state of the subshapes to find.
1699 * \return List of IDs all found sub-shapes.
1701 ListOfLong GetShapesOnCylinderWithLocationIDs (in GEOM_Object theShape,
1702 in long theShapeType,
1703 in GEOM_Object theAxis,
1704 in GEOM_Object thePnt,
1705 in double theRadius,
1706 in shape_state theState);
1709 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1710 * the specified sphere by the certain way, defined through \a theState parameter.
1711 * \param theShape Shape to find sub-shapes of.
1712 * \param theShapeType Type of sub-shapes to be retrieved.
1713 * \param theCenter Point, specifying center of the sphere to find shapes on.
1714 * \param theRadius Radius of the sphere to find shapes on.
1715 * \param theState The state of the subshapes to find.
1716 * \return List of IDs of all found sub-shapes.
1718 ListOfLong GetShapesOnSphereIDs (in GEOM_Object theShape,
1719 in long theShapeType,
1720 in GEOM_Object theCenter,
1721 in double theRadius,
1722 in shape_state theState);
1725 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1726 * the specified quadrangle by the certain way, defined through \a theState parameter.
1727 * \param theShape Shape to find sub-shapes of.
1728 * \param theShapeType Type of sub-shapes to be retrieved.
1729 * \param theTopLeftPoint Top left quadrangle corner
1730 * \param theTopRigthPoint Top right quadrangle corner
1731 * \param theBottomLeftPoint Bottom left quadrangle corner
1732 * \param theBottomRigthPoint Bottom right quadrangle corner
1733 * \param theState The state of the subshapes to find.
1734 * \return List of IDs of all found sub-shapes.
1736 ListOfLong GetShapesOnQuadrangleIDs (in GEOM_Object theShape,
1737 in long theShapeType,
1738 in GEOM_Object theTopLeftPoint,
1739 in GEOM_Object theTopRigthPoint,
1740 in GEOM_Object theBottomLeftPoint,
1741 in GEOM_Object theBottomRigthPoint,
1742 in shape_state theState);
1745 * \brief Find subshapes complying with given status
1746 * \param theBox - the box to check state of subshapes against
1747 * \param theShape - the shape to explore
1748 * \param theShapeType - type of subshape of theShape
1749 * \param theState - required state
1750 * \return List of IDs of all found sub-shapes.
1752 ListOfLong GetShapesOnBoxIDs (in GEOM_Object theBox,
1753 in GEOM_Object theShape,
1754 in long theShapeType,
1755 in shape_state theState);
1758 * \brief Find subshapes complying with given status
1759 * \param theBox - the box to check state of subshapes against
1760 * \param theShape - the shape to explore
1761 * \param theShapeType - type of subshape of theShape
1762 * \param theState - required state
1763 * \return List of all found sub-shapes.
1765 ListOfGO GetShapesOnBox (in GEOM_Object theBox,
1766 in GEOM_Object theShape,
1767 in long theShapeType,
1768 in shape_state theState);
1771 * \brief Find subshapes complying with given status
1772 * \param theCheckShape - the shape to check state of subshapes against. It must be a solid.
1773 * \param theShape - the shape to explore
1774 * \param theShapeType - type of subshape of theShape
1775 * \param theState - required state
1776 * \return List of IDs of all found sub-shapes.
1778 ListOfLong GetShapesOnShapeIDs (in GEOM_Object theCheckShape,
1779 in GEOM_Object theShape,
1780 in short theShapeType,
1781 in shape_state theState);
1784 * \brief Find subshapes complying with given status
1785 * \param theCheckShape - the shape to check state of subshapes against. It must be a solid.
1786 * \param theShape - the shape to explore
1787 * \param theShapeType - type of subshape of theShape
1788 * \param theState - required state
1789 * \return List of all found sub-shapes.
1791 ListOfGO GetShapesOnShape (in GEOM_Object theCheckShape,
1792 in GEOM_Object theShape,
1793 in short theShapeType,
1794 in shape_state theState);
1797 * \brief Find subshapes complying with given status
1798 * \param theCheckShape - the shape to check state of subshapes against. It must be a solid.
1799 * \param theShape - the shape to explore
1800 * \param theShapeType - type of subshape of theShape
1801 * \param theState - required state
1802 * \return compound includes all found sub-shapes.
1804 GEOM_Object GetShapesOnShapeAsCompound (in GEOM_Object theCheckShape,
1805 in GEOM_Object theShape,
1806 in short theShapeType,
1807 in shape_state theState);
1810 * Get sub-shape(s) of \a theShapeWhere, which are
1811 * coincident with \a theShapeWhat or could be a part of it.
1812 * \param theShapeWhere Shape to find sub-shapes of.
1813 * \param theShapeWhat Shape, specifying what to find.
1814 * \return Group of all found sub-shapes or a single found sub-shape.
1816 GEOM_Object GetInPlace (in GEOM_Object theShapeWhere,
1817 in GEOM_Object theShapeWhat);
1820 * Get sub-shape(s) of \a theShapeWhere, which are
1821 * coincident with \a theShapeWhat or could be a part of it.
1823 * Implementation of this method is based on a saved history of an operation,
1824 * produced \a theShapeWhere. The \a theShapeWhat must be among this operation's
1825 * arguments (an argument shape or a sub-shape of an argument shape).
1826 * The operation could be the Partition or one of boolean operations,
1827 * performed on simple shapes (not on compounds).
1829 * \param theShapeWhere Shape to find sub-shapes of.
1830 * \param theShapeWhat Shape, specifying what to find.
1831 * \return Group of all found sub-shapes or a single found sub-shape.
1833 GEOM_Object GetInPlaceByHistory (in GEOM_Object theShapeWhere,
1834 in GEOM_Object theShapeWhat);
1837 * Get sub-shape of theShapeWhere, which are
1838 * coincident with \a theShapeWhat that can either SOLID, FACE, EDGE or VERTEX.
1839 * \param theShapeWhere Shape to find sub-shapes of.
1840 * \param theShapeWhat Shape, specifying what to find.
1841 * \return found sub-shape.
1843 GEOM_Object GetSame (in GEOM_Object theShapeWhere,
1844 in GEOM_Object theShapeWhat);
1848 * GEOM_IBlocksOperations: Interface for Blocks construction
1849 * Face from points or edges, Block from faces,
1850 * Blocks multi-translation and multi-rotation
1852 interface GEOM_IBlocksOperations : GEOM_IOperations
1855 * Creation of blocks
1859 * Create a quadrangle face from four edges. Order of Edges is not
1860 * important. It is not necessary that edges share the same vertex.
1861 * \param theEdge1,theEdge2,theEdge3,theEdge4 Edges for the face bound.
1862 * \return New GEOM_Object, containing the created face.
1864 GEOM_Object MakeQuad (in GEOM_Object theEdge1,
1865 in GEOM_Object theEdge2,
1866 in GEOM_Object theEdge3,
1867 in GEOM_Object theEdge4);
1870 * Create a quadrangle face on two edges.
1871 * The missing edges will be built by creating the shortest ones.
1872 * \param theEdge1,theEdge2 Two opposite edges for the face.
1873 * \return New GEOM_Object, containing the created face.
1875 GEOM_Object MakeQuad2Edges (in GEOM_Object theEdge1,
1876 in GEOM_Object theEdge2);
1879 * Create a quadrangle face with specified corners.
1880 * The missing edges will be built by creating the shortest ones.
1881 * \param thePnt1,thePnt2,thePnt3,thePnt4 Corner vertices for the face.
1882 * \return New GEOM_Object, containing the created face.
1884 GEOM_Object MakeQuad4Vertices (in GEOM_Object thePnt1,
1885 in GEOM_Object thePnt2,
1886 in GEOM_Object thePnt3,
1887 in GEOM_Object thePnt4);
1890 * Create a hexahedral solid, bounded by the six given faces. Order of
1891 * faces is not important. It is not necessary that Faces share the same edge.
1892 * \param theFace1-theFace6 Faces for the hexahedral solid.
1893 * \return New GEOM_Object, containing the created solid.
1895 GEOM_Object MakeHexa (in GEOM_Object theFace1,
1896 in GEOM_Object theFace2,
1897 in GEOM_Object theFace3,
1898 in GEOM_Object theFace4,
1899 in GEOM_Object theFace5,
1900 in GEOM_Object theFace6);
1903 * Create a hexahedral solid between two given faces.
1904 * The missing faces will be built by creating the smallest ones.
1905 * \param theFace1,theFace2 Two opposite faces for the hexahedral solid.
1906 * \return New GEOM_Object, containing the created solid.
1908 GEOM_Object MakeHexa2Faces (in GEOM_Object theFace1,
1909 in GEOM_Object theFace2);
1912 * Extract elements of blocks and blocks compounds
1916 * Get a vertex, found in the given shape by its coordinates.
1917 * \param theShape Block or a compound of blocks.
1918 * \param theX,theY,theZ Coordinates of the sought vertex.
1919 * \param theEpsilon Maximum allowed distance between the resulting
1920 * vertex and point with the given coordinates.
1921 * \return New GEOM_Object, containing the found vertex.
1923 GEOM_Object GetPoint (in GEOM_Object theShape,
1927 in double theEpsilon);
1930 * Find a vertex of the given shape, which has minimal distance to the given point.
1931 * \param theShape Any shape.
1932 * \param thePoint Point, close to the desired vertex.
1933 * \return New GEOM_Object, containing the found vertex.
1935 GEOM_Object GetVertexNearPoint (in GEOM_Object theShape,
1936 in GEOM_Object thePoint);
1939 * Get an edge, found in the given shape by two given vertices.
1940 * \param theShape Block or a compound of blocks.
1941 * \param thePoint1,thePoint2 Points, close to the ends of the desired edge.
1942 * \return New GEOM_Object, containing the found edge.
1944 GEOM_Object GetEdge (in GEOM_Object theShape,
1945 in GEOM_Object thePoint1,
1946 in GEOM_Object thePoint2);
1949 * Find an edge of the given shape, which has minimal distance to the given point.
1950 * \param theShape Block or a compound of blocks.
1951 * \param thePoint Point, close to the desired edge.
1952 * \return New GEOM_Object, containing the found edge.
1954 GEOM_Object GetEdgeNearPoint (in GEOM_Object theShape,
1955 in GEOM_Object thePoint);
1958 * Returns a face, found in the given shape by four given corner vertices.
1959 * \param theShape Block or a compound of blocks.
1960 * \param thePoint1-thePoint4 Points, close to the corners of the desired face.
1961 * \return New GEOM_Object, containing the found face.
1963 GEOM_Object GetFaceByPoints (in GEOM_Object theShape,
1964 in GEOM_Object thePoint1,
1965 in GEOM_Object thePoint2,
1966 in GEOM_Object thePoint3,
1967 in GEOM_Object thePoint4);
1970 * Get a face of block, found in the given shape by two given edges.
1971 * \param theShape Block or a compound of blocks.
1972 * \param theEdge1,theEdge2 Edges, close to the edges of the desired face.
1973 * \return New GEOM_Object, containing the found face.
1975 GEOM_Object GetFaceByEdges (in GEOM_Object theShape,
1976 in GEOM_Object theEdge1,
1977 in GEOM_Object theEdge2);
1980 * Find a face, opposite to the given one in the given block.
1981 * \param theBlock Must be a hexahedral solid.
1982 * \param theFace Face of \a theBlock, opposite to the desired face.
1983 * \return New GEOM_Object, containing the found face.
1985 GEOM_Object GetOppositeFace (in GEOM_Object theBlock,
1986 in GEOM_Object theFace);
1989 * Find a face of the given shape, which has minimal distance to the given point.
1990 * \param theShape Block or a compound of blocks.
1991 * \param thePoint Point, close to the desired face.
1992 * \return New GEOM_Object, containing the found face.
1994 GEOM_Object GetFaceNearPoint (in GEOM_Object theShape,
1995 in GEOM_Object thePoint);
1998 * Find a face of block, whose outside normale has minimal angle with the given vector.
1999 * \param theShape Block or a compound of blocks.
2000 * \param theVector Vector, close to the normale of the desired face.
2001 * \return New GEOM_Object, containing the found face.
2003 GEOM_Object GetFaceByNormale (in GEOM_Object theBlock,
2004 in GEOM_Object theVector);
2007 * Find all subshapes of type \a theShapeType of the given shape,
2008 * which have minimal distance to the given point.
2009 * \param theShape Any shape.
2010 * \param thePoint Point, close to the desired shape.
2011 * \param theShapeType Defines what kind of subshapes is searched.
2012 * \param theTolerance The tolerance for distances comparison. All shapes
2013 * with distances to the given point in interval
2014 * [minimal_distance, minimal_distance + theTolerance] will be gathered.
2015 * \return New GEOM_Object, containing a group of all found shapes.
2017 GEOM_Object GetShapesNearPoint (in GEOM_Object theShape,
2018 in GEOM_Object thePoint,
2019 in long theShapeType,
2020 in double theTolerance);
2023 * Extract blocks from blocks compounds
2027 * Check, if the compound contains only specified blocks.
2028 * \param theCompound The compound to check.
2029 * \param theMinNbFaces If solid has lower number of faces, it is not a block.
2030 * \param theMaxNbFaces If solid has higher number of faces, it is not a block.
2031 * \note If theMaxNbFaces = 0, the maximum number of faces is not restricted.
2032 * \return TRUE, if the given compound contains only blocks.
2033 * \return theNbBlocks Number of specified blocks in theCompound.
2035 boolean IsCompoundOfBlocks (in GEOM_Object theCompound,
2036 in long theMinNbFaces,
2037 in long theMaxNbFaces,
2038 out long theNbBlocks);
2041 * Enumeration of Blocks Compound defects.
2045 /* Each element of the compound should be a Block */
2048 /* An element is a potential block, but has degenerated and/or seam edge(s). */
2051 /* A connection between two Blocks should be an entire face or an entire edge */
2054 /* The compound should be connexe */
2057 /* The glue between two quadrangle faces should be applied */
2062 * Description of Blocks Compound defect: type and incriminated sub-shapes.
2067 ListOfLong incriminated;
2071 * Sequence of all Blocks Compound defects.
2073 typedef sequence<BCError> BCErrors;
2076 * Check, if the compound of blocks is given.
2077 * To be considered as a compound of blocks, the
2078 * given shape must satisfy the following conditions:
2079 * - Each element of the compound should be a Block (6 faces and 12 edges).
2080 * - A connection between two Blocks should be an entire quadrangle face or an entire edge.
2081 * - The compound should be connexe.
2082 * - The glue between two quadrangle faces should be applied.
2083 * \note Single block is also accepted as a valid compound of blocks.
2084 * \param theCompound The compound to check.
2085 * \return TRUE, if the given shape is a compound of blocks.
2086 * \return theErrors Structure, containing discovered errors and incriminated sub-shapes.
2088 boolean CheckCompoundOfBlocks (in GEOM_Object theCompound,
2089 out BCErrors theErrors);
2092 * Convert sequence of Blocks Compound errors, returned by
2093 * <VAR>CheckCompoundOfBlocks()</VAR>, into string.
2094 * \param theCompound The bad compound.
2095 * \param theErrors The sequence of \a theCompound errors.
2096 * \return String, describing all the errors in form, suitable for printing.
2098 string PrintBCErrors (in GEOM_Object theCompound,
2099 in BCErrors theErrors);
2102 * Remove all seam and degenerated edges from \a theShape.
2103 * Unite faces and edges, sharing one surface.
2104 * \param theShape The compound or single solid to remove irregular edges from.
2105 * \param theOptimumNbFaces If more than zero, unite faces only for those solids,
2106 * that have more than theOptimumNbFaces faces. If zero, unite faces always,
2107 * regardsless their quantity in the solid. If negative, do not unite faces at all.
2108 * For blocks repairing recommended value is 6.
2109 * \return Improved shape.
2111 GEOM_Object RemoveExtraEdges (in GEOM_Object theShape,
2112 in long theOptimumNbFaces);
2115 * Check, if the given shape is a blocks compound.
2116 * Fix all detected errors.
2117 * \note Single block can be also fixed by this method.
2118 * \param theCompound The compound to check and improve.
2119 * \return Improved compound.
2121 GEOM_Object CheckAndImprove (in GEOM_Object theCompound);
2124 * Get all the blocks, contained in the given compound.
2125 * \param theCompound The compound to explode.
2126 * \param theMinNbFaces If solid has lower number of faces, it is not a block.
2127 * \param theMaxNbFaces If solid has higher number of faces, it is not a block.
2128 * \note If theMaxNbFaces = 0, the maximum number of faces is not restricted.
2129 * \return List of GEOM_Objects, containing the retrieved blocks.
2131 ListOfGO ExplodeCompoundOfBlocks (in GEOM_Object theCompound,
2132 in long theMinNbFaces,
2133 in long theMaxNbFaces);
2136 * Find block, containing the given point inside its volume or on boundary.
2137 * \param theCompound Compound, to find block in.
2138 * \param thePoint Point, close to the desired block. If the point lays on
2139 * boundary between some blocks, we return block with nearest center.
2140 * \return New GEOM_Object, containing the found block.
2142 GEOM_Object GetBlockNearPoint (in GEOM_Object theCompound,
2143 in GEOM_Object thePoint);
2146 * Find block, containing all the elements, passed as the parts, or maximum quantity of them.
2147 * \param theCompound Compound, to find block in.
2148 * \param theParts List of faces and/or edges and/or vertices to be parts of the found block.
2149 * \return New GEOM_Object, containing the found block.
2151 GEOM_Object GetBlockByParts (in GEOM_Object theCompound,
2152 in ListOfGO theParts);
2155 * Return all blocks, containing all the elements, passed as the parts.
2156 * \param theCompound Compound, to find blocks in.
2157 * \param theParts List of faces and/or edges and/or vertices to be parts of the found blocks.
2158 * \return List of GEOM_Objects, containing the found blocks.
2160 ListOfGO GetBlocksByParts (in GEOM_Object theCompound,
2161 in ListOfGO theParts);
2164 * Operations on blocks with gluing of result
2168 * Multi-transformate block and glue the result.
2169 * Transformation is defined so, as to superpose theDirFace1 with theDirFace2.
2170 * \param theBlock Hexahedral solid to be multi-transformed.
2171 * \param theDirFace1 First direction face global index.
2172 * \param theDirFace2 Second direction face global index.
2173 * \param theNbTimes Quantity of transformations to be done.
2174 * \note Global index of sub-shape can be obtained, using method
2175 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2176 * \return New GEOM_Object, containing the result shape.
2178 GEOM_Object MakeMultiTransformation1D (in GEOM_Object theBlock,
2179 in long theDirFace1,
2180 in long theDirFace2,
2181 in long theNbTimes);
2184 * Multi-transformate block and glue the result.
2185 * \param theBlock Hexahedral solid to be multi-transformed.
2186 * \param theDirFace1U,theDirFace2U Direction faces for the first transformation.
2187 * \param theDirFace1V,theDirFace2V Direction faces for the second transformation.
2188 * \param theNbTimesU,theNbTimesV Quantity of transformations to be done.
2189 * \return New GEOM_Object, containing the result shape.
2191 GEOM_Object MakeMultiTransformation2D (in GEOM_Object theBlock,
2192 in long theDirFace1U,
2193 in long theDirFace2U,
2194 in long theNbTimesU,
2195 in long theDirFace1V,
2196 in long theDirFace2V,
2197 in long theNbTimesV);
2200 * Special operation - propagation
2204 * Build all possible propagation groups.
2205 * Propagation group is a set of all edges, opposite to one (main)
2206 * edge of this group directly or through other opposite edges.
2207 * Notion of Opposite Edge make sence only on quadrangle face.
2208 * \param theShape Shape to build propagation groups on.
2209 * \return List of GEOM_Objects, each of them is a propagation group.
2211 ListOfGO Propagate (in GEOM_Object theShape);
2215 * GEOM_IBooleanOperations: Interface for boolean operations (Cut, Fuse, Common)
2217 interface GEOM_IBooleanOperations : GEOM_IOperations
2220 * Perform one of boolean operations on two given shapes.
2221 * \param theShape1 First argument for boolean operation.
2222 * \param theShape2 Second argument for boolean operation.
2223 * \param theOperation Indicates the operation to be done:
2224 * 1 - Common, 2 - Cut, 3 - Fuse, 4 - Section.
2225 * \return New GEOM_Object, containing the result shape.
2227 GEOM_Object MakeBoolean (in GEOM_Object theShape1,
2228 in GEOM_Object theShape2,
2229 in long theOperation);
2232 * Perform partition operation.
2233 * \param theShapes Shapes to be intersected.
2234 * \param theTools Shapes to intersect theShapes.
2235 * \note Each compound from ListShapes and ListTools will be exploded in order
2236 * to avoid possible intersection between shapes from this compound.
2237 * \param theLimit Type of resulting shapes (corresponding to TopAbs_ShapeEnum).
2238 * \param KeepNonlimitShapes: if this parameter == 0, then only shapes of
2239 * target type (equal to Limit) are kept in the result,
2240 * else standalone shapes of lower dimension
2241 * are kept also (if they exist).
2243 * After implementation new version of PartitionAlgo (October 2006)
2244 * other parameters are ignored by current functionality. They are kept
2245 * in this function only for supporting old versions.
2246 * Ignored parameters:
2247 * \param theKeepInside Shapes, outside which the results will be deleted.
2248 * Each shape from theKeepInside must belong to theShapes also.
2249 * \param theRemoveInside Shapes, inside which the results will be deleted.
2250 * Each shape from theRemoveInside must belong to theShapes also.
2251 * \param theRemoveWebs If TRUE, perform Glue 3D algorithm.
2252 * \param theMaterials Material indices for each shape. Make sence, only if theRemoveWebs is TRUE.
2254 * \return New GEOM_Object, containing the result shapes.
2256 GEOM_Object MakePartition (in ListOfGO theShapes,
2257 in ListOfGO theTools,
2258 in ListOfGO theKeepInside,
2259 in ListOfGO theRemoveInside,
2261 in boolean theRemoveWebs,
2262 in ListOfLong theMaterials,
2263 in short theKeepNonlimitShapes);
2266 * Perform partition operation.
2267 * This method may be usefull if it is needed to make a partition for
2268 * a compound containing nonintersected shapes. Performance will be better
2269 * since intersection between shapes from compound is not performed.
2271 * Description of all parameters as in previous method MakePartition()
2273 * \note Passed compounds (via ListShapes or via ListTools)
2274 * have to consist of nonintersecting shapes.
2276 * \return New GEOM_Object, containing the result shapes.
2278 GEOM_Object MakePartitionNonSelfIntersectedShape (in ListOfGO theShapes,
2279 in ListOfGO theTools,
2280 in ListOfGO theKeepInside,
2281 in ListOfGO theRemoveInside,
2283 in boolean theRemoveWebs,
2284 in ListOfLong theMaterials,
2285 in short theKeepNonlimitShapes);
2288 * Perform partition of the Shape with the Plane
2289 * \param theShape Shape to be intersected.
2290 * \param thePlane Tool shape, to intersect theShape.
2291 * \return New GEOM_Object, containing the result shape.
2293 GEOM_Object MakeHalfPartition (in GEOM_Object theShape,
2294 in GEOM_Object thePlane);
2298 * GEOM_ICurvesOperations: Interface for curves creation.
2299 * Polyline, Circle, Spline (Bezier and Interpolation)
2301 interface GEOM_ICurvesOperations : GEOM_IOperations
2304 * Create a circle with given center, normal vector and radius.
2305 * \param thePnt Circle center.
2306 * \param theVec Vector, normal to the plane of the circle.
2307 * \param theR Circle radius.
2308 * \return New GEOM_Object, containing the created circle.
2310 GEOM_Object MakeCirclePntVecR (in GEOM_Object thePnt,
2311 in GEOM_Object theVec,
2314 * Create a circle, passing through three given points
2315 * \param thePnt1,thePnt2,thePnt3 Points, defining the circle.
2316 * \return New GEOM_Object, containing the created circle.
2318 GEOM_Object MakeCircleThreePnt (in GEOM_Object thePnt1,
2319 in GEOM_Object thePnt2,
2320 in GEOM_Object thePnt3);
2322 * Create a circle with given center, with a radius equals the distance from center to Point1
2323 * and on a plane defined by all of three points.
2324 * \param thePnt1,thePnt2,thePnt3 Points, defining the circle.
2325 * \return New GEOM_Object, containing the created circle.
2327 GEOM_Object MakeCircleCenter2Pnt (in GEOM_Object thePnt1,
2328 in GEOM_Object thePnt2,
2329 in GEOM_Object thePnt3);
2331 * Create an ellipse with given center, normal vector and radiuses.
2332 * \param thePnt Ellipse center.
2333 * \param theVec Vector, normal to the plane of the ellipse.
2334 * \param theRMajor Major ellipse radius.
2335 * \param theRMinor Minor ellipse radius.
2336 * \return New GEOM_Object, containing the created ellipse.
2338 GEOM_Object MakeEllipse (in GEOM_Object thePnt,
2339 in GEOM_Object theVec,
2340 in double theRMajor,
2341 in double theRMinor);
2344 * Create an ellipse with given center, normal vector, main axis vector and radiuses.
2345 * \param thePnt Ellipse center.
2346 * \param theVec Vector, normal to the plane of the ellipse.
2347 * \param theRMajor Major ellipse radius.
2348 * \param theRMinor Minor ellipse radius.
2349 * \param theVecMaj Vector, direction of the ellipse's main axis.
2350 * \return New GEOM_Object, containing the created ellipse.
2352 GEOM_Object MakeEllipseVec (in GEOM_Object thePnt,
2353 in GEOM_Object theVec,
2354 in double theRMajor,
2355 in double theRMinor,
2356 in GEOM_Object theVecMaj);
2359 * Create an arc of circle, passing through three given points.
2360 * \param thePnt1 Start point of the arc.
2361 * \param thePnt2 Middle point of the arc.
2362 * \param thePnt3 End point of the arc.
2363 * \return New GEOM_Object, containing the created arc.
2365 GEOM_Object MakeArc (in GEOM_Object thePnt1,
2366 in GEOM_Object thePnt2,
2367 in GEOM_Object thePnt3);
2370 * Create an arc of circle of center C from one point to another
2371 * \param theCenter Center point of the arc.
2372 * \param thePnt1 Start point of the arc.
2373 * \param thePnt2 End point of the arc.
2374 * \param theSense Orientation of the arc
2375 * \return New GEOM_Object, containing the created arc.
2377 GEOM_Object MakeArcCenter (in GEOM_Object theCenter,
2378 in GEOM_Object thePnt1,
2379 in GEOM_Object thePnt2,
2380 in boolean theSense);
2383 * Create an arc of ellipse of center C and two points P1 P2.
2384 * \param theCenter Center point of the arc.
2385 * \param thePnt1 Major radius is distance from center to Pnt1.
2386 * \param thePnt2 define a plane and Minor radius as a shortest distance from Pnt2 to vector Center->Pnt1.
2387 * \return New GEOM_Object, containing the created arc.
2389 GEOM_Object MakeArcOfEllipse (in GEOM_Object theCenter,
2390 in GEOM_Object thePnt1,
2391 in GEOM_Object thePnt2);
2395 * Create a polyline on the set of points.
2396 * \param thePoints Sequence of points for the polyline.
2397 * \return New GEOM_Object, containing the created polyline.
2399 GEOM_Object MakePolyline (in ListOfGO thePoints);
2402 * Create bezier curve on the set of points.
2403 * \param thePoints Sequence of points for the bezier curve.
2404 * \return New GEOM_Object, containing the created bezier curve.
2406 GEOM_Object MakeSplineBezier (in ListOfGO thePoints);
2409 * Create B-Spline curve on the set of points.
2410 * \param thePoints Sequence of points for the B-Spline curve.
2411 * \param theIsClosed If TRUE, build a closed curve.
2412 * \return New GEOM_Object, containing the created B-Spline curve.
2414 GEOM_Object MakeSplineInterpolation (in ListOfGO thePoints,
2415 in boolean theIsClosed);
2418 * Create a sketcher (wire or face), following the textual description,
2419 * passed through \a theCommand argument. \n
2420 * Edges of the resulting wire or face will be arcs of circles and/or linear segments. \n
2421 * Format of the description string have to be the following:
2423 * "Sketcher[:F x1 y1]:CMD[:CMD[:CMD...]]"
2426 * - x1, y1 are coordinates of the first sketcher point (zero by default),
2428 * - "R angle" : Set the direction by angle
2429 * - "D dx dy" : Set the direction by DX & DY
2432 * - "TT x y" : Create segment by point at X & Y
2433 * - "T dx dy" : Create segment by point with DX & DY
2434 * - "L length" : Create segment by direction & Length
2435 * - "IX x" : Create segment by direction & Intersect. X
2436 * - "IY y" : Create segment by direction & Intersect. Y
2439 * - "C radius length" : Create arc by direction, radius and length(in degree)
2442 * - "WW" : Close Wire (to finish)
2443 * - "WF" : Close Wire and build face (to finish)
2445 * \param theCommand String, defining the sketcher in local
2446 * coordinates of the working plane.
2447 * \param theWorkingPlane Nine double values, defining origin,
2448 * OZ and OX directions of the working plane.
2449 * \return New GEOM_Object, containing the created wire.
2451 GEOM_Object MakeSketcher (in string theCommand, in ListOfDouble theWorkingPlane);
2454 * Create a 3D sketcher, following the numerical description,
2455 * passed through points created by \a theCoordinates argument. \n
2456 * Format of the description string have to be the following:
2458 * "Make3DSketcher[x1, y1, z1, x2, y2, z2, ..., xN, yN, zN]"
2461 GEOM_Object Make3DSketcher (in ListOfDouble theCoordinates);
2464 * Create a sketcher (wire or face), following the textual description,
2465 * passed through \a theCommand argument. \n
2466 * For format of the description string see the previous method.\n
2467 * \param theCommand String, defining the sketcher in local
2468 * coordinates of the working plane.
2469 * \param theWorkingPlane Planar Face or LCS(Marker) of the working plane.
2470 * \return New GEOM_Object, containing the created wire.
2472 GEOM_Object MakeSketcherOnPlane (in string theCommand, in GEOM_Object theWorkingPlane);
2476 * GEOM_ILocalOperations: Interface for fillet and chamfer creation.
2478 interface GEOM_ILocalOperations : GEOM_IOperations
2481 * Perform a fillet on all edges of the given shape.
2482 * \param theShape Shape, to perform fillet on.
2483 * \param theR Fillet radius.
2484 * \return New GEOM_Object, containing the result shape.
2486 GEOM_Object MakeFilletAll (in GEOM_Object theShape,
2490 * Perform a fillet on the specified edges of the given shape
2491 * \param theShape Shape, to perform fillet on.
2492 * \param theR Fillet radius.
2493 * \param theEdges Global indices of edges to perform fillet on.
2494 * \note Global index of sub-shape can be obtained, using method
2495 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2496 * \return New GEOM_Object, containing the result shape.
2498 GEOM_Object MakeFilletEdges (in GEOM_Object theShape,
2500 in ListOfLong theEdges);
2501 GEOM_Object MakeFilletEdgesR1R2 (in GEOM_Object theShape,
2504 in ListOfLong theEdges);
2507 * Perform a fillet on all edges of the specified faces of the given shape.
2508 * \param theShape Shape, to perform fillet on.
2509 * \param theR Fillet radius.
2510 * \param theFaces Global indices of faces to perform fillet on.
2511 * \note Global index of sub-shape can be obtained, using method
2512 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2513 * \return New GEOM_Object, containing the result shape.
2515 GEOM_Object MakeFilletFaces (in GEOM_Object theShape,
2517 in ListOfLong theFaces);
2519 GEOM_Object MakeFilletFacesR1R2 (in GEOM_Object theShape,
2522 in ListOfLong theFaces);
2525 * Perform a fillet on face of the specified vertexes of the given shape.
2526 * \param theShape Shape, to perform fillet on.
2527 * \param theR Fillet radius.
2528 * \param theVertexes Global indices of vertexes to perform fillet on.
2529 * \note Global index of sub-shape can be obtained, using method
2530 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2531 * \return New GEOM_Object, containing the result shape.
2533 GEOM_Object MakeFillet2D (in GEOM_Object theShape,
2535 in ListOfLong theVertexes);
2538 * Perform a fillet on edges of the specified vertexes of the given wire.
2539 * \param theShape Shape, to perform fillet on.
2540 * \param theR Fillet radius.
2541 * \param theVertexes Global indices of vertexes to perform fillet on.
2542 * \note Global index of sub-shape can be obtained, using method
2543 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2544 * \note The list of vertices coudl be empty, in this case fillet fill be done
2545 * at all vertices in given wire
2546 * \return New GEOM_Object, containing the result shape.
2548 GEOM_Object MakeFillet1D (in GEOM_Object theShape,
2550 in ListOfLong theVertexes);
2553 * Perform a symmetric chamfer on all edges of the given shape.
2554 * \param theShape Shape, to perform chamfer on.
2555 * \param theD Chamfer size along each face.
2556 * \return New GEOM_Object, containing the result shape.
2558 GEOM_Object MakeChamferAll (in GEOM_Object theShape,
2562 * Perform a chamfer on edges, common to the specified faces.
2563 * with distance D1 on the Face1
2564 * \param theShape Shape, to perform chamfer on.
2565 * \param theD1 Chamfer size along \a theFace1.
2566 * \param theD2 Chamfer size along \a theFace2.
2567 * \param theFace1,theFace2 Global indices of two faces of \a theShape.
2568 * \note Global index of sub-shape can be obtained, using method
2569 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2570 * \return New GEOM_Object, containing the result shape.
2572 GEOM_Object MakeChamferEdge (in GEOM_Object theShape,
2573 in double theD1, in double theD2,
2574 in long theFace1, in long theFace2);
2576 * The Same but with params theD = Chamfer Lenght
2577 * and theAngle = Chamfer Angle (Angle in radians)
2579 GEOM_Object MakeChamferEdgeAD (in GEOM_Object theShape,
2580 in double theD, in double theAngle,
2581 in long theFace1, in long theFace2);
2584 * Perform a chamfer on all edges of the specified faces.
2585 * with distance D1 on the first specified face (if several for one edge)
2586 * \param theShape Shape, to perform chamfer on.
2587 * \param theD1 Chamfer size along face from \a theFaces. If both faces,
2588 * connected to the edge, are in \a theFaces, \a theD1
2589 * will be get along face, which is nearer to \a theFaces beginning.
2590 * \param theD2 Chamfer size along another of two faces, connected to the edge.
2591 * \param theFaces Sequence of global indices of faces of \a theShape.
2592 * \note Global index of sub-shape can be obtained, using method
2593 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2594 * \return New GEOM_Object, containing the result shape.
2596 GEOM_Object MakeChamferFaces (in GEOM_Object theShape,
2597 in double theD1, in double theD2,
2598 in ListOfLong theFaces);
2600 * The Same but with params theD = Chamfer Lenght
2601 * and theAngle = Chamfer Angle (Angle in radians)
2603 GEOM_Object MakeChamferFacesAD (in GEOM_Object theShape,
2604 in double theD, in double theAngle,
2605 in ListOfLong theFaces);
2608 * Perform a chamfer on edges,
2609 * with distance D1 on the first specified face (if several for one edge)
2610 * \param theShape Shape, to perform chamfer on.
2611 * \param theD1 theD2 Chamfer size
2612 * \param theEdges Sequence of edges of \a theShape.
2613 * \return New GEOM_Object, containing the result shape.
2615 GEOM_Object MakeChamferEdges (in GEOM_Object theShape,
2616 in double theD1, in double theD2,
2617 in ListOfLong theEdges);
2619 * The Same but with params theD = Chamfer Lenght
2620 * and theAngle = Chamfer Angle (Angle in radians)
2622 GEOM_Object MakeChamferEdgesAD (in GEOM_Object theShape,
2623 in double theD, in double theAngle,
2624 in ListOfLong theEdges);
2627 * Perform an Archimde operation on the given shape with given parameters.
2628 * The object presenting the resulting face is returned
2629 * \param theShape Shape to be put in water.
2630 * \param theWeight Weight og the shape.
2631 * \param theWaterDensity Density of the water.
2632 * \param theMeshDeflection Deflection od the mesh, using to compute the section.
2633 * \return New GEOM_Object, containing a section of \a theShape
2634 * by a plane, corresponding to water level.
2636 GEOM_Object MakeArchimede (in GEOM_Object theShape,
2637 in double theWeight,
2638 in double theWaterDensity,
2639 in double theMeshDeflection);
2642 * Duplicates <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2643 * Present here only for compatibility.
2645 long GetSubShapeIndex (in GEOM_Object theShape, in GEOM_Object theSubShape);
2649 * GEOM_IHealingOperations: Interface for shape healing operations.
2650 * Shape Processing, SuppressFaces, etc.
2652 interface GEOM_IHealingOperations : GEOM_IOperations
2655 * Apply a sequence of Shape Healing operators to the given object.
2656 * \param theShapes Shape to be processed.
2657 * \param theOperators List of names of operators ("FixShape", "SplitClosedFaces", etc.).
2658 * \param theParameters List of names of parameters
2659 * ("FixShape.Tolerance3d", "SplitClosedFaces.NbSplitPoints", etc.).
2660 * \param theValues List of values of parameters, in the same order
2661 * as parameters are listed in \a theParameters list.
2662 * \return New GEOM_Object, containing processed shape.
2664 GEOM_Object ProcessShape (in GEOM_Object theShapes,
2665 in string_array theOperators,
2666 in string_array theParameters,
2667 in string_array theValues);
2670 * Get default sequence of operators, their parameters and parameters' values
2671 * of Shape Process operation. In the current implementation the defaults are
2672 * read from the file pointed by CSF_ShHealingDefaults environmental variable.
2673 * \param theOperators Output. Default list of names of operators.
2674 * \param theParameters Output. Default list of names of parameters.
2675 * \param theValues Output. List of default values of parameters, in the same order
2676 * as parameters are listed in \a theParameters list.
2678 void GetShapeProcessParameters (out string_array theOperators,
2679 out string_array theParameters,
2680 out string_array theValues);
2682 * Get parameters and parameters' values for the given Shape Process operation.
2683 * In the current implementation the defaults are
2684 * read from the file pointed by CSF_ShHealingDefaults environmental variable.
2685 * \param theOperator Input. The operator's name.
2686 * \param theParameters Output. Default list of names of parameters.
2687 * \param theValues Output. List of default values of parameters, in the same order
2688 * as parameters are listed in \a theParameters list.
2690 void GetOperatorParameters (in string theOperator,
2691 out string_array theParameters,
2692 out string_array theValues);
2695 * Remove faces from the given object (shape).
2696 * \param theObject Shape to be processed.
2697 * \param theFaces Indices of faces to be removed, if EMPTY then the method
2698 * removes ALL faces of the given object.
2699 * \return New GEOM_Object, containing processed shape.
2701 GEOM_Object SuppressFaces (in GEOM_Object theObject, in short_array theFaces);
2704 * Close an open wire.
2705 * \param theObject Shape to be processed.
2706 * \param theWires Indexes of edge(s) and wire(s) to be closed within <VAR>theObject</VAR>'s shape,
2707 * if -1, then theObject itself is a wire.
2708 * \param isCommonVertex If TRUE : closure by creation of a common vertex,
2709 * If FALS : closure by creation of an edge between ends.
2710 * \return New GEOM_Object, containing processed shape.
2712 GEOM_Object CloseContour (in GEOM_Object theObject, in short_array theWires,
2713 in boolean isCommonVertex);
2716 * Remove internal wires and edges from the given object (face).
2717 * \param theObject Shape to be processed.
2718 * \param theWires Indices of wires to be removed, if EMPTY then the method
2719 * removes ALL internal wires of the given object.
2720 * \return New GEOM_Object, containing processed shape.
2722 GEOM_Object RemoveIntWires (in GEOM_Object theObject, in short_array theWires);
2725 * Remove internal closed contours (holes) from the given object.
2726 * \param theObject Shape to be processed.
2727 * \param theWires Indices of wires to be removed, if EMPTY then the method
2728 * removes ALL internal holes of the given object
2729 * \return New GEOM_Object, containing processed shape.
2731 GEOM_Object FillHoles (in GEOM_Object theObject, in short_array theWires);
2734 * Sewing of the given object.
2735 * \param theObject Shape to be processed.
2736 * \param theTolerance Required tolerance value.
2737 * \return New GEOM_Object, containing processed shape.
2739 GEOM_Object Sew (in GEOM_Object theObject, in double theTolerance);
2742 * Addition of a point to a given edge object.
2743 * \param theObject Shape to be processed.
2744 * \param theEdgeIndex Index of edge to be divided within theObject's shape,
2745 * if -1, then theObject itself is the edge.
2746 * \param theValue Value of parameter on edge or length parameter,
2747 * depending on \a isByParameter.
2748 * \param isByParameter If TRUE : \a theValue is treated as a curve parameter [0..1],
2749 * if FALSE : \a theValue is treated as a length parameter [0..1]
2750 * \return New GEOM_Object, containing processed shape.
2752 GEOM_Object DivideEdge (in GEOM_Object theObject, in short theEdgeIndex,
2753 in double theValue, in boolean isByParameter);
2756 * Get a list of wires (wrapped in GEOM_Object-s),
2757 * that constitute a free boundary of the given shape.
2758 * \param theObject Shape to get free boundary of.
2759 * \param theClosedWires Output. Closed wires on the free boundary of the given shape.
2760 * \param theOpenWires Output. Open wires on the free boundary of the given shape.
2761 * \return FALSE, if an error(s) occured during the method execution.
2763 boolean GetFreeBoundary (in GEOM_Object theObject,
2764 out ListOfGO theClosedWires,
2765 out ListOfGO theOpenWires);
2768 * Change orientation of the given object.
2769 * \param theObject Shape to be processed.
2770 * \return New GEOM_Object, containing processed shape.
2772 GEOM_Object ChangeOrientation (in GEOM_Object theObject);
2773 GEOM_Object ChangeOrientationCopy (in GEOM_Object theObject);
2776 * Try to limit tolerance of the given object by value \a theTolerance.
2777 * \param theObject Shape to be processed.
2778 * \param theTolerance Required tolerance value.
2779 * \return New GEOM_Object, containing processed shape.
2781 GEOM_Object LimitTolerance (in GEOM_Object theObject, in double theTolerance);
2786 * GEOM_IInsertOperations: Interface for shape insert operations (like copy, import).
2789 interface GEOM_IInsertOperations : GEOM_IOperations
2792 * Create a copy of the given object
2794 GEOM_Object MakeCopy (in GEOM_Object theOriginal);
2797 * Export the given shape into a file with given name.
2798 * \param theObject Shape to be stored in the file.
2799 * \param theFileName Name of the file to store the given shape in.
2800 * \param theFormatName Specify format for the shape storage.
2801 * Available formats can be obtained with <VAR>ImportTranslators()</VAR> method.
2803 void Export (in GEOM_Object theObject, in string theFileName, in string theFormatName);
2806 * Import a shape from the BRep or IGES or STEP file
2807 * (depends on given format) with given name.
2808 * \param theFileName The file, containing the shape.
2809 * \param theFormatName Specify format for the file reading.
2810 * Available formats can be obtained with <VAR>ImportTranslators()</VAR> method.
2811 * If format 'IGES_SCALE' is used instead 'IGES' length unit will be
2812 * set to 'meter' and result model will be scaled.
2813 * \return New GEOM_Object, containing the imported shape.
2815 GEOM_Object Import (in string theFileName, in string theFormatName);
2818 * Get the supported import formats and corresponding patterns for File dialog.
2819 * \param theFormats Output. List of formats, available for import.
2820 * \param thePatterns Output. List of file patterns, corresponding to available formats.
2821 * \return Returns available formats and patterns through the arguments.
2823 void ImportTranslators (out string_array theFormats,
2824 out string_array thePatterns);
2827 * Get the supported export formats and corresponding patterns for File dialog.
2828 * \param theFormats Output. List of formats, available for export.
2829 * \param thePatterns Output. List of file patterns, corresponding to available formats.
2830 * \return Returns available formats and patterns through the arguments.
2832 void ExportTranslators (out string_array theFormats,
2833 out string_array thePatterns);
2836 * Load texture from file
2837 * \param theTextureFile texture file name
2838 * \return unique texture identifier
2840 long LoadTexture(in string theTextureFile);
2843 * Add texture to the study
2844 * \param theWidth texture width in pixels
2845 * \param theHeight texture height in pixels
2846 * \param theTexture texture byte array
2847 * \return unique texture identifier
2849 long AddTexture(in long theWidth, in long theHeight, in SALOMEDS::TMPFile theTexture);
2852 * Get previously loaded texture data
2853 * \param theID texture identifier
2854 * \param theWidth texture width in pixels
2855 * \param theHeight texture height in pixels
2856 * \return texture byte array
2858 SALOMEDS::TMPFile GetTexture(in long theID, out long theWidth, out long theHeight);
2861 * Get list of all avaiable texture IDs
2862 * \return list of all texture IDs avaiable for the current study
2864 ListOfLong GetAllTextures();
2868 * GEOM_IKindOfShape: namespace for shape_kind enumeration.
2870 interface GEOM_IKindOfShape
2880 SPHERE, // full sphere
2881 CYLINDER, // cylinder
2882 BOX, // box with faces, parallel to global coordinate planes
2883 ROTATED_BOX, // other box
2884 TORUS, // full torus
2886 POLYHEDRON, // solid, bounded by polygons
2887 SOLID, // other solid
2889 SPHERE2D, // spherical face (closed)
2890 CYLINDER2D, // cylindrical face with defined height
2891 TORUS2D, // toroidal face (closed)
2892 CONE2D, // conical face with defined height
2893 DISK_CIRCLE, // planar, bounded by circle
2894 DISK_ELLIPSE, // planar, bounded by ellipse
2895 POLYGON, // planar, bounded by segments
2896 PLANE, // infinite planar
2897 PLANAR, // other planar
2900 CIRCLE, // full circle
2901 ARC_CIRCLE, // arc of circle
2902 ELLIPSE, // full ellipse
2903 ARC_ELLIPSE, // arc of ellipse
2904 LINE, // infinite segment
2910 ADVANCED // all advanced shapes (temporary implementation)
2916 * GEOM_IMeasureOperations: Interface for measurement (distance, whatis) and
2917 * properties calculation (like Centre of Mass, Inertia, etc.).
2920 interface GEOM_IMeasureOperations : GEOM_IOperations
2923 * Get kind of theShape.
2924 * \param theShape Shape to get a kind of.
2925 * \param theIntegers Output. Integer and enumerated shape's parameters
2926 * (kind of surface, closed/unclosed, number of edges, etc.)
2927 * \param theDoubles Output. Double shape's parameters (coordinates, dimensions, etc.)
2928 * \note Concrete meaning of each value, returned via \a theIntegers
2929 * or \a theDoubles list depends on the kind of the shape.
2930 * \return Returns a kind of shape in terms of <VAR>GEOM_IKindOfShape.shape_kind</VAR> enumeration.
2932 //short KindOfShape (in GEOM_Object theShape,
2933 GEOM_IKindOfShape::shape_kind KindOfShape (in GEOM_Object theShape,
2934 out ListOfLong theIntegers,
2935 out ListOfDouble theDoubles);
2938 * Get position (LCS) of theShape.
2939 * \param theShape Shape to calculate position of.
2940 * \param Ox,Oy,Oz Output. Coordinates of shape's location origin.
2941 * Origin of the LCS is situated at the shape's center of mass.
2942 * \param Zx,Zy,Zz Output. Coordinates of shape's location normal(main) direction.
2943 * \param Xx,Xy,Xz Output. Coordinates of shape's location X direction.
2944 * Axes of the LCS are obtained from shape's location or,
2945 * if the shape is a planar face, from position of its plane.
2946 * \return Returns position of the shape through the last nine arguments.
2948 void GetPosition (in GEOM_Object theShape,
2949 out double Ox, out double Oy, out double Oz,
2950 out double Zx, out double Zy, out double Zz,
2951 out double Xx, out double Xy, out double Xz);
2954 * Get summarized length of all wires,
2955 * area of surface and volume of the given shape.
2956 * \param theShape Shape to define properties of.
2957 * \param theLength Output. Summarized length of all wires of the given shape.
2958 * \param theSurfArea Output. Area of surface of the given shape.
2959 * \param theVolume Output. Volume of the given shape.
2960 * \return Returns shape properties through the last three arguments.
2962 void GetBasicProperties (in GEOM_Object theShape,
2963 out double theLength,
2964 out double theSurfArea,
2965 out double theVolume);
2968 * Get a point, situated at the centre of mass of theShape.
2969 * \param theShape Shape to define centre of mass of.
2970 * \return New GEOM_Object, containing the created point.
2972 GEOM_Object GetCentreOfMass (in GEOM_Object theShape);
2975 * Get the vertex by index for 1D objects depends the edge/wire orientation
2976 * \param theShape Shape (wire or edge) to find the vertex on it
2977 * \param theIndex Index of vertex subshape
2978 * \return New GEOM_Object, vertex.
2980 GEOM_Object GetVertexByIndex( in GEOM_Object theShape, in long index );
2983 * Get a vector, representing the normal of theFace.
2984 * If the face is not planar, theOptionalPoint is obligatory.
2985 * \param theFace Shape (face) to define the normal of.
2986 * \param theOptionalPoint Shape (point) to define the normal at.
2987 * Can be NULL in case of planar face.
2988 * \return New GEOM_Object, containing the created normal vector.
2990 GEOM_Object GetNormal (in GEOM_Object theFace,
2991 in GEOM_Object theOptionalPoint);
2994 * Get inertia matrix and moments of inertia of theShape.
2995 * \param theShape Shape to calculate inertia of.
2996 * \param I(1-3)(1-3) Output. Components of the inertia matrix of the given shape.
2997 * \param Ix,Iy,Iz Output. Moments of inertia of the given shape.
2998 * \return Returns inertia through the last twelve arguments.
3000 void GetInertia (in GEOM_Object theShape,
3001 out double I11, out double I12, out double I13,
3002 out double I21, out double I22, out double I23,
3003 out double I31, out double I32, out double I33,
3004 out double Ix , out double Iy , out double Iz);
3007 * Get parameters of bounding box of the given shape
3008 * \param theShape Shape to obtain bounding box of.
3009 * \param Xmin,Xmax Output. Limits of shape along OX axis.
3010 * \param Ymin,Ymax Output. Limits of shape along OY axis.
3011 * \param Zmin,Zmax Output. Limits of shape along OZ axis.
3012 * \return Returns parameters of bounding box through the last six arguments.
3014 void GetBoundingBox (in GEOM_Object theShape,
3015 out double Xmin, out double Xmax,
3016 out double Ymin, out double Ymax,
3017 out double Zmin, out double Zmax);
3020 * Get min and max tolerances of sub-shapes of theShape
3021 * \param theShape Shape, to get tolerances of.
3022 * \param FaceMin,FaceMax Output. Min and max tolerances of the faces.
3023 * \param EdgeMin,EdgeMax Output. Min and max tolerances of the edges.
3024 * \param VertMin,VertMax Output. Min and max tolerances of the vertices.
3025 * \return Returns shape tolerances through the last six arguments.
3027 void GetTolerance (in GEOM_Object theShape,
3028 out double FaceMin, out double FaceMax,
3029 out double EdgeMin, out double EdgeMax,
3030 out double VertMin, out double VertMax);
3033 * Check a topology of the given shape.
3034 * \param theShape Shape to check validity of.
3035 * \param theDescription Output. Description of problems in the shape, if they are.
3036 * \return TRUE, if the shape "seems to be valid" from the topological point of view.
3038 boolean CheckShape (in GEOM_Object theShape,
3039 out string theDescription);
3042 * Check a topology and a geometry of the given shape.
3043 * \param theShape Shape to check validity of.
3044 * \param theDescription Output. Description of problems in the shape, if they are.
3045 * \return TRUE, if the shape "seems to be valid".
3047 boolean CheckShapeWithGeometry (in GEOM_Object theShape,
3048 out string theDescription);
3051 * Obtain description of the given shape
3052 * \param theShape Shape to be described.
3053 * \return Description of the given shape.
3055 string WhatIs (in GEOM_Object theShape);
3058 * Get minimal distance between the given shapes.
3059 * \param theShape1,theShape2 Shapes to find minimal distance between.
3060 * \param X1,Y1,Z1 Output. Coordinates of point on theShape1, nearest to theShape2.
3061 * \param X2,Y2,Z2 Output. Coordinates of point on theShape2, nearest to theShape1.
3062 * \return Value of the minimal distance between the given shapes.
3064 double GetMinDistance (in GEOM_Object theShape1, in GEOM_Object theShape2,
3065 out double X1, out double Y1, out double Z1,
3066 out double X2, out double Y2, out double Z2);
3069 * Get angle between the given lines or linear edges.
3070 * \param theShape1,theShape2 Shapes to find angle between. Lines or linear edges.
3071 * \return Value of the angle between the given shapes.
3073 double GetAngle (in GEOM_Object theShape1, in GEOM_Object theShape2);
3076 * Get point coordinates
3078 void PointCoordinates (in GEOM_Object theShape, out double X, out double Y, out double Z);
3081 * Get radius of curvature of curve in the point determinated by param
3082 * \param theShape - curve.
3083 * \param theParam - parameter on curve
3084 * \return Value of curvature.
3086 double CurveCurvatureByParam (in GEOM_Object theShape, in double theParam);
3089 * Get radius of curvature of curve in the given point
3090 * \param theShape - curve.
3091 * \param thePoint - point
3092 * \return Value of curvature.
3094 double CurveCurvatureByPoint (in GEOM_Object theShape, in GEOM_Object thePoint);
3097 * Get max radius of curvature of surface in the point determinated by params
3098 * \param theShape - surface.
3099 * \param theUParam - U-parameter on surface
3100 * \param theVParam - V-parameter on surface
3101 * \return Value of curvature.
3103 double MaxSurfaceCurvatureByParam (in GEOM_Object theShape, in double theUParam,
3104 in double theVParam);
3107 * Get max radius of curvature of surface in the given point
3108 * \param theShape - surface.
3109 * \param thePoint - point
3110 * \return Value of curvature.
3112 double MaxSurfaceCurvatureByPoint (in GEOM_Object theShape, in GEOM_Object thePoint);
3115 * Get min radius of curvature of surface in the point determinated by params
3116 * \param theShape - surface.
3117 * \param theUParam - U-parameter on surface
3118 * \param theVParam - V-parameter on surface
3119 * \return Value of curvature.
3121 double MinSurfaceCurvatureByParam (in GEOM_Object theShape, in double theUParam,
3122 in double theVParam);
3125 * Get min radius of curvature of surface in the given point
3126 * \param theShape - surface.
3127 * \param thePoint - point
3128 * \return Value of curvature.
3130 double MinSurfaceCurvatureByPoint (in GEOM_Object theShape, in GEOM_Object thePoint);
3136 * GEOM_IGroupOperations: Interface for groups creation.
3138 interface GEOM_IGroupOperations : GEOM_IOperations
3141 * Creates a new group which will store sub shapes of theMainShape
3142 * \param theMainShape is a GEOM object on which the group is selected
3143 * \param theShapeType defines a shape type of the group
3144 * \return a newly created GEOM group
3146 GEOM_Object CreateGroup (in GEOM_Object theMainShape, in long theShapeType);
3149 * Adds a sub object with ID theSubShapeId to the group
3150 * \param theGroup is a GEOM group to which the new sub shape is added
3151 * \param theSubShapeId is a sub shape ID in the main object.
3152 * \note Use method <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR> to get an ID by the sub shape
3154 void AddObject (in GEOM_Object theGroup, in long theSubShapeId);
3157 * Removes a sub object with ID \a theSubShapeId from the group
3158 * \param theGroup is a GEOM group from which the sub shape is removed.
3159 * \param theSubShapeId is a sub shape ID in the main object.
3160 * \note Use method <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR> to get an ID by the sub shape
3162 void RemoveObject (in GEOM_Object theGroup, in long theSubShapeId);
3165 * Adds to the group all the given shapes. No errors, if some shapes are alredy included.
3166 * \param theGroup is a GEOM group to which the new sub shapes are added.
3167 * \param theSubShapes is a list of sub shapes to be added.
3169 void UnionList (in GEOM_Object theGroup, in ListOfGO theSubShapes);
3172 * Removes from the group all the given shapes. No errors, if some shapes are not included.
3173 * \param theGroup is a GEOM group from which the sub-shapes are removed.
3174 * \param theSubShapes is a list of sub-shapes to be removed.
3176 void DifferenceList (in GEOM_Object theGroup, in ListOfGO theSubShapes);
3179 * Adds to the group all the given shapes. No errors, if some shapes are alredy included.
3180 * \param theGroup is a GEOM group to which the new sub shapes are added.
3181 * \param theSubShapes is a list of IDs of sub shapes to be added.
3183 void UnionIDs (in GEOM_Object theGroup, in ListOfLong theSubShapes);
3186 * Removes from the group all the given shapes. No errors, if some shapes are not included.
3187 * \param theGroup is a GEOM group from which the sub-shapes are removed.
3188 * \param theSubShapes is a list of IDs of sub-shapes to be removed.
3190 void DifferenceIDs (in GEOM_Object theGroup, in ListOfLong theSubShapes);
3193 * Returns a type of sub objects stored in the group
3194 * \param theGroup is a GEOM group which type is returned.
3196 long GetType (in GEOM_Object theGroup);
3199 * Returns a main shape associated with the group
3200 * \param theGroup is a GEOM group for which a main shape object is requested
3201 * \return a GEOM object which is a main shape for theGroup
3203 GEOM_Object GetMainShape (in GEOM_Object theGroup);
3206 * Returns a list of sub objects ID stored in the group
3207 * \param theGroup is a GEOM group for which a list of IDs is requested
3209 ListOfLong GetObjects (in GEOM_Object theGroup);
3214 * GEOM_IAdvancedOperations: Interface for advanced modeling functions.
3216 interface GEOM_IAdvancedOperations : GEOM_IOperations
3219 * Create a T-shape object with specified caracteristics for the main and
3220 * the incident pipes (radius, width, half-length).
3221 * Center of the shape is (0,0,0). The main plane of the T-shape is XOY.
3222 * \param theR1 Internal radius of main pipe
3223 * \param theW1 Width of main pipe
3224 * \param theL1 Half-length of main pipe
3225 * \param theR2 Internal radius of incident pipe (R2 < R1)
3226 * \param theW2 Width of incident pipe (R2+W2 < R1+W1)
3227 * \param theL2 Half-length of incident pipe
3228 * \param theHexMesh Boolean indicating if shape is prepared for hex mesh (default=true)
3229 * \return List of GEOM_Objects, containing the created shape and propagation groups.
3231 ListOfGO MakePipeTShape (in double theR1, in double theW1, in double theL1,
3232 in double theR2, in double theW2, in double theL2,
3233 in boolean theHexMesh);
3235 * Create a T-shape object with specified caracteristics for the main and
3236 * the incident pipes (radius, width, half-length).
3237 * The extremities of the main pipe are located on junctions points P1 and P2.
3238 * The extremity of the incident pipe is located on junction point P3.
3239 * \param theR1 Internal radius of main pipe
3240 * \param theW1 Width of main pipe
3241 * \param theL1 Half-length of main pipe
3242 * \param theR2 Internal radius of incident pipe (R2 < R1)
3243 * \param theW2 Width of incident pipe (R2+W2 < R1+W1)
3244 * \param theL2 Half-length of incident pipe
3245 * \param theHexMesh Boolean indicating if shape is prepared for hex mesh (default=true)
3246 * \param theP1 1st junction point of main pipe
3247 * \param theP2 2nd junction point of main pipe
3248 * \param theP3 Junction point of incident pipe
3249 * \return List of GEOM_Objects, containing the created shape and propagation groups.
3251 ListOfGO MakePipeTShapeWithPosition (in double theR1, in double theW1, in double theL1,
3252 in double theR2, in double theW2, in double theL2,
3253 in boolean theHexMesh,
3254 in GEOM_Object theP1, in GEOM_Object theP2, in GEOM_Object theP3);
3256 * Create a T-shape object with specified caracteristics for the main and
3257 * the incident pipes (radius, width, half-length). A chamfer is created
3258 * on the junction of the pipes.
3259 * Center of the shape is (0,0,0). The main plane of the T-shape is XOY.
3260 * \param theR1 Internal radius of main pipe
3261 * \param theW1 Width of main pipe
3262 * \param theL1 Half-length of main pipe
3263 * \param theR2 Internal radius of incident pipe (R2 < R1)
3264 * \param theW2 Width of incident pipe (R2+W2 < R1+W1)
3265 * \param theL2 Half-length of incident pipe
3266 * \param theH Height of the chamfer.
3267 * \param theW Width of the chamfer.
3268 * \param theHexMesh Boolean indicating if shape is prepared for hex mesh (default=true)
3269 * \return List of GEOM_Objects, containing the created shape and propagation groups.
3271 ListOfGO MakePipeTShapeChamfer (in double theR1, in double theW1, in double theL1,
3272 in double theR2, in double theW2, in double theL2,
3273 in double theH, in double theW, in boolean theHexMesh);
3275 * Create a T-shape object with specified caracteristics for the main and
3276 * the incident pipes (radius, width, half-length). A chamfer is created
3277 * on the junction of the pipes.
3278 * The extremities of the main pipe are located on junctions points P1 and P2.
3279 * The extremity of the incident pipe is located on junction point P3.
3280 * \param theR1 Internal radius of main pipe
3281 * \param theW1 Width of main pipe
3282 * \param theL1 Half-length of main pipe
3283 * \param theR2 Internal radius of incident pipe (R2 < R1)
3284 * \param theW2 Width of incident pipe (R2+W2 < R1+W1)
3285 * \param theL2 Half-length of incident pipe
3286 * \param theH Height of the chamfer.
3287 * \param theW Width of the chamfer.
3288 * \param theHexMesh Boolean indicating if shape is prepared for hex mesh (default=true)
3289 * \param theP1 1st junction point of main pipe
3290 * \param theP2 2nd junction point of main pipe
3291 * \param theP3 Junction point of incident pipe
3292 * \return List of GEOM_Objects, containing the created shape and propagation groups.
3294 ListOfGO MakePipeTShapeChamferWithPosition (in double theR1, in double theW1, in double theL1,
3295 in double theR2, in double theW2, in double theL2,
3296 in double theH, in double theW, in boolean theHexMesh,
3297 in GEOM_Object theP1, in GEOM_Object theP2, in GEOM_Object theP3);
3299 * Create a T-shape object with specified caracteristics for the main and
3300 * the incident pipes (radius, width, half-length). A fillet is created
3301 * on the junction of the pipes.
3302 * Center of the shape is (0,0,0). The main plane of the T-shape is XOY.
3303 * \param theR1 Internal radius of main pipe
3304 * \param theW1 Width of main pipe
3305 * \param theL1 Half-length of main pipe
3306 * \param theR2 Internal radius of incident pipe (R2 < R1)
3307 * \param theW2 Width of incident pipe (R2+W2 < R1+W1)
3308 * \param theL2 Half-length of incident pipe
3309 * \param theRF Radius of curvature of fillet.
3310 * \param theHexMesh Boolean indicating if shape is prepared for hex mesh (default=true)
3311 * \return List of GEOM_Objects, containing the created shape and propagation groups.
3313 ListOfGO MakePipeTShapeFillet (in double theR1, in double theW1, in double theL1,
3314 in double theR2, in double theW2, in double theL2,
3315 in double theRF, in boolean theHexMesh);
3317 * Create a T-shape object with specified caracteristics for the main and
3318 * the incident pipes (radius, width, half-length). A fillet is created
3319 * on the junction of the pipes.
3320 * The extremities of the main pipe are located on junctions points P1 and P2.
3321 * The extremity of the incident pipe is located on junction point P3.
3322 * \param theR1 Internal radius of main pipe
3323 * \param theW1 Width of main pipe
3324 * \param theL1 Half-length of main pipe
3325 * \param theR2 Internal radius of incident pipe (R2 < R1)
3326 * \param theW2 Width of incident pipe (R2+W2 < R1+W1)
3327 * \param theL2 Half-length of incident pipe
3328 * \param theRF Radius of curvature of fillet.
3329 * \param theHexMesh Boolean indicating if shape is prepared for hex mesh (default=true)
3330 * \param theP1 1st junction point of main pipe
3331 * \param theP2 2nd junction point of main pipe
3332 * \param theP3 Junction point of incident pipe
3333 * \return List of GEOM_Objects, containing the created shape and propagation groups.
3335 ListOfGO MakePipeTShapeFilletWithPosition (in double theR1, in double theW1, in double theL1,
3336 in double theR2, in double theW2, in double theL2,
3337 in double theRF, in boolean theHexMesh,
3338 in GEOM_Object theP1, in GEOM_Object theP2, in GEOM_Object theP3);
3339 /*@@ insert new functions before this line @@ do not remove this line @@*/
3343 * GEOM_Gen: Interface to access other GEOM interfaces.
3344 * Also contains some methods to access and manage GEOM objects.
3346 interface GEOM_Gen : Engines::Component,SALOMEDS::Driver
3349 * Undo/Redo Management
3352 void Undo (in long theStudyID);
3354 void Redo (in long theStudyID);
3357 * Publishing management
3358 * Adds in theStudy a object theObject under with a name theName,
3359 * if theFather is not NULL the object is placed under thFather's SObject.
3360 * Returns a SObject where theObject is placed
3362 SALOMEDS::SObject AddInStudy (in SALOMEDS::Study theStudy,
3363 in GEOM_Object theObject,
3365 in GEOM_Object theFather);
3368 * Publish sub-shapes, standing for arguments and sub-shapes of arguments
3369 * To be used from python scripts out of geompy.addToStudy (non-default usage)
3370 * \param theStudy the study, in which theObject is published already,
3371 * and in which the arguments will be published
3372 * \param theObject published GEOM object, arguments of which will be published
3373 * \param theArgs list of GEOM_Object, operation arguments to be published.
3374 * If this list is empty, all operation arguments will be published
3375 * \param theFindMethod method to search subshapes, corresponding to arguments and
3376 * their subshapes. Value from enumeration GEOM::find_shape_method.
3377 * \param theInheritFirstArg set properties of the first argument for \a theObject.
3378 * Do not publish subshapes in place of arguments, but only
3379 * in place of subshapes of the first argument,
3380 * because the whole shape corresponds to the first argument.
3381 * Mainly to be used after transformations, but it also can be
3382 * usefull after partition with one object shape, and some other
3383 * operations, where only the first argument has to be considered.
3384 * If theObject has only one argument shape, this flag is automatically
3385 * considered as True, not regarding really passed value.
3386 * \param theAddPrefix add prefix "from_" to names of restored sub-shapes,
3387 * and prefix "from_subshapes_of_" to names of partially restored subshapes.
3388 * \return list of published sub-shapes
3390 ListOfGO RestoreSubShapesO (in SALOMEDS::Study theStudy,
3391 in GEOM_Object theObject,
3392 in ListOfGO theArgs,
3393 in find_shape_method theFindMethod,
3394 in boolean theInheritFirstArg,
3395 in boolean theAddPrefix);
3398 * Publish sub-shapes, standing for arguments and sub-shapes of arguments
3399 * To be used from python scripts out of geompy.addToStudy (non-default usage)
3400 * \param theStudy the study, in which theObject is published already,
3401 * and in which the arguments will be published
3402 * \param theObject published GEOM object, arguments of which will be published
3403 * \param theArgs list of GEOM_Object, operation arguments to be published.
3404 * If this list is empty, all operation arguments will be published
3405 * \param theFindMethod method to search subshapes, corresponding to arguments and
3406 * their subshapes. Value from enumeration GEOM::find_shape_method.
3407 * \param theInheritFirstArg set properties of the first argument for \a theObject.
3408 * Do not publish subshapes in place of arguments, but only
3409 * in place of subshapes of the first argument,
3410 * because the whole shape corresponds to the first argument.
3411 * Mainly to be used after transformations, but it also can be
3412 * usefull after partition with one object shape, and some other
3413 * operations, where only the first argument has to be considered.
3414 * If theObject has only one argument shape, this flag is automatically
3415 * considered as True, not regarding really passed value.
3416 * \param theAddPrefix add prefix "from_" to names of restored sub-shapes,
3417 * and prefix "from_subshapes_of_" to names of partially restored subshapes.
3418 * \return list of published sub-shapes
3420 ListOfGO RestoreGivenSubShapesO (in SALOMEDS::Study theStudy,
3421 in GEOM_Object theObject,
3422 in ListOfGO theArgs,
3423 in find_shape_method theFindMethod,
3424 in boolean theInheritFirstArg,
3425 in boolean theAddPrefix);
3428 * Publish sub-shapes, standing for arguments and sub-shapes of arguments
3429 * To be used from GUI and from geompy.addToStudy.
3430 * Work like the above method, but accepts study object theSObject instead of GEOM_Object.
3431 * \param theSObject study object, referencing GEOM object, arguments of which will be published
3433 ListOfGO RestoreSubShapesSO (in SALOMEDS::Study theStudy,
3434 in SALOMEDS::SObject theSObject,
3435 in ListOfGO theArgs,
3436 in find_shape_method theFindMethod,
3437 in boolean theInheritFirstArg,
3438 in boolean theAddPrefix);
3441 * Methods to access interfaces for objects creation and transformation
3443 GEOM_IBasicOperations GetIBasicOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
3444 GEOM_ITransformOperations GetITransformOperations(in long theStudyID) raises (SALOME::SALOME_Exception);
3445 GEOM_I3DPrimOperations GetI3DPrimOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
3446 GEOM_IShapesOperations GetIShapesOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
3447 GEOM_IBooleanOperations GetIBooleanOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
3448 GEOM_ICurvesOperations GetICurvesOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
3449 GEOM_ILocalOperations GetILocalOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
3450 GEOM_IHealingOperations GetIHealingOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
3451 GEOM_IInsertOperations GetIInsertOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
3452 GEOM_IMeasureOperations GetIMeasureOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
3453 GEOM_IBlocksOperations GetIBlocksOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
3454 GEOM_IGroupOperations GetIGroupOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
3455 GEOM_IAdvancedOperations GetIAdvancedOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
3458 * Objects Management
3462 * Removes the object from the GEOM component
3463 * \param theObject is a GEOM object to be removed
3465 void RemoveObject (in GEOM_Object theObject);
3468 * Returns an object defined by the study and its entry in the GEOM component
3469 * \param theStudyID is a SALOMEDS Study ID
3470 * \param theEntry is an entry of the requested GEOM object in the GEOM component
3471 * \note if the object has not previously been created a NULL GEOM object is returned
3473 GEOM_Object GetObject (in long theStudyID, in string theEntry);
3476 * Add a sub shape defined by indices in \a theIndices
3477 * (contains unique IDs of sub shapes inside theMainShape)
3478 * \note The sub shape GEOM_Objects can has ONLY ONE function.
3479 * Don't try to apply modification operations on them.
3480 * \note Internal method
3482 GEOM_Object AddSubShape (in GEOM_Object theMainShape, in ListOfLong theIndices);
3485 * GEOM object's IOR Management
3489 * Returns a GEOM Object defined by its IOR
3490 * \param theIOR a string containg an IOR of the requested GEOM object
3492 GEOM_Object GetIORFromString (in string theIOR);
3495 * Returns a string which contains an IOR of the GEOM object
3496 * \param theObject is a GEOM object which IOR is requested
3498 string GetStringFromIOR (in GEOM_Object theObject);
3501 * Returns a name with which a GEOM object was dumped into python script
3502 * \param theStudyEntry is an entry of the GEOM object in the study
3504 string GetDumpName (in string theStudyEntry);
3507 * Returns all names with which a GEOM objects was dumped
3508 * into python script to avoid the same names in SMESH script
3510 string_array GetAllDumpNames();
3513 * Publishes the named subshapes of given object in the study.
3514 * \param theStudy The study in which the object is published
3515 * \param theObject The object which named subshapes are published
3517 ListOfGO PublishNamedShapesInStudy(in SALOMEDS::Study theStudy,
3518 //in SObject theSObject,
3519 in Object theObject);