1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // File : GEOM_Gen.idl
21 // Author : Sergey RUIN
26 #include "SALOME_Exception.idl"
27 #include "SALOME_Component.idl"
28 #include "SALOMEDS.idl"
29 #include "SALOMEDS_Attributes.idl"
31 #include "SALOME_GenericObj.idl"
36 * Topological types of shapes (like Open Cascade types)
38 enum shape_type { COMPOUND, COMPSOLID, SOLID, SHELL,
39 FACE, WIRE, EDGE, VERTEX, SHAPE };
43 * State of shape relatively geometrical surface like plane, sphere or cylinder.
44 * Is used in functions GEOM_IShapesOperations.GetShapesOn<xxx>()
48 /*! Shape is on surface */
52 * Shape is in the direction defined by the normal and not on surface.
53 * For plane it means above the plane,
54 * For sphere and cylinder it means outside of volume, bounded by the surface.
59 * Shape is in the direction defined by the normal and on surface.
65 * Complementary to ONOUT.
66 * For plane it means below the plane,
67 * For sphere and cylinder it means inside the volume, bounded by the surface
68 * (beyond axis and surface for cylinder and beyond cented and surface for sphere).
73 * Complementary to OUT.
80 * Kind of method to find inside one main shape some subshapes,
81 * corresponding to other given shape (its argument)
82 * Is used in functions GEOM_Gen.RestoreSubShapes<xxx>()
84 enum find_shape_method
86 /*! Use GetInPlace functionality. Suits all cases, except transformations */
89 /*! To be used only for transformation result, to find subshapes of argument.
90 * Only this method can be used after transformation.
94 /*! To find only shared subshapes, not modified by the operation */
97 /*! Use GetShapesOnShape method (can work only on solids) */
100 /*! Use GetInPlaceByHistory method (can work only after Partition) */
101 FSM_GetInPlaceByHistory
105 typedef sequence<string> string_array;
106 typedef sequence<short> short_array;
107 typedef sequence<long> ListOfLong;
108 typedef sequence<double> ListOfDouble;
110 interface GEOM_Object;
112 typedef sequence<GEOM_Object> ListOfGO;
115 * GEOM_Object: interface of geometric object
117 interface GEOM_Object : SALOME::GenericObj
121 * Get an entry of the object in GEOM component.
126 * Get ID of study, where the object is created.
131 * Get internal type of the object (POINT, BOX, CYLINDER, EXTRUSION...).
136 * Get a <VAR>shape_type</VAR> of the object value.
138 shape_type GetShapeType();
141 * Set name of the object.
142 * \param theName is a name which will be associated with this object.
144 void SetName (in string theName);
147 * Get name of the object associated with this object.
152 * Set color of the object.
153 * \param theColor is a color of the object.
155 void SetColor(in SALOMEDS::Color theColor);
158 * Get color of the object.
160 SALOMEDS::Color GetColor();
163 * Toggle auto color mode on the object.
164 * \param theAtoColor is a flag which toggles auto color mode.
166 void SetAutoColor(in boolean theAutoColor);
169 * Get flag of object's auto color mode.
171 boolean GetAutoColor();
174 * Set a Study entry where this object was published.
176 void SetStudyEntry (in string theEntry);
179 * Get a Study entry where this object was published.
181 string GetStudyEntry();
184 * Get a list of all GEOM objects on which were the arguments
185 * when this object was constructed and modified.
186 * \note This method is supposed to be used by GUI only.
188 ListOfGO GetDependency();
191 * Get a list of GEOM objects on which the last function that created or modified the object depends.
192 * \note This method is supposed to be used by GUI only.
194 ListOfGO GetLastDependency();
197 * Get the TopoDS_Shape, for colocated case only.
199 long long getShape();
202 ######################################################################
203 * Internal methods (For sub shape identification)
204 ######################################################################
208 * Get geometric shape of the object as a byte stream
210 SALOMEDS::TMPFile GetShapeStream();
213 * Returns True if this object is not a sub shape of another object.
215 boolean IsMainShape();
218 * Get a list of ID's of sub shapes in the main shape.
219 * \note Internal method, suppopsed to be used only by GEOM_Client
221 ListOfLong GetSubShapeIndices();
224 * Get a main shape object to which this object is a sub shape
225 * \note Internal method, suppopsed to be used only by GEOM_Client
227 GEOM_Object GetMainShape();
230 * Return true if geom object representes a shape.
231 * For example, method return false for GEOM_MARKER
238 * GEOM_IOperations: basic methods of all geometric operations
240 interface GEOM_IOperations : SALOME::GenericObj
243 * To know, if the operation was successfully performed
248 * Set the operation error code
249 * \param theErrorID is a string describing the error occured
250 * \note This method is supposed to be used only by interfaces inheriting from IOperations.
252 void SetErrorCode (in string theErrorID);
255 * Get the operation error code
257 string GetErrorCode();
260 * Get ID of study, where the operation is defined
265 * Opens a new transaction
267 void StartOperation();
270 * Closes the previously opened trasaction
272 void FinishOperation();
275 * Aborts the previously opened transaction
277 void AbortOperation();
281 * GEOM_IBasicOperations: interface for basic geometry creation
282 * (Point, Vector, Plane, Marker)
284 interface GEOM_IBasicOperations : GEOM_IOperations
287 * Create point by three coordinates.
288 * \param theX The X coordinate of the point.
289 * \param theY The Y coordinate of the point.
290 * \param theZ The Z coordinate of the point.
291 * \return New GEOM_Object, containing the created point.
293 GEOM_Object MakePointXYZ (in double theX, in double theY, in double theZ);
296 * Create a point, distant from the referenced point
297 * on the given distances along the coordinate axes.
298 * \param theReference The referenced point.
299 * \param theX Displacement from the referenced point along OX axis.
300 * \param theY Displacement from the referenced point along OY axis.
301 * \param theZ Displacement from the referenced point along OZ axis.
302 * \return New GEOM_Object, containing the created point.
304 GEOM_Object MakePointWithReference (in GEOM_Object theReference,
305 in double theX, in double theY, in double theZ);
308 * Create a point, corresponding to the given parameter on the given curve.
309 * \param theRefCurve The referenced curve.
310 * \param theParameter Value of parameter on the referenced curve.
311 * \return New GEOM_Object, containing the created point.
313 GEOM_Object MakePointOnCurve (in GEOM_Object theRefCurve,
314 in double theParameter);
317 * Create a point, corresponding to the given parameters on the
319 * \param theRefSurf The referenced surface.
320 * \param theUParameter Value of U-parameter on the referenced surface.
321 * \param theVParameter Value of V-parameter on the referenced surface.
322 * \return New GEOM_Object, containing the created point.
324 GEOM_Object MakePointOnSurface (in GEOM_Object theRefSurf,
325 in double theUParameter,
326 in double theVParameter);
329 * Create a point, on two lines intersection.
330 * \param theRefLine1, theRefLine2 The referenced lines.
331 * \return New GEOM_Object, containing the created point.
333 GEOM_Object MakePointOnLinesIntersection (in GEOM_Object theRefLine1,
334 in GEOM_Object theRefLine2);
337 * Create a vector, corresponding to tangent to the given parameter on the given curve.
338 * \param theRefCurve The referenced curve.
339 * \param theParameter Value of parameter on the referenced curve.This value should be have value
340 * \between 0. and 1.. Value of 0. corresponds first parameter of curve value 1. corresponds
341 * \last parameter of curve.
342 * \return New GEOM_Object, containing the created point.
344 GEOM_Object MakeTangentOnCurve (in GEOM_Object theRefCurve,
345 in double theParameter);
348 * Create a vector with the given components.
349 * \param theDX X component of the vector.
350 * \param theDY Y component of the vector.
351 * \param theDZ Z component of the vector.
352 * \return New GEOM_Object, containing the created vector.
354 GEOM_Object MakeVectorDXDYDZ (in double theDX,
359 * Create a vector between two points.
360 * \param thePnt1 Start point for the vector.
361 * \param thePnt2 End point for the vector.
362 * \return New GEOM_Object, containing the created vector.
364 GEOM_Object MakeVectorTwoPnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
367 * Create a line, passing through the given point
368 * and parrallel to the given direction
369 * \param thePnt Point. The resulting line will pass through it.
370 * \param theDir Direction. The resulting line will be parallel to it.
371 * \return New GEOM_Object, containing the created line.
373 GEOM_Object MakeLine (in GEOM_Object thePnt, in GEOM_Object theDir);
376 * Create a line, passing through the given points
377 * \param thePnt1 First of two points, defining the line.
378 * \param thePnt2 Second of two points, defining the line.
379 * \return New GEOM_Object, containing the created line.
381 GEOM_Object MakeLineTwoPnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
384 * Create a line, given by two faces intersection.
385 * \param theFace1 First of two faces, defining the line.
386 * \param theFace2 Second of two faces, defining the line.
387 * \return New GEOM_Object, containing the created line.
389 GEOM_Object MakeLineTwoFaces (in GEOM_Object theFace1, in GEOM_Object theFace2);
392 * Create a plane, passing through the three given points
393 * \param thePnt1 First of three points, defining the plane.
394 * \param thePnt2 Second of three points, defining the plane.
395 * \param thePnt3 Fird of three points, defining the plane.
396 * \param theTrimSize Half size of a side of quadrangle face, representing the plane.
397 * \return New GEOM_Object, containing the created plane.
399 GEOM_Object MakePlaneThreePnt (in GEOM_Object thePnt1,
400 in GEOM_Object thePnt2,
401 in GEOM_Object thePnt3,
402 in double theTrimSize);
405 * Create a plane, passing through the given point
406 * and normal to the given vector.
407 * \param thePnt Point, the plane has to pass through.
408 * \param theVec Vector, defining the plane normal direction.
409 * \param theTrimSize Half size of a side of quadrangle face, representing the plane.
410 * \return New GEOM_Object, containing the created plane.
412 GEOM_Object MakePlanePntVec (in GEOM_Object thePnt,
413 in GEOM_Object theVec,
414 in double theTrimSize);
417 * Create a plane, similar to the existing one, but with another size of representing face.
418 * \param theFace Referenced plane or LCS(Marker).
419 * \param theTrimSize New half size of a side of quadrangle face, representing the plane.
420 * \return New GEOM_Object, containing the created plane.
422 GEOM_Object MakePlaneFace (in GEOM_Object theFace,
423 in double theTrimSize);
426 * Create a local coordinate system.
427 * \param theOX,theOY,theOZ Three coordinates of coordinate system origin.
428 * \param theXDX,theXDY,theXDZ Three components of OX direction
429 * \param theYDX,theYDY,theYDZ Three components of OY direction
430 * \return New GEOM_Object, containing the created coordinate system.
432 GEOM_Object MakeMarker (in double theOX , in double theOY , in double theOZ,
433 in double theXDX, in double theXDY, in double theXDZ,
434 in double theYDX, in double theYDY, in double theYDZ);
437 * Create a tangent plane to specified face in the point with specified parameters.
438 * Values of parameters should be between 0. and 1.0
439 * \param theFace - face for which tangent plane shuold be built.
440 * \param theParameterU - value of parameter by U
441 * \param theParameterV - value of parameter Vthe
442 * \param theTrimSize - defines sizes of created face
443 * \return New GEOM_Object, containing the face built on tangent plane.
445 GEOM_Object MakeTangentPlaneOnFace(in GEOM_Object theFace,
446 in double theParameterU,
447 in double theParameterV,
448 in double theTrimSize);
451 interface GEOM_ITransformOperations : GEOM_IOperations
454 * Translate the given object along the vector, specified by its end points.
455 * \param theObject The object to be translated.
456 * \param thePoint1 Start point of translation vector.
457 * \param thePoint2 End point of translation vector.
460 GEOM_Object TranslateTwoPoints (in GEOM_Object theObject,
461 in GEOM_Object thePoint1,
462 in GEOM_Object thePoint2);
465 * Translate the given object along the vector, specified
466 * by its end points, creating its copy before the translation.
467 * \param theObject The object to be translated.
468 * \param thePoint1 Start point of translation vector.
469 * \param thePoint2 End point of translation vector.
470 * \return New GEOM_Object, containing the translated object.
472 GEOM_Object TranslateTwoPointsCopy (in GEOM_Object theObject,
473 in GEOM_Object thePoint1,
474 in GEOM_Object thePoint2);
477 * Translate the given object along the vector, specified by its components.
478 * \param theObject The object to be translated.
479 * \param theDX,theDY,theDZ Components of translation vector.
482 GEOM_Object TranslateDXDYDZ (in GEOM_Object theObject,
483 in double theDX, in double theDY, in double theDZ);
486 * Translate the given object along the vector, specified
487 * by its components, creating its copy before the translation.
488 * \param theObject The object to be translated.
489 * \param theDX,theDY,theDZ Components of translation vector.
490 * \return New GEOM_Object, containing the translated object.
492 GEOM_Object TranslateDXDYDZCopy (in GEOM_Object theObject,
493 in double theDX, in double theDY, in double theDZ);
497 * Translate the given object along the given vector.
498 * \param theObject The object to be translated.
499 * \param theVector Translation vector, giving both direction and distance.
502 GEOM_Object TranslateVector (in GEOM_Object theObject,
503 in GEOM_Object theVector);
506 * Translate the given object along the given vector,
507 * creating its copy before the translation.
508 * \param theObject The object to be translated.
509 * \param theVector Translation vector, giving both direction and distance.
510 * \return New GEOM_Object, containing the translated object.
512 GEOM_Object TranslateVectorCopy (in GEOM_Object theObject,
513 in GEOM_Object theVector);
516 * Translate the given object along the given vector on given distance,
517 * creating its copy before the translation.
518 * \param theObject The object to be translated.
519 * \param theVector Translation vector, giving a direction.
520 * \param theDistance Translation distance, giving a distance.
521 * \param theCope Translation copy, creating its copy if true.
522 * \return New GEOM_Object, containing the translated object.
524 GEOM_Object TranslateVectorDistance (in GEOM_Object theObject,
525 in GEOM_Object theVector,
526 in double theDistance,
530 * Translate the given object along the given vector a given number times
531 * \param theObject The object to be translated.
532 * \param theVector Direction of the translation.
533 * \param theStep Distance to translate on.
534 * \param theNbTimes Quantity of translations to be done.
535 * \return New GEOM_Object, containing compound of all
536 * the shapes, obtained after each translation.
538 GEOM_Object MultiTranslate1D (in GEOM_Object theObject,
539 in GEOM_Object theVector,
544 * Conseqently apply two specified translations to theObject specified number of times.
545 * \param theObject The object to be translated.
546 * \param theVector1 Direction of the first translation.
547 * \param theStep1 Step of the first translation.
548 * \param theNbTimes1 Quantity of translations to be done along theVector1.
549 * \param theVector2 Direction of the second translation.
550 * \param theStep2 Step of the second translation.
551 * \param theNbTimes2 Quantity of translations to be done along theVector2.
552 * \return New GEOM_Object, containing compound of all
553 * the shapes, obtained after each translation.
555 GEOM_Object MultiTranslate2D (in GEOM_Object theObject,
556 in GEOM_Object theVector1,
559 in GEOM_Object theVector2,
561 in long theNbTimes2);
564 * Rotate given object around vector perpendicular to plane containing three points.
565 * \param theObject The object to be rotated.
566 * \param theCentPoint central point - the axis is the vector perpendicular to the plane
567 * containing the three points.
568 * \param thePoint1 and thePoint2 - in a perpendicular plan of the axis.
571 GEOM_Object RotateThreePoints (in GEOM_Object theObject,
572 in GEOM_Object theCentPoint,
573 in GEOM_Object thePoint1,
574 in GEOM_Object thePoint2);
578 * Rotate given object around vector perpendicular to plane containing three points.
579 * Creating its copy before the rotatation.
580 * \param theObject The object to be rotated.
581 * \param theCentPoint central point - the axis is the vector perpendicular to the plane
582 * containing the three points.
583 * \param thePoint1 and thePoint2 - in a perpendicular plan of the axis.
584 * \return New GEOM_Object, containing the rotated object.
586 GEOM_Object RotateThreePointsCopy (in GEOM_Object theObject,
587 in GEOM_Object theCentPoint,
588 in GEOM_Object thePoint1,
589 in GEOM_Object thePoint2);
592 * Rotate the given object around the given axis on the given angle.
593 * \param theObject The object to be rotated.
594 * \param theAxis Rotation axis.
595 * \param theAngle Rotation angle in radians.
598 GEOM_Object Rotate (in GEOM_Object theObject,
599 in GEOM_Object theAxis,
604 * Rotate the given object around the given axis
605 * on the given angle, creating its copy before the rotatation.
606 * \param theObject The object to be rotated.
607 * \param theAxis Rotation axis.
608 * \param theAngle Rotation angle in radians.
609 * \return New GEOM_Object, containing the rotated object.
611 GEOM_Object RotateCopy (in GEOM_Object theObject,
612 in GEOM_Object theAxis,
617 * Rotate the given object around the given axis a given number times.
618 * Rotation angle will be 2*PI/theNbTimes.
619 * \param theObject The object to be rotated.
620 * \param theAxis The rotation axis.
621 * \param theNbTimes Quantity of rotations to be done.
622 * \return New GEOM_Object, containing compound of all the
623 * shapes, obtained after each rotation.
625 GEOM_Object MultiRotate1D (in GEOM_Object theObject,
626 in GEOM_Object theAxis,
630 * Rotate the given object around the
631 * given axis on the given angle a given number
632 * times and multi-translate each rotation result.
633 * Translation direction passes through center of gravity
634 * of rotated shape and its projection on the rotation axis.
635 * \param theObject The object to be rotated.
636 * \param theAxis Rotation axis.
637 * \param theAngle Rotation angle in graduces.
638 * \param theNbTimes1 Quantity of rotations to be done.
639 * \param theStep Translation distance.
640 * \param theNbTimes2 Quantity of translations to be done.
641 * \return New GEOM_Object, containing compound of all the
642 * shapes, obtained after each transformation.
644 GEOM_Object MultiRotate2D (in GEOM_Object theObject,
645 in GEOM_Object theAxis,
649 in long theNbTimes2);
652 * Replace the given object by an object,
653 * symmetrical to it relatively the given plane.
654 * \param theObject The object to be mirrored.
655 * \param thePlane Plane of symmetry.
657 GEOM_Object MirrorPlane (in GEOM_Object theObject, in GEOM_Object thePlane);
660 * Create an object, symmetrical
661 * to the given one relatively the given plane.
662 * \param theObject The object to be mirrored.
663 * \param thePlane Plane of symmetry.
664 * \return New GEOM_Object, containing the mirrored shape.
666 GEOM_Object MirrorPlaneCopy (in GEOM_Object theObject, in GEOM_Object thePlane);
669 * Replace the given object by an object,
670 * symmetrical to it relatively the given axis.
671 * \param theObject The object to be mirrored.
672 * \param theAxis Axis of symmetry.
675 GEOM_Object MirrorAxis (in GEOM_Object theObject, in GEOM_Object theAxis);
678 * Create an object, symmetrical
679 * to the given one relatively the given axis.
680 * \param theObject The object to be mirrored.
681 * \param theAxis Axis of symmetry.
682 * \return New GEOM_Object, containing the mirrored object.
684 GEOM_Object MirrorAxisCopy (in GEOM_Object theObject, in GEOM_Object theAxis);
687 * Replace the given object by an object, symmetrical to it relatively the given point.
688 * \param theObject The object to be mirrored.
689 * \param thePoint Point of symmetry.
692 GEOM_Object MirrorPoint (in GEOM_Object theObject, in GEOM_Object thePoint);
695 * Create an object, symmetrical to the given one relatively the given point.
696 * \param theObject The object to be mirrored.
697 * \param thePoint Point of symmetry.
698 * \return New GEOM_Object, containing the mirrored object.
700 GEOM_Object MirrorPointCopy (in GEOM_Object theObject, in GEOM_Object thePoint);
703 * Replace the given object by its offset.
704 * \param theObject The base object for the offset.
705 * \param theOffset Offset value.
708 GEOM_Object OffsetShape (in GEOM_Object theObject, in double theOffset);
711 * Create new object as offset of the given one.
712 * \param theObject The base object for the offset.
713 * \param theOffset Offset value.
714 * \return New GEOM_Object, containing the offset object.
716 GEOM_Object OffsetShapeCopy (in GEOM_Object theObject, in double theOffset);
719 * Scale the given object by the factor.
720 * \param theObject The object to be scaled.
721 * \param thePoint Center point for scaling.
722 * \param theFactor Scaling factor value.
725 GEOM_Object ScaleShape (in GEOM_Object theObject, in GEOM_Object thePoint,
726 in double theFactor);
729 * Scale the given object by the factor, creating its copy before the scaling.
730 * \param theObject The object to be scaled.
731 * \param thePoint Center point for scaling.
732 * \param theFactor Scaling factor value.
733 * \return New GEOM_Object, containing the scaled shape.
735 GEOM_Object ScaleShapeCopy (in GEOM_Object theObject, in GEOM_Object thePoint,
736 in double theFactor);
739 * Scale the given object by different factors along coordinate axes.
740 * \param theObject The object to be scaled.
741 * \param thePoint Center point for scaling.
742 * \param theFactorX,theFactorY,theFactorZ Scaling factors along each axis.
745 GEOM_Object ScaleShapeAlongAxes (in GEOM_Object theObject,
746 in GEOM_Object thePoint,
747 in double theFactorX,
748 in double theFactorY,
749 in double theFactorZ);
752 * Scale the given object by different factors along coordinate axes,
753 * creating its copy before the scaling.
754 * \param theObject The object to be scaled.
755 * \param thePoint Center point for scaling.
756 * \param theFactorX,theFactorY,theFactorZ Scaling factors along each axis.
757 * \return New GEOM_Object, containing the scaled shape.
759 GEOM_Object ScaleShapeAlongAxesCopy (in GEOM_Object theObject,
760 in GEOM_Object thePoint,
761 in double theFactorX,
762 in double theFactorY,
763 in double theFactorZ);
766 * Modify the Location of the given object by LCS.
767 * \param theObject The object to be displaced.
768 * \param theStartLCS Coordinate system to perform displacement from it.
769 * If \a theStartLCS is NULL, displacement
770 * will be performed from global CS.
771 * If \a theObject itself is used as \a theStartLCS,
772 * its location will be changed to \a theEndLCS.
773 * \param theEndLCS Coordinate system to perform displacement to it.
776 GEOM_Object PositionShape (in GEOM_Object theObject,
777 in GEOM_Object theStartLCS,
778 in GEOM_Object theEndLCS);
781 * Modify the Location of the given object by LCS,
782 * creating its copy before the setting.
783 * \param theObject The object to be displaced.
784 * \param theStartLCS Coordinate system to perform displacement from it.
785 * If \a theStartLCS is NULL, displacement
786 * will be performed from global CS.
787 * If \a theObject itself is used as \a theStartLCS,
788 * its location will be changed to \a theEndLCS.
789 * \param theEndLCS Coordinate system to perform displacement to it.
790 * \return New GEOM_Object, containing the displaced shape.
792 GEOM_Object PositionShapeCopy (in GEOM_Object theObject,
793 in GEOM_Object theStartLCS,
794 in GEOM_Object theEndLCS);
798 * GEOM_I3DPrimOperations: Interface for 3D primitives creation
799 * Box, Cylinder, Cone, Sphere, Prism (extrusion),
800 * Pipe (extrusion along contour), Revolution, Solid (from shell).
802 interface GEOM_I3DPrimOperations : GEOM_IOperations
805 * Create a box with specified dimensions along the coordinate axes
806 * and with edges, parallel to the coordinate axes.
807 * Center of the box will be at point (DX/2, DY/2, DZ/2).
808 * \param theDX Length of Box edges, parallel to OX axis.
809 * \param theDY Length of Box edges, parallel to OY axis.
810 * \param theDZ Length of Box edges, parallel to OZ axis.
811 * \return New GEOM_Object, containing the created box.
813 GEOM_Object MakeBoxDXDYDZ (in double theDX, in double theDY, in double theDZ);
816 * Create a box with two specified opposite vertices,
817 * and with edges, parallel to the coordinate axes
818 * \param thePnt1 First of two opposite vertices.
819 * \param thePnt2 Second of two opposite vertices.
820 * \return New GEOM_Object, containing the created box.
822 GEOM_Object MakeBoxTwoPnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
825 * Create a face specified dimensions along OX-OY coordinate axes,
826 * with edges parallel to the coordinate axes.
827 * Center of the face will be at point (0, 0, 0).
828 * \param theH length of Face edge, parallel to OX axis.
829 * \param theW lenght of Face edge, patallel to OY axis.
830 * \return New GEOM_Object, containing the created face.
832 GEOM_Object MakeFaceHW (in double theH, in double theW);
834 * Create a face by another plane and two specified sizes,
835 * vertical (H) and horisontal (W).
836 * \param theFace defines plane.
837 * \param theH vertical size (height).
838 * \param theW horisontal size (width).
839 * \return New GEOM_Object, containing the created face.
841 GEOM_Object MakeFacePlaneHW (in GEOM_Object theFace, in double theH, in double theW);
843 * Create a Disk (circular face) with given center, normal vector and radius.
844 * \param thePnt disk center.
845 * \param theVec Vector, normal to the plane of the disk.
846 * \param theR Disk radius.
847 * \return New GEOM_Object, containing the created disk.
849 GEOM_Object MakeDiskPntVecR (in GEOM_Object thePnt,
850 in GEOM_Object theVec,
853 * Create a disk (circular face), passing through three given points
854 * \param thePnt1, thePnt2, thePnt3 Points, defining the disk.
855 * \return New GEOM_Object, containing the created disk.
857 GEOM_Object MakeDiskThreePnt (in GEOM_Object thePnt1,
858 in GEOM_Object thePnt2,
859 in GEOM_Object thePnt3);
861 * Create a cylinder with given radius and height at
862 * the origin of coordinate system. Axis of the cylinder
863 * will be collinear to the OZ axis of the coordinate system.
864 * \param theR Cylinder radius.
865 * \param theH Cylinder height.
866 * \return New GEOM_Object, containing the created cylinder.
868 GEOM_Object MakeCylinderRH (in double theR, in double theH);
871 * Create a cylinder with given base point, axis, radius and height.
872 * \param thePnt Central point of cylinder base.
873 * \param theAxis Cylinder axis.
874 * \param theR Cylinder radius.
875 * \param theH Cylinder height.
876 * \return New GEOM_Object, containing the created cylinder.
878 GEOM_Object MakeCylinderPntVecRH (in GEOM_Object thePnt,
879 in GEOM_Object theAxis,
884 * Create a cone with given height and radiuses at
885 * the origin of coordinate system. Axis of the cone will
886 * be collinear to the OZ axis of the coordinate system.
887 * \param theR1 Radius of the first cone base.
888 * \param theR2 Radius of the second cone base.
889 * \note If both radiuses are non-zero, the cone will be truncated.
890 * \note If the radiuses are equal, a cylinder will be created instead.
891 * \param theH Cone height.
892 * \return New GEOM_Object, containing the created cone.
894 GEOM_Object MakeConeR1R2H (in double theR1, in double theR2, in double theH);
897 * Create a cone with given base point, axis, height and radiuses.
898 * \param thePnt Central point of the first cone base.
899 * \param theAxis Cone axis.
900 * \param theR1 Radius of the first cone base.
901 * \param theR2 Radius of the second cone base.
902 * \note If both radiuses are non-zero, the cone will be truncated.
903 * \note If the radiuses are equal, a cylinder will be created instead.
904 * \param theH Cone height.
905 * \return New GEOM_Object, containing the created cone.
907 GEOM_Object MakeConePntVecR1R2H (in GEOM_Object thePnt,
908 in GEOM_Object theAxis,
914 * Create a torus with given radiuses at the origin of coordinate system.
915 * \param theRMajor Torus major radius.
916 * \param theRMinor Torus minor radius.
917 * \return New GEOM_Object, containing the created torus.
919 GEOM_Object MakeTorusRR (in double theRMajor,
920 in double theRMinor);
923 * Create a torus with given center, normal vector and radiuses.
924 * \param thePnt Torus central point.
925 * \param theVec Torus axis of symmetry.
926 * \param theRMajor Torus major radius.
927 * \param theRMinor Torus minor radius.
928 * \return New GEOM_Object, containing the created torus.
930 GEOM_Object MakeTorusPntVecRR (in GEOM_Object thePnt,
931 in GEOM_Object theVec,
933 in double theRMinor);
936 * Create a sphere with given radius at the origin of coordinate system.
937 * \param theR Sphere radius.
938 * \return New GEOM_Object, containing the created sphere.
940 GEOM_Object MakeSphereR (in double theR);
943 * Create a sphere with given center and radius.
944 * \param thePnt Sphere center.
945 * \param theR Sphere radius.
946 * \return New GEOM_Object, containing the created .
948 GEOM_Object MakeSpherePntR (in GEOM_Object thePnt, in double theR);
951 * Create a shape by extrusion of the base shape along the vector,
952 * i.e. all the space, transfixed by the base shape during its translation
953 * along the vector on the given distance.
954 * \param theBase Base shape to be extruded.
955 * \param theVec Direction of extrusion.
956 * \param theH Prism dimension along theVec.
957 * \return New GEOM_Object, containing the created prism.
959 GEOM_Object MakePrismVecH (in GEOM_Object theBase,
960 in GEOM_Object theVec,
962 /* The Same Prism but in 2 directions (forward&backward) */
963 GEOM_Object MakePrismVecH2Ways (in GEOM_Object theBase,
964 in GEOM_Object theVec,
968 * Create a shape by extrusion of the base shape along a vector, defined by two points.
969 * \param theBase Base shape to be extruded.
970 * \param thePoint1 First end of extrusion vector.
971 * \param thePoint2 Second end of extrusion vector.
972 * \return New GEOM_Object, containing the created prism.
974 GEOM_Object MakePrismTwoPnt (in GEOM_Object theBase,
975 in GEOM_Object thePoint1,
976 in GEOM_Object thePoint2);
977 /* The same prism but in two directions forward&backward */
978 GEOM_Object MakePrismTwoPnt2Ways (in GEOM_Object theBase,
979 in GEOM_Object thePoint1,
980 in GEOM_Object thePoint2);
983 * Create a shape by extrusion of the base shape along a vector, defined by DX DY DZ.
984 * \param theBase Base shape to be extruded.
985 * \param DX, DY, DZ end of extrusion vector.
986 * \return New GEOM_Object, containing the created prism.
988 GEOM_Object MakePrismDXDYDZ (in GEOM_Object theBase,
989 in double theDX, in double theDY, in double theDZ);
990 /* The same prism but in two directions forward&backward */
991 GEOM_Object MakePrismDXDYDZ2Ways (in GEOM_Object theBase,
992 in double theDX, in double theDY, in double theDZ);
995 * Create a shape by extrusion of the base shape along
996 * the path shape. The path shape can be a wire or an edge.
997 * \param theBase Base shape to be extruded.
998 * \param thePath Path shape to extrude the base shape along it.
999 * \return New GEOM_Object, containing the created pipe.
1001 GEOM_Object MakePipe (in GEOM_Object theBase, in GEOM_Object thePath);
1004 * Create a shape by revolution of the base shape around the axis
1005 * on the given angle, i.e. all the space, transfixed by the base
1006 * shape during its rotation around the axis on the given angle.
1007 * \param theBase Base shape to be rotated.
1008 * \param theAxis Rotation axis.
1009 * \param theAngle Rotation angle in radians.
1010 * \return New GEOM_Object, containing the created revolution.
1012 GEOM_Object MakeRevolutionAxisAngle (in GEOM_Object theBase,
1013 in GEOM_Object theAxis,
1014 in double theAngle);
1015 /* The Same Revolution but in both ways forward&backward */
1016 GEOM_Object MakeRevolutionAxisAngle2Ways (in GEOM_Object theBase,
1017 in GEOM_Object theAxis,
1018 in double theAngle);
1021 * Create a filling from the given compound of contours.
1022 * \param theMinDeg a minimal degree of BSpline surface to create
1023 * \param theMaxDeg a maximal degree of BSpline surface to create
1024 * \param theTol2D a 2d tolerance to be reached
1025 * \param theTol3D a 3d tolerance to be reached
1026 * \param theNbIter a number of iteration of approximation algorithm
1027 * \return New GEOM_Object, containing the created filling surface.
1029 GEOM_Object MakeFilling (in GEOM_Object theShape,
1030 in long theMinDeg, in long theMaxDeg,
1031 in double theTol2D, in double theTol3D,
1032 in long theNbIter, in boolean theApprox);
1035 * Create a shell or solid passing through set of sections.Sections should be wires,edges or vertices.
1036 * \param theSeqSections - set of specified sections.
1037 * \param theModeSolid - mode defining building solid or shell
1038 * \param thePreci - precision 3D used for smoothing by default 1.e-6
1039 * \param theRuled - mode defining type of the result surfaces (ruled or smoothed).
1040 * \return New GEOM_Object, containing the created shell or solid.
1042 GEOM_Object MakeThruSections(in ListOfGO theSeqSections,
1043 in boolean theModeSolid,
1045 in boolean theRuled);
1048 * Create a shape by extrusion of the profile shape along
1049 * the path shape. The path shape can be a wire or an edge.
1050 * the several profiles can be specified in the several locations of path.
1051 * \param theSeqBases - list of Bases shape to be extruded.
1052 * \param theLocations - list of locations on the path corresponding
1053 * specified list of the Bases shapes. Number of locations
1054 * should be equal to number of bases or list of locations can be empty.
1055 * \param thePath - Path shape to extrude the base shape along it.
1056 * \param theWithContact - the mode defining that the section is translated to be in
1057 * contact with the spine.
1058 * \param - WithCorrection - defining that the section is rotated to be
1059 * orthogonal to the spine tangent in the correspondent point
1060 * \return New GEOM_Object, containing the created pipe.
1062 GEOM_Object MakePipeWithDifferentSections (in ListOfGO theSeqBases,
1063 in ListOfGO theLocations,
1064 in GEOM_Object thePath,
1065 in boolean theWithContact ,
1066 in boolean theWithCorrection );
1069 * Create a shape by extrusion of the profile shape along
1070 * the path shape. The path shape can be a shell or a face.
1071 * the several profiles can be specified in the several locations of path.
1072 * \param theSeqBases - list of Bases shape to be extruded.
1073 * \param theSeqSubBases - list of corresponding subshapes of section shapes.
1074 * \param theLocations - list of locations on the path corresponding
1075 * specified list of the Bases shapes. Number of locations
1076 * should be equal to number of bases.
1077 * \param thePath - Path shape to extrude the base shape along it.
1078 * \param theWithContact - the mode defining that the section is translated to be in
1079 * contact with the spine.
1080 * \param - WithCorrection - defining that the section is rotated to be
1081 * orthogonal to the spine tangent in the correspondent point
1082 * \return New GEOM_Object, containing the created pipe.
1084 GEOM_Object MakePipeWithShellSections (in ListOfGO theSeqBases,
1085 in ListOfGO theSeqSubBases,
1086 in ListOfGO theLocations,
1087 in GEOM_Object thePath,
1088 in boolean theWithContact ,
1089 in boolean theWithCorrection );
1092 * Create solids between given sections
1093 * \param theSeqBases - list of sections (shell or face).
1094 * \param theLocations - list of corresponding vertexes
1095 * \return New GEOM_Object, containing the created solids.
1097 GEOM_Object MakePipeShellsWithoutPath (in ListOfGO theSeqBases,
1098 in ListOfGO theLocations);
1102 * GEOM_IShapesOperations: Interface for Shapes creation:
1103 * Edge from two points, Wire from edges, Face from wire,
1104 * Shell from faces, Solid from shells, Compound from shapes
1106 interface GEOM_IShapesOperations : GEOM_IOperations
1109 * Create a linear edge with specified ends.
1110 * \param thePnt1 Point for the first end of edge.
1111 * \param thePnt2 Point for the second end of edge.
1112 * \return New GEOM_Object, containing the created edge.
1114 GEOM_Object MakeEdge (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
1117 * Create a wire from the set of edges and wires.
1118 * \param theEdgesAndWires List of edge and/or wires.
1119 * \return New GEOM_Object, containing the created wire.
1121 GEOM_Object MakeWire (in ListOfGO theEdgesAndWires);
1124 * Create a face on the given wire.
1125 * \param theWire closed Wire or Edge to build the face on.
1126 * \param isPlanarWanted If TRUE, only planar face will be built.
1127 * If impossible, NULL object will be returned.
1128 * \return New GEOM_Object, containing the created face.
1130 GEOM_Object MakeFace (in GEOM_Object theWire, in boolean isPlanarWanted);
1133 * Create a face on the given wires set.
1134 * \param theWires List of closed wires or edges to build the face on.
1135 * \param isPlanarWanted If TRUE, only planar face will be built.
1136 * If impossible, NULL object will be returned.
1137 * \return New GEOM_Object, containing the created face.
1139 GEOM_Object MakeFaceWires (in ListOfGO theWires, in boolean isPlanarWanted);
1142 * Create a shell from the set of faces and shells.
1143 * \param theFacesAndShells List of faces and/or shells.
1144 * \return New GEOM_Object, containing the created shell.
1146 GEOM_Object MakeShell (in ListOfGO theFacesAndShells);
1149 * Create a solid, bounded by the given shell.
1150 * \param theShell Bounding shell.
1151 * \return New GEOM_Object, containing the created solid.
1153 GEOM_Object MakeSolidShell (in GEOM_Object theShell);
1156 * Create a solid, bounded by the given shells.
1157 * \param theShells Bounding shells.
1158 * \return New GEOM_Object, containing the created solid.
1160 GEOM_Object MakeSolidShells (in ListOfGO theShells);
1163 * Create a compound of the given shapes.
1164 * \param theShapes List of shapes to put in compound.
1165 * \return New GEOM_Object, containing the created compound.
1167 GEOM_Object MakeCompound (in ListOfGO theShapes);
1170 * Replace coincident faces in theShape by one face.
1171 * \param theShape Initial shape.
1172 * \param theTolerance Maximum distance between faces, which can be considered as coincident.
1173 * \param doKeepNonSolids If FALSE, only solids will present in the result, otherwise all initial shapes.
1174 * \return New GEOM_Object, containing a copy of theShape without coincident faces.
1176 GEOM_Object MakeGlueFaces (in GEOM_Object theShape, in double theTolerance, in boolean doKeepNonSolids);
1179 * Find coincident faces in theShape for possible gluing.
1180 * \param theShape Initial shape.
1181 * \param theTolerance Maximum distance between faces, which can be considered as coincident.
1184 ListOfGO GetGlueFaces (in GEOM_Object theShape, in double theTolerance);
1187 * Replace coincident faces in theShape by one face
1188 * in compliance with given list of faces
1189 * \param theShape Initial shape.
1190 * \param theTolerance Maximum distance between faces, which can be considered as coincident.
1191 * \param theFaces List of faces for gluing.
1192 * \param doKeepNonSolids If FALSE, only solids will present in the result, otherwise all initial shapes.
1193 * \return New GEOM_Object, containing a copy of theShape without some faces.
1195 GEOM_Object MakeGlueFacesByList (in GEOM_Object theShape, in double theTolerance,
1196 in ListOfGO theFaces, in boolean doKeepNonSolids);
1199 * Explode a shape on subshapes of a given type.
1200 * \param theShape Shape to be exploded.
1201 * \param theShapeType Type of sub-shapes to be retrieved.
1202 * \param isSorted If this parameter is TRUE, sub-shapes will be
1203 * sorted by coordinates of their gravity centers.
1204 * \return List of sub-shapes of type theShapeType, contained in theShape.
1206 ListOfGO MakeExplode (in GEOM_Object theShape,
1207 in long theShapeType,
1208 in boolean isSorted);
1211 * Explode a shape on subshapes of a given type.
1212 * Does the same, as the above method, but returns IDs of sub-shapes,
1213 * not GEOM_Objects. It works faster.
1214 * \param theShape Shape to be exploded.
1215 * \param theShapeType Type of sub-shapes to be retrieved.
1216 * \param isSorted If this parameter is TRUE, sub-shapes will be
1217 * sorted by coordinates of their gravity centers.
1218 * \return List of IDs of sub-shapes of type theShapeType, contained in theShape.
1220 ListOfLong SubShapeAllIDs (in GEOM_Object theShape,
1221 in long theShapeType,
1222 in boolean isSorted);
1225 * Get a sub shape defined by its unique ID inside \a theMainShape
1226 * \note The sub shape GEOM_Objects can has ONLY ONE function.
1227 * Don't try to apply modification operations on them.
1229 GEOM_Object GetSubShape (in GEOM_Object theMainShape,
1233 * Get global index of \a theSubShape in \a theMainShape.
1234 * \param theMainShape Main shape.
1235 * \param theSubShape Sub-shape of the main shape.
1236 * \return global index of \a theSubShape in \a theMainShape.
1238 long GetSubShapeIndex (in GEOM_Object theMainShape, in GEOM_Object theSubShape);
1241 * Get index of \a theSubShape in \a theMainShape, unique among sub-shapes of the same type.
1242 * Together with method <VAR>GetShapeTypeString()</VAR> it can be used
1243 * to generate automatic names for sub-shapes, when publishing them in a study.
1244 * \param theMainShape Main shape.
1245 * \param theSubShape Sub-shape of the main shape.
1246 * \return index of \a theSubShape in a list of all sub-shapes of \a theMainShape of the same type.
1248 long GetTopologyIndex (in GEOM_Object theMainShape, in GEOM_Object theSubShape);
1251 * \brief Get name of type of \a theShape.
1253 * Use wide type notation, taking into consideration both topology and geometry of the shape.
1254 * Together with method <VAR>GetTopologyIndex()</VAR> it can be used
1255 * to generate automatic names for sub-shapes, when publishing them in a study.
1256 * \param theShape The shape to get a type of.
1257 * \return String, containing a type name of \a theShape.
1259 string GetShapeTypeString (in GEOM_Object theShape);
1262 * Count number of faces in the given shape.
1263 * \param theShape Shape to count faces in.
1264 * \return Number of faces in the given shape.
1266 long NumberOfFaces (in GEOM_Object theShape);
1269 * Count number of edges in the given shape.
1270 * \param theShape Shape to count edges in.
1271 * \return Number of edges in theShape.
1273 long NumberOfEdges (in GEOM_Object theShape);
1276 * Reverses an orientation the given shape.
1277 * \param theShape Shape to be reversed.
1278 * \return The reversed copy of theShape.
1280 GEOM_Object ChangeOrientation (in GEOM_Object theShape);
1283 * Retrieve all free faces from the given shape.
1284 * Free face is a face, which is not shared between two shells of the shape.
1285 * \param theShape Shape to find free faces in.
1286 * \return List of IDs of all free faces, contained in theShape.
1288 ListOfLong GetFreeFacesIDs (in GEOM_Object theShape);
1291 * Get all sub-shapes of theShape1 of the given type, shared with theShape2.
1292 * \param theShape1 Shape to find sub-shapes in.
1293 * \param theShape2 Shape to find shared sub-shapes with.
1294 * \param theShapeType Type of sub-shapes to be retrieved.
1295 * \return List of sub-shapes of theShape1, shared with theShape2.
1297 ListOfGO GetSharedShapes (in GEOM_Object theShape1,
1298 in GEOM_Object theShape2,
1299 in long theShapeType);
1302 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1303 * the specified plane by the certain way, defined through \a theState parameter.
1304 * \param theShape Shape to find sub-shapes of.
1305 * \param theShapeType Type of sub-shapes to be retrieved.
1306 * \param theAx1 Vector (or line, or linear edge), specifying normal
1307 * direction and location of the plane to find shapes on.
1308 * \param theState The state of the subshapes to find.
1309 * \return List of all found sub-shapes.
1311 ListOfGO GetShapesOnPlane (in GEOM_Object theShape,
1312 in long theShapeType,
1313 in GEOM_Object theAx1,
1314 in shape_state theState);
1316 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1317 * the specified plane by the certain way, defined through \a theState parameter.
1318 * \param theShape Shape to find sub-shapes of.
1319 * \param theShapeType Type of sub-shapes to be retrieved.
1320 * \param theAx1 Vector (or line, or linear edge), specifying normal
1321 * direction of the plane to find shapes on.
1322 * \param thePnt Point specifying location of the plane to find shapes on.
1323 * \param theState The state of the subshapes to find.
1324 * \return List of all found sub-shapes.
1326 ListOfGO GetShapesOnPlaneWithLocation (in GEOM_Object theShape,
1327 in long theShapeType,
1328 in GEOM_Object theAx1,
1329 in GEOM_Object thePnt,
1330 in shape_state theState);
1335 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1336 * the specified cylinder by the certain way, defined through \a theState parameter.
1337 * \param theShape Shape to find sub-shapes of.
1338 * \param theShapeType Type of sub-shapes to be retrieved.
1339 * \param theAxis Vector (or line, or linear edge), specifying
1340 * axis of the cylinder to find shapes on.
1341 * \param theRadius Radius of the cylinder to find shapes on.
1342 * \param theState The state of the subshapes to find.
1343 * \return List of all found sub-shapes.
1345 ListOfGO GetShapesOnCylinder (in GEOM_Object theShape,
1346 in long theShapeType,
1347 in GEOM_Object theAxis,
1348 in double theRadius,
1349 in shape_state theState);
1352 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1353 * the specified sphere by the certain way, defined through \a theState parameter.
1354 * \param theShape Shape to find sub-shapes of.
1355 * \param theShapeType Type of sub-shapes to be retrieved.
1356 * \param theCenter Point, specifying center of the sphere to find shapes on.
1357 * \param theRadius Radius of the sphere to find shapes on.
1358 * \param theState The state of the subshapes to find.
1359 * \return List of all found sub-shapes.
1361 ListOfGO GetShapesOnSphere (in GEOM_Object theShape,
1362 in long theShapeType,
1363 in GEOM_Object theCenter,
1364 in double theRadius,
1365 in shape_state theState);
1368 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1369 * the specified quadrangle by the certain way, defined through \a theState parameter.
1370 * \param theShape Shape to find sub-shapes of.
1371 * \param theShapeType Type of sub-shapes to be retrieved.
1372 * \param theTopLeftPoint Top left quadrangle corner
1373 * \param theTopRigthPoint Top right quadrangle corner
1374 * \param theBottomLeftPoint Bottom left quadrangle corner
1375 * \param theBottomRigthPoint Bottom right quadrangle corner
1376 * \param theState The state of the subshapes to find.
1377 * \return List of all found sub-shapes.
1379 ListOfGO GetShapesOnQuadrangle (in GEOM_Object theShape,
1380 in long theShapeType,
1381 in GEOM_Object theTopLeftPoint,
1382 in GEOM_Object theTopRigthPoint,
1383 in GEOM_Object theBottomLeftPoint,
1384 in GEOM_Object theBottomRigthPoint,
1385 in shape_state theState);
1388 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1389 * the specified plane by the certain way, defined through \a theState parameter.
1390 * \param theShape Shape to find sub-shapes of.
1391 * \param theShapeType Type of sub-shapes to be retrieved.
1392 * \param theAx1 Vector (or line, or linear edge), specifying normal
1393 * direction and location of the plane to find shapes on.
1394 * \param theState The state of the subshapes to find.
1395 * \return List of IDs of all found sub-shapes.
1397 ListOfLong GetShapesOnPlaneIDs (in GEOM_Object theShape,
1398 in long theShapeType,
1399 in GEOM_Object theAx1,
1400 in shape_state theState);
1403 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1404 * the specified plane by the certain way, defined through \a theState parameter.
1405 * \param theShape Shape to find sub-shapes of.
1406 * \param theShapeType Type of sub-shapes to be retrieved.
1407 * \param theAx1 Vector (or line, or linear edge), specifying normal
1408 * direction of the plane to find shapes on.
1409 * \param thePnt Point specifying location of the plane to find shapes on.
1410 * \param theState The state of the subshapes to find.
1411 * \return List of IDs of all found sub-shapes.
1413 ListOfLong GetShapesOnPlaneWithLocationIDs (in GEOM_Object theShape,
1414 in long theShapeType,
1415 in GEOM_Object theAx1,
1416 in GEOM_Object thePnt,
1417 in shape_state theState);
1420 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1421 * the specified cylinder by the certain way, defined through \a theState parameter.
1422 * \param theShape Shape to find sub-shapes of.
1423 * \param theShapeType Type of sub-shapes to be retrieved.
1424 * \param theAxis Vector (or line, or linear edge), specifying
1425 * axis of the cylinder to find shapes on.
1426 * \param theRadius Radius of the cylinder to find shapes on.
1427 * \param theState The state of the subshapes to find.
1428 * \return List of IDs of all found sub-shapes.
1430 ListOfLong GetShapesOnCylinderIDs (in GEOM_Object theShape,
1431 in long theShapeType,
1432 in GEOM_Object theAxis,
1433 in double theRadius,
1434 in shape_state theState);
1437 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1438 * the specified sphere by the certain way, defined through \a theState parameter.
1439 * \param theShape Shape to find sub-shapes of.
1440 * \param theShapeType Type of sub-shapes to be retrieved.
1441 * \param theCenter Point, specifying center of the sphere to find shapes on.
1442 * \param theRadius Radius of the sphere to find shapes on.
1443 * \param theState The state of the subshapes to find.
1444 * \return List of IDs of all found sub-shapes.
1446 ListOfLong GetShapesOnSphereIDs (in GEOM_Object theShape,
1447 in long theShapeType,
1448 in GEOM_Object theCenter,
1449 in double theRadius,
1450 in shape_state theState);
1453 * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
1454 * the specified quadrangle by the certain way, defined through \a theState parameter.
1455 * \param theShape Shape to find sub-shapes of.
1456 * \param theShapeType Type of sub-shapes to be retrieved.
1457 * \param theTopLeftPoint Top left quadrangle corner
1458 * \param theTopRigthPoint Top right quadrangle corner
1459 * \param theBottomLeftPoint Bottom left quadrangle corner
1460 * \param theBottomRigthPoint Bottom right quadrangle corner
1461 * \param theState The state of the subshapes to find.
1462 * \return List of IDs of all found sub-shapes.
1464 ListOfLong GetShapesOnQuadrangleIDs (in GEOM_Object theShape,
1465 in long theShapeType,
1466 in GEOM_Object theTopLeftPoint,
1467 in GEOM_Object theTopRigthPoint,
1468 in GEOM_Object theBottomLeftPoint,
1469 in GEOM_Object theBottomRigthPoint,
1470 in shape_state theState);
1473 * \brief Find subshapes complying with given status
1474 * \param theBox - the box to check state of subshapes against
1475 * \param theShape - the shape to explore
1476 * \param theShapeType - type of subshape of theShape
1477 * \param theState - required state
1478 * \return List of IDs of all found sub-shapes.
1480 ListOfLong GetShapesOnBoxIDs (in GEOM_Object theBox,
1481 in GEOM_Object theShape,
1482 in long theShapeType,
1483 in shape_state theState);
1486 * \brief Find subshapes complying with given status
1487 * \param theBox - the box to check state of subshapes against
1488 * \param theShape - the shape to explore
1489 * \param theShapeType - type of subshape of theShape
1490 * \param theState - required state
1491 * \return List of all found sub-shapes.
1493 ListOfGO GetShapesOnBox (in GEOM_Object theBox,
1494 in GEOM_Object theShape,
1495 in long theShapeType,
1496 in shape_state theState);
1499 * \brief Find subshapes complying with given status
1500 * \param theCheckShape - the shape to check state of subshapes against
1501 * \param theShape - the shape to explore
1502 * \param theShapeType - type of subshape of theShape
1503 * \param theState - required state
1504 * \return List of IDs of all found sub-shapes.
1506 ListOfLong GetShapesOnShapeIDs (in GEOM_Object theCheckShape,
1507 in GEOM_Object theShape,
1508 in short theShapeType,
1509 in shape_state theState);
1512 * \brief Find subshapes complying with given status
1513 * \param theCheckShape - the shape to check state of subshapes against
1514 * \param theShape - the shape to explore
1515 * \param theShapeType - type of subshape of theShape
1516 * \param theState - required state
1517 * \return List of all found sub-shapes.
1519 ListOfGO GetShapesOnShape (in GEOM_Object theCheckShape,
1520 in GEOM_Object theShape,
1521 in short theShapeType,
1522 in shape_state theState);
1525 * \brief Find subshapes complying with given status
1526 * \param theCheckShape - the shape to check state of subshapes against
1527 * \param theShape - the shape to explore
1528 * \param theShapeType - type of subshape of theShape
1529 * \param theState - required state
1530 * \return compound includes all found sub-shapes.
1532 GEOM_Object GetShapesOnShapeAsCompound (in GEOM_Object theCheckShape,
1533 in GEOM_Object theShape,
1534 in short theShapeType,
1535 in shape_state theState);
1538 * Get sub-shape(s) of \a theShapeWhere, which are
1539 * coincident with \a theShapeWhat or could be a part of it.
1540 * \param theShapeWhere Shape to find sub-shapes of.
1541 * \param theShapeWhat Shape, specifying what to find.
1542 * \return Group of all found sub-shapes or a single found sub-shape.
1544 GEOM_Object GetInPlace (in GEOM_Object theShapeWhere,
1545 in GEOM_Object theShapeWhat);
1548 * Get sub-shape(s) of \a theShapeWhere, which are
1549 * coincident with \a theShapeWhat or could be a part of it.
1551 * Implementation of this method is based on a saved history of an operation,
1552 * produced \a theShapeWhere. The \a theShapeWhat must be among this operation's
1553 * arguments (an argument shape or a sub-shape of an argument shape).
1554 * The operation could be the Partition or one of boolean operations,
1555 * performed on simple shapes (not on compounds).
1557 * \param theShapeWhere Shape to find sub-shapes of.
1558 * \param theShapeWhat Shape, specifying what to find.
1559 * \return Group of all found sub-shapes or a single found sub-shape.
1561 GEOM_Object GetInPlaceByHistory (in GEOM_Object theShapeWhere,
1562 in GEOM_Object theShapeWhat);
1565 * Get sub-shape of theShapeWhere, which are
1566 * coincident with \a theShapeWhat that can either SOLID, FACE, EDGE or VERTEX.
1567 * \param theShapeWhere Shape to find sub-shapes of.
1568 * \param theShapeWhat Shape, specifying what to find.
1569 * \return found sub-shape.
1571 GEOM_Object GetSame (in GEOM_Object theShapeWhere,
1572 in GEOM_Object theShapeWhat);
1576 * GEOM_IBlocksOperations: Interface for Blocks construction
1577 * Face from points or edges, Block from faces,
1578 * Blocks multi-translation and multi-rotation
1580 interface GEOM_IBlocksOperations : GEOM_IOperations
1583 * Creation of blocks
1587 * Create a quadrangle face from four edges. Order of Edges is not
1588 * important. It is not necessary that edges share the same vertex.
1589 * \param theEdge1,theEdge2,theEdge3,theEdge4 Edges for the face bound.
1590 * \return New GEOM_Object, containing the created face.
1592 GEOM_Object MakeQuad (in GEOM_Object theEdge1,
1593 in GEOM_Object theEdge2,
1594 in GEOM_Object theEdge3,
1595 in GEOM_Object theEdge4);
1598 * Create a quadrangle face on two edges.
1599 * The missing edges will be built by creating the shortest ones.
1600 * \param theEdge1,theEdge2 Two opposite edges for the face.
1601 * \return New GEOM_Object, containing the created face.
1603 GEOM_Object MakeQuad2Edges (in GEOM_Object theEdge1,
1604 in GEOM_Object theEdge2);
1607 * Create a quadrangle face with specified corners.
1608 * The missing edges will be built by creating the shortest ones.
1609 * \param thePnt1,thePnt2,thePnt3,thePnt4 Corner vertices for the face.
1610 * \return New GEOM_Object, containing the created face.
1612 GEOM_Object MakeQuad4Vertices (in GEOM_Object thePnt1,
1613 in GEOM_Object thePnt2,
1614 in GEOM_Object thePnt3,
1615 in GEOM_Object thePnt4);
1618 * Create a hexahedral solid, bounded by the six given faces. Order of
1619 * faces is not important. It is not necessary that Faces share the same edge.
1620 * \param theFace1-theFace6 Faces for the hexahedral solid.
1621 * \return New GEOM_Object, containing the created solid.
1623 GEOM_Object MakeHexa (in GEOM_Object theFace1,
1624 in GEOM_Object theFace2,
1625 in GEOM_Object theFace3,
1626 in GEOM_Object theFace4,
1627 in GEOM_Object theFace5,
1628 in GEOM_Object theFace6);
1631 * Create a hexahedral solid between two given faces.
1632 * The missing faces will be built by creating the smallest ones.
1633 * \param theFace1,theFace2 Two opposite faces for the hexahedral solid.
1634 * \return New GEOM_Object, containing the created solid.
1636 GEOM_Object MakeHexa2Faces (in GEOM_Object theFace1,
1637 in GEOM_Object theFace2);
1640 * Extract elements of blocks and blocks compounds
1644 * Get a vertex, found in the given shape by its coordinates.
1645 * \param theShape Block or a compound of blocks.
1646 * \param theX,theY,theZ Coordinates of the sought vertex.
1647 * \param theEpsilon Maximum allowed distance between the resulting
1648 * vertex and point with the given coordinates.
1649 * \return New GEOM_Object, containing the found vertex.
1651 GEOM_Object GetPoint (in GEOM_Object theShape,
1655 in double theEpsilon);
1658 * Get an edge, found in the given shape by two given vertices.
1659 * \param theShape Block or a compound of blocks.
1660 * \param thePoint1,thePoint2 Points, close to the ends of the desired edge.
1661 * \return New GEOM_Object, containing the found edge.
1663 GEOM_Object GetEdge (in GEOM_Object theShape,
1664 in GEOM_Object thePoint1,
1665 in GEOM_Object thePoint2);
1668 * Find an edge of the given shape, which has minimal distance to the given point.
1669 * \param theShape Block or a compound of blocks.
1670 * \param thePoint Point, close to the desired edge.
1671 * \return New GEOM_Object, containing the found edge.
1673 GEOM_Object GetEdgeNearPoint (in GEOM_Object theShape,
1674 in GEOM_Object thePoint);
1677 * Returns a face, found in the given shape by four given corner vertices.
1678 * \param theShape Block or a compound of blocks.
1679 * \param thePoint1-thePoint4 Points, close to the corners of the desired face.
1680 * \return New GEOM_Object, containing the found face.
1682 GEOM_Object GetFaceByPoints (in GEOM_Object theShape,
1683 in GEOM_Object thePoint1,
1684 in GEOM_Object thePoint2,
1685 in GEOM_Object thePoint3,
1686 in GEOM_Object thePoint4);
1689 * Get a face of block, found in the given shape by two given edges.
1690 * \param theShape Block or a compound of blocks.
1691 * \param theEdge1,theEdge2 Edges, close to the edges of the desired face.
1692 * \return New GEOM_Object, containing the found face.
1694 GEOM_Object GetFaceByEdges (in GEOM_Object theShape,
1695 in GEOM_Object theEdge1,
1696 in GEOM_Object theEdge2);
1699 * Find a face, opposite to the given one in the given block.
1700 * \param theBlock Must be a hexahedral solid.
1701 * \param theFace Face of \a theBlock, opposite to the desired face.
1702 * \return New GEOM_Object, containing the found face.
1704 GEOM_Object GetOppositeFace (in GEOM_Object theBlock,
1705 in GEOM_Object theFace);
1708 * Find a face of the given shape, which has minimal distance to the given point.
1709 * \param theShape Block or a compound of blocks.
1710 * \param thePoint Point, close to the desired face.
1711 * \return New GEOM_Object, containing the found face.
1713 GEOM_Object GetFaceNearPoint (in GEOM_Object theShape,
1714 in GEOM_Object thePoint);
1717 * Find a face of block, whose outside normale has minimal angle with the given vector.
1718 * \param theShape Block or a compound of blocks.
1719 * \param theVector Vector, close to the normale of the desired face.
1720 * \return New GEOM_Object, containing the found face.
1722 GEOM_Object GetFaceByNormale (in GEOM_Object theBlock,
1723 in GEOM_Object theVector);
1726 * Extract blocks from blocks compounds
1730 * Check, if the compound contains only specified blocks.
1731 * \param theCompound The compound to check.
1732 * \param theMinNbFaces If solid has lower number of faces, it is not a block.
1733 * \param theMaxNbFaces If solid has higher number of faces, it is not a block.
1734 * \note If theMaxNbFaces = 0, the maximum number of faces is not restricted.
1735 * \return TRUE, if the given compound contains only blocks.
1736 * \return theNbBlocks Number of specified blocks in theCompound.
1738 boolean IsCompoundOfBlocks (in GEOM_Object theCompound,
1739 in long theMinNbFaces,
1740 in long theMaxNbFaces,
1741 out long theNbBlocks);
1744 * Enumeration of Blocks Compound defects.
1748 /* Each element of the compound should be a Block */
1751 /* An element is a potential block, but has degenerated and/or seam edge(s). */
1754 /* A connection between two Blocks should be an entire face or an entire edge */
1757 /* The compound should be connexe */
1760 /* The glue between two quadrangle faces should be applied */
1765 * Description of Blocks Compound defect: type and incriminated sub-shapes.
1770 ListOfLong incriminated;
1774 * Sequence of all Blocks Compound defects.
1776 typedef sequence<BCError> BCErrors;
1779 * Check, if the compound of blocks is given.
1780 * To be considered as a compound of blocks, the
1781 * given shape must satisfy the following conditions:
1782 * - Each element of the compound should be a Block (6 faces and 12 edges).
1783 * - A connection between two Blocks should be an entire quadrangle face or an entire edge.
1784 * - The compound should be connexe.
1785 * - The glue between two quadrangle faces should be applied.
1786 * \note Single block is also accepted as a valid compound of blocks.
1787 * \param theCompound The compound to check.
1788 * \return TRUE, if the given shape is a compound of blocks.
1789 * \return theErrors Structure, containing discovered errors and incriminated sub-shapes.
1791 boolean CheckCompoundOfBlocks (in GEOM_Object theCompound,
1792 out BCErrors theErrors);
1795 * Convert sequence of Blocks Compound errors, returned by
1796 * <VAR>CheckCompoundOfBlocks()</VAR>, into string.
1797 * \param theCompound The bad compound.
1798 * \param theErrors The sequence of \a theCompound errors.
1799 * \return String, describing all the errors in form, suitable for printing.
1801 string PrintBCErrors (in GEOM_Object theCompound,
1802 in BCErrors theErrors);
1805 * Remove all seam and degenerated edges from \a theShape.
1806 * Unite faces and edges, sharing one surface.
1807 * \param theShape The compound or single solid to remove irregular edges from.
1808 * \return Improved shape.
1810 GEOM_Object RemoveExtraEdges (in GEOM_Object theShape);
1813 * Check, if the given shape is a blocks compound.
1814 * Fix all detected errors.
1815 * \note Single block can be also fixed by this method.
1816 * \param theCompound The compound to check and improve.
1817 * \return Improved compound.
1819 GEOM_Object CheckAndImprove (in GEOM_Object theCompound);
1822 * Get all the blocks, contained in the given compound.
1823 * \param theCompound The compound to explode.
1824 * \param theMinNbFaces If solid has lower number of faces, it is not a block.
1825 * \param theMaxNbFaces If solid has higher number of faces, it is not a block.
1826 * \note If theMaxNbFaces = 0, the maximum number of faces is not restricted.
1827 * \return List of GEOM_Objects, containing the retrieved blocks.
1829 ListOfGO ExplodeCompoundOfBlocks (in GEOM_Object theCompound,
1830 in long theMinNbFaces,
1831 in long theMaxNbFaces);
1834 * Find block, containing the given point inside its volume or on boundary.
1835 * \param theCompound Compound, to find block in.
1836 * \param thePoint Point, close to the desired block. If the point lays on
1837 * boundary between some blocks, we return block with nearest center.
1838 * \return New GEOM_Object, containing the found block.
1840 GEOM_Object GetBlockNearPoint (in GEOM_Object theCompound,
1841 in GEOM_Object thePoint);
1844 * Find block, containing all the elements, passed as the parts, or maximum quantity of them.
1845 * \param theCompound Compound, to find block in.
1846 * \param theParts List of faces and/or edges and/or vertices to be parts of the found block.
1847 * \return New GEOM_Object, containing the found block.
1849 GEOM_Object GetBlockByParts (in GEOM_Object theCompound,
1850 in ListOfGO theParts);
1853 * Return all blocks, containing all the elements, passed as the parts.
1854 * \param theCompound Compound, to find blocks in.
1855 * \param theParts List of faces and/or edges and/or vertices to be parts of the found blocks.
1856 * \return List of GEOM_Objects, containing the found blocks.
1858 ListOfGO GetBlocksByParts (in GEOM_Object theCompound,
1859 in ListOfGO theParts);
1862 * Operations on blocks with gluing of result
1866 * Multi-transformate block and glue the result.
1867 * Transformation is defined so, as to superpose theDirFace1 with theDirFace2.
1868 * \param theBlock Hexahedral solid to be multi-transformed.
1869 * \param theDirFace1 First direction face global index.
1870 * \param theDirFace2 Second direction face global index.
1871 * \param theNbTimes Quantity of transformations to be done.
1872 * \note Global index of sub-shape can be obtained, using method
1873 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
1874 * \return New GEOM_Object, containing the result shape.
1876 GEOM_Object MakeMultiTransformation1D (in GEOM_Object theBlock,
1877 in long theDirFace1,
1878 in long theDirFace2,
1879 in long theNbTimes);
1882 * Multi-transformate block and glue the result.
1883 * \param theBlock Hexahedral solid to be multi-transformed.
1884 * \param theDirFace1U,theDirFace2U Direction faces for the first transformation.
1885 * \param theDirFace1V,theDirFace2V Direction faces for the second transformation.
1886 * \param theNbTimesU,theNbTimesV Quantity of transformations to be done.
1887 * \return New GEOM_Object, containing the result shape.
1889 GEOM_Object MakeMultiTransformation2D (in GEOM_Object theBlock,
1890 in long theDirFace1U,
1891 in long theDirFace2U,
1892 in long theNbTimesU,
1893 in long theDirFace1V,
1894 in long theDirFace2V,
1895 in long theNbTimesV);
1898 * Special operation - propagation
1902 * Build all possible propagation groups.
1903 * Propagation group is a set of all edges, opposite to one (main)
1904 * edge of this group directly or through other opposite edges.
1905 * Notion of Opposite Edge make sence only on quadrangle face.
1906 * \param theShape Shape to build propagation groups on.
1907 * \return List of GEOM_Objects, each of them is a propagation group.
1909 ListOfGO Propagate (in GEOM_Object theShape);
1913 * GEOM_IBooleanOperations: Interface for boolean operations (Cut, Fuse, Common)
1915 interface GEOM_IBooleanOperations : GEOM_IOperations
1918 * Perform one of boolean operations on two given shapes.
1919 * \param theShape1 First argument for boolean operation.
1920 * \param theShape2 Second argument for boolean operation.
1921 * \param theOperation Indicates the operation to be done:
1922 * 1 - Common, 2 - Cut, 3 - Fuse, 4 - Section.
1923 * \return New GEOM_Object, containing the result shape.
1925 GEOM_Object MakeBoolean (in GEOM_Object theShape1,
1926 in GEOM_Object theShape2,
1927 in long theOperation);
1930 * Perform partition operation.
1931 * \param theShapes Shapes to be intersected.
1932 * \param theTools Shapes to intersect theShapes.
1933 * \note Each compound from ListShapes and ListTools will be exploded in order
1934 * to avoid possible intersection between shapes from this compound.
1935 * \param theLimit Type of resulting shapes (corresponding to TopAbs_ShapeEnum).
1936 # \param KeepNonlimitShapes: if this parameter == 0 - only shapes with
1937 # type <= Limit are kept in the result,
1938 # else - shapes with type > Limit are kept
1939 # also (if they exist)
1941 * After implementation new version of PartitionAlgo (October 2006)
1942 * other parameters are ignored by current functionality. They are kept
1943 * in this function only for supporting old versions.
1944 * Ignored parameters:
1945 * \param theKeepInside Shapes, outside which the results will be deleted.
1946 * Each shape from theKeepInside must belong to theShapes also.
1947 * \param theRemoveInside Shapes, inside which the results will be deleted.
1948 * Each shape from theRemoveInside must belong to theShapes also.
1949 * \param theRemoveWebs If TRUE, perform Glue 3D algorithm.
1950 * \param theMaterials Material indices for each shape. Make sence, only if theRemoveWebs is TRUE.
1952 * \return New GEOM_Object, containing the result shapes.
1954 GEOM_Object MakePartition (in ListOfGO theShapes,
1955 in ListOfGO theTools,
1956 in ListOfGO theKeepInside,
1957 in ListOfGO theRemoveInside,
1959 in boolean theRemoveWebs,
1960 in ListOfLong theMaterials,
1961 in short theKeepNonlimitShapes);
1964 * Perform partition operation.
1965 * This method may be usefull if it is needed to make a partition for
1966 * a compound containing nonintersected shapes. Performance will be better
1967 * since intersection between shapes from compound is not performed.
1969 * Description of all parameters as in previous method MakePartition()
1971 * \note Passed compounds (via ListShapes or via ListTools)
1972 * have to consist of nonintersecting shapes.
1974 * \return New GEOM_Object, containing the result shapes.
1976 GEOM_Object MakePartitionNonSelfIntersectedShape (in ListOfGO theShapes,
1977 in ListOfGO theTools,
1978 in ListOfGO theKeepInside,
1979 in ListOfGO theRemoveInside,
1981 in boolean theRemoveWebs,
1982 in ListOfLong theMaterials,
1983 in short theKeepNonlimitShapes);
1986 * Perform partition of the Shape with the Plane
1987 * \param theShape Shape to be intersected.
1988 * \param thePlane Tool shape, to intersect theShape.
1989 * \return New GEOM_Object, containing the result shape.
1991 GEOM_Object MakeHalfPartition (in GEOM_Object theShape,
1992 in GEOM_Object thePlane);
1996 * GEOM_ICurvesOperations: Interface for curves creation.
1997 * Polyline, Circle, Spline (Bezier and Interpolation)
1999 interface GEOM_ICurvesOperations : GEOM_IOperations
2002 * Create a circle with given center, normal vector and radius.
2003 * \param thePnt Circle center.
2004 * \param theVec Vector, normal to the plane of the circle.
2005 * \param theR Circle radius.
2006 * \return New GEOM_Object, containing the created circle.
2008 GEOM_Object MakeCirclePntVecR (in GEOM_Object thePnt,
2009 in GEOM_Object theVec,
2012 * Create a circle, passing through three given points
2013 * \param thePnt1,thePnt2,thePnt3 Points, defining the circle.
2014 * \return New GEOM_Object, containing the created circle.
2016 GEOM_Object MakeCircleThreePnt (in GEOM_Object thePnt1,
2017 in GEOM_Object thePnt2,
2018 in GEOM_Object thePnt3);
2020 * Create a circle with given center, with a radius equals the distance from center to Point1
2021 * and on a plane defined by all of three points.
2022 * \param thePnt1,thePnt2,thePnt3 Points, defining the circle.
2023 * \return New GEOM_Object, containing the created circle.
2025 GEOM_Object MakeCircleCenter2Pnt (in GEOM_Object thePnt1,
2026 in GEOM_Object thePnt2,
2027 in GEOM_Object thePnt3);
2029 * Create an ellipse with given center, normal vector and radiuses.
2030 * \param thePnt Ellipse center.
2031 * \param theVec Vector, normal to the plane of the ellipse.
2032 * \param theRMajor Major ellipse radius.
2033 * \param theRMinor Minor ellipse radius.
2034 * \return New GEOM_Object, containing the created ellipse.
2036 GEOM_Object MakeEllipse (in GEOM_Object thePnt,
2037 in GEOM_Object theVec,
2038 in double theRMajor,
2039 in double theRMinor);
2042 * Create an arc of circle, passing through three given points.
2043 * \param thePnt1 Start point of the arc.
2044 * \param thePnt2 Middle point of the arc.
2045 * \param thePnt3 End point of the arc.
2046 * \return New GEOM_Object, containing the created arc.
2048 GEOM_Object MakeArc (in GEOM_Object thePnt1,
2049 in GEOM_Object thePnt2,
2050 in GEOM_Object thePnt3);
2053 * Create an arc of circle of center C from one point to another
2054 * \param theCenter Center point of the arc.
2055 * \param thePnt1 Start point of the arc.
2056 * \param thePnt2 End point of the arc.
2057 * \param theSense Orientation of the arc
2058 * \return New GEOM_Object, containing the created arc.
2060 GEOM_Object MakeArcCenter (in GEOM_Object theCenter,
2061 in GEOM_Object thePnt1,
2062 in GEOM_Object thePnt2,
2063 in boolean theSense);
2067 * Create a polyline on the set of points.
2068 * \param thePoints Sequence of points for the polyline.
2069 * \return New GEOM_Object, containing the created polyline.
2071 GEOM_Object MakePolyline (in ListOfGO thePoints);
2074 * Create bezier curve on the set of points.
2075 * \param thePoints Sequence of points for the bezier curve.
2076 * \return New GEOM_Object, containing the created bezier curve.
2078 GEOM_Object MakeSplineBezier (in ListOfGO thePoints);
2081 * Create B-Spline curve on the set of points.
2082 * \param thePoints Sequence of points for the B-Spline curve.
2083 * \return New GEOM_Object, containing the created B-Spline curve.
2085 GEOM_Object MakeSplineInterpolation (in ListOfGO thePoints);
2088 * Create a sketcher (wire or face), following the textual description,
2089 * passed through \a theCommand argument. \n
2090 * Edges of the resulting wire or face will be arcs of circles and/or linear segments. \n
2091 * Format of the description string have to be the following:
2093 * "Sketcher[:F x1 y1]:CMD[:CMD[:CMD...]]"
2096 * - x1, y1 are coordinates of the first sketcher point (zero by default),
2098 * - "R angle" : Set the direction by angle
2099 * - "D dx dy" : Set the direction by DX & DY
2102 * - "TT x y" : Create segment by point at X & Y
2103 * - "T dx dy" : Create segment by point with DX & DY
2104 * - "L length" : Create segment by direction & Length
2105 * - "IX x" : Create segment by direction & Intersect. X
2106 * - "IY y" : Create segment by direction & Intersect. Y
2109 * - "C radius length" : Create arc by direction, radius and length(in degree)
2112 * - "WW" : Close Wire (to finish)
2113 * - "WF" : Close Wire and build face (to finish)
2115 * \param theCommand String, defining the sketcher in local
2116 * coordinates of the working plane.
2117 * \param theWorkingPlane Nine double values, defining origin,
2118 * OZ and OX directions of the working plane.
2119 * \return New GEOM_Object, containing the created wire.
2121 GEOM_Object MakeSketcher (in string theCommand, in ListOfDouble theWorkingPlane);
2124 * Create a sketcher (wire or face), following the textual description,
2125 * passed through \a theCommand argument. \n
2126 * For format of the description string see the previous method.\n
2127 * \param theCommand String, defining the sketcher in local
2128 * coordinates of the working plane.
2129 * \param theWorkingPlane Planar Face or LCS(Marker) of the working plane.
2130 * \return New GEOM_Object, containing the created wire.
2132 GEOM_Object MakeSketcherOnPlane (in string theCommand, in GEOM_Object theWorkingPlane);
2136 * GEOM_ILocalOperations: Interface for fillet and chamfer creation.
2138 interface GEOM_ILocalOperations : GEOM_IOperations
2141 * Perform a fillet on all edges of the given shape.
2142 * \param theShape Shape, to perform fillet on.
2143 * \param theR Fillet radius.
2144 * \return New GEOM_Object, containing the result shape.
2146 GEOM_Object MakeFilletAll (in GEOM_Object theShape,
2150 * Perform a fillet on the specified edges of the given shape
2151 * \param theShape Shape, to perform fillet on.
2152 * \param theR Fillet radius.
2153 * \param theEdges Global indices of edges to perform fillet on.
2154 * \note Global index of sub-shape can be obtained, using method
2155 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2156 * \return New GEOM_Object, containing the result shape.
2158 GEOM_Object MakeFilletEdges (in GEOM_Object theShape,
2160 in ListOfLong theEdges);
2161 GEOM_Object MakeFilletEdgesR1R2 (in GEOM_Object theShape,
2164 in ListOfLong theEdges);
2167 * Perform a fillet on all edges of the specified faces of the given shape.
2168 * \param theShape Shape, to perform fillet on.
2169 * \param theR Fillet radius.
2170 * \param theFaces Global indices of faces to perform fillet on.
2171 * \note Global index of sub-shape can be obtained, using method
2172 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2173 * \return New GEOM_Object, containing the result shape.
2175 GEOM_Object MakeFilletFaces (in GEOM_Object theShape,
2177 in ListOfLong theFaces);
2178 GEOM_Object MakeFilletFacesR1R2 (in GEOM_Object theShape,
2181 in ListOfLong theFaces);
2184 * Perform a symmetric chamfer on all edges of the given shape.
2185 * \param theShape Shape, to perform chamfer on.
2186 * \param theD Chamfer size along each face.
2187 * \return New GEOM_Object, containing the result shape.
2189 GEOM_Object MakeChamferAll (in GEOM_Object theShape,
2193 * Perform a chamfer on edges, common to the specified faces.
2194 * with distance D1 on the Face1
2195 * \param theShape Shape, to perform chamfer on.
2196 * \param theD1 Chamfer size along \a theFace1.
2197 * \param theD2 Chamfer size along \a theFace2.
2198 * \param theFace1,theFace2 Global indices of two faces of \a theShape.
2199 * \note Global index of sub-shape can be obtained, using method
2200 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2201 * \return New GEOM_Object, containing the result shape.
2203 GEOM_Object MakeChamferEdge (in GEOM_Object theShape,
2204 in double theD1, in double theD2,
2205 in long theFace1, in long theFace2);
2207 * The Same but with params theD = Chamfer Lenght
2208 * and theAngle = Chamfer Angle (Angle in radians)
2210 GEOM_Object MakeChamferEdgeAD (in GEOM_Object theShape,
2211 in double theD, in double theAngle,
2212 in long theFace1, in long theFace2);
2215 * Perform a chamfer on all edges of the specified faces.
2216 * with distance D1 on the first specified face (if several for one edge)
2217 * \param theShape Shape, to perform chamfer on.
2218 * \param theD1 Chamfer size along face from \a theFaces. If both faces,
2219 * connected to the edge, are in \a theFaces, \a theD1
2220 * will be get along face, which is nearer to \a theFaces beginning.
2221 * \param theD2 Chamfer size along another of two faces, connected to the edge.
2222 * \param theFaces Sequence of global indices of faces of \a theShape.
2223 * \note Global index of sub-shape can be obtained, using method
2224 * <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2225 * \return New GEOM_Object, containing the result shape.
2227 GEOM_Object MakeChamferFaces (in GEOM_Object theShape,
2228 in double theD1, in double theD2,
2229 in ListOfLong theFaces);
2231 * The Same but with params theD = Chamfer Lenght
2232 * and theAngle = Chamfer Angle (Angle in radians)
2234 GEOM_Object MakeChamferFacesAD (in GEOM_Object theShape,
2235 in double theD, in double theAngle,
2236 in ListOfLong theFaces);
2239 * Perform a chamfer on edges,
2240 * with distance D1 on the first specified face (if several for one edge)
2241 * \param theShape Shape, to perform chamfer on.
2242 * \param theD1 theD2 Chamfer size
2243 * \param theEdges Sequence of edges of \a theShape.
2244 * \return New GEOM_Object, containing the result shape.
2246 GEOM_Object MakeChamferEdges (in GEOM_Object theShape,
2247 in double theD1, in double theD2,
2248 in ListOfLong theEdges);
2250 * The Same but with params theD = Chamfer Lenght
2251 * and theAngle = Chamfer Angle (Angle in radians)
2253 GEOM_Object MakeChamferEdgesAD (in GEOM_Object theShape,
2254 in double theD, in double theAngle,
2255 in ListOfLong theEdges);
2258 * Perform an Archimde operation on the given shape with given parameters.
2259 * The object presenting the resulting face is returned
2260 * \param theShape Shape to be put in water.
2261 * \param theWeight Weight og the shape.
2262 * \param theWaterDensity Density of the water.
2263 * \param theMeshDeflection Deflection od the mesh, using to compute the section.
2264 * \return New GEOM_Object, containing a section of \a theShape
2265 * by a plane, corresponding to water level.
2267 GEOM_Object MakeArchimede (in GEOM_Object theShape,
2268 in double theWeight,
2269 in double theWaterDensity,
2270 in double theMeshDeflection);
2273 * Duplicates <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR>.
2274 * Present here only for compatibility.
2276 long GetSubShapeIndex (in GEOM_Object theShape, in GEOM_Object theSubShape);
2280 * GEOM_IHealingOperations: Interface for shape healing operations.
2281 * Shape Processing, SuppressFaces, etc.
2283 interface GEOM_IHealingOperations : GEOM_IOperations
2286 * Apply a sequence of Shape Healing operators to the given object.
2287 * \param theShapes Shape to be processed.
2288 * \param theOperators List of names of operators ("FixShape", "SplitClosedFaces", etc.).
2289 * \param theParameters List of names of parameters
2290 * ("FixShape.Tolerance3d", "SplitClosedFaces.NbSplitPoints", etc.).
2291 * \param theValues List of values of parameters, in the same order
2292 * as parameters are listed in \a theParameters list.
2293 * \return New GEOM_Object, containing processed shape.
2295 GEOM_Object ProcessShape (in GEOM_Object theShapes,
2296 in string_array theOperators,
2297 in string_array theParameters,
2298 in string_array theValues);
2301 * Get default sequence of operators, their parameters and parameters' values
2302 * of Shape Process operation. In the current implementation the defaults are
2303 * read from the file pointed by CSF_ShHealingDefaults environmental variable.
2304 * \param theOperators Output. Default list of names of operators.
2305 * \param theParameters Output. Default list of names of parameters.
2306 * \param theValues Output. List of default values of parameters, in the same order
2307 * as parameters are listed in \a theParameters list.
2309 void GetShapeProcessParameters (out string_array theOperators,
2310 out string_array theParameters,
2311 out string_array theValues);
2313 * Get parameters and parameters' values for the given Shape Process operation.
2314 * In the current implementation the defaults are
2315 * read from the file pointed by CSF_ShHealingDefaults environmental variable.
2316 * \param theOperator Input. The operator's name.
2317 * \param theParameters Output. Default list of names of parameters.
2318 * \param theValues Output. List of default values of parameters, in the same order
2319 * as parameters are listed in \a theParameters list.
2321 void GetOperatorParameters (in string theOperator,
2322 out string_array theParameters,
2323 out string_array theValues);
2326 * Remove faces from the given object (shape).
2327 * \param theObject Shape to be processed.
2328 * \param theFaces Indices of faces to be removed, if EMPTY then the method
2329 * removes ALL faces of the given object.
2330 * \return New GEOM_Object, containing processed shape.
2332 GEOM_Object SuppressFaces (in GEOM_Object theObject, in short_array theFaces);
2335 * Close an open wire.
2336 * \param theObject Shape to be processed.
2337 * \param theWires Indexes of edge(s) and wire(s) to be closed within <VAR>theObject</VAR>'s shape,
2338 * if -1, then theObject itself is a wire.
2339 * \param isCommonVertex If TRUE : closure by creation of a common vertex,
2340 * If FALS : closure by creation of an edge between ends.
2341 * \return New GEOM_Object, containing processed shape.
2343 GEOM_Object CloseContour (in GEOM_Object theObject, in short_array theWires,
2344 in boolean isCommonVertex);
2347 * Remove internal wires and edges from the given object (face).
2348 * \param theObject Shape to be processed.
2349 * \param theWires Indices of wires to be removed, if EMPTY then the method
2350 * removes ALL internal wires of the given object.
2351 * \return New GEOM_Object, containing processed shape.
2353 GEOM_Object RemoveIntWires (in GEOM_Object theObject, in short_array theWires);
2356 * Remove internal closed contours (holes) from the given object.
2357 * \param theObject Shape to be processed.
2358 * \param theWires Indices of wires to be removed, if EMPTY then the method
2359 * removes ALL internal holes of the given object
2360 * \return New GEOM_Object, containing processed shape.
2362 GEOM_Object FillHoles (in GEOM_Object theObject, in short_array theWires);
2365 * Sewing of the given object.
2366 * \param theObject Shape to be processed.
2367 * \param theTolerance Required tolerance value.
2368 * \return New GEOM_Object, containing processed shape.
2370 GEOM_Object Sew (in GEOM_Object theObject, in double theTolerance);
2373 * Addition of a point to a given edge object.
2374 * \param theObject Shape to be processed.
2375 * \param theEdgeIndex Index of edge to be divided within theObject's shape,
2376 * if -1, then theObject itself is the edge.
2377 * \param theValue Value of parameter on edge or length parameter,
2378 * depending on \a isByParameter.
2379 * \param isByParameter If TRUE : \a theValue is treated as a curve parameter [0..1],
2380 * if FALSE : \a theValue is treated as a length parameter [0..1]
2381 * \return New GEOM_Object, containing processed shape.
2383 GEOM_Object DivideEdge (in GEOM_Object theObject, in short theEdgeIndex,
2384 in double theValue, in boolean isByParameter);
2387 * Get a list of wires (wrapped in GEOM_Object-s),
2388 * that constitute a free boundary of the given shape.
2389 * \param theObject Shape to get free boundary of.
2390 * \param theClosedWires Output. Closed wires on the free boundary of the given shape.
2391 * \param theOpenWires Output. Open wires on the free boundary of the given shape.
2392 * \return FALSE, if an error(s) occured during the method execution.
2394 boolean GetFreeBoundary (in GEOM_Object theObject,
2395 out ListOfGO theClosedWires,
2396 out ListOfGO theOpenWires);
2399 * Change orientation of the given object.
2400 * \param theObject Shape to be processed.
2401 * \return New GEOM_Object, containing processed shape.
2403 GEOM_Object ChangeOrientation (in GEOM_Object theObject);
2404 GEOM_Object ChangeOrientationCopy (in GEOM_Object theObject);
2409 * GEOM_IInsertOperations: Interface for shape insert operations (like copy, import).
2412 interface GEOM_IInsertOperations : GEOM_IOperations
2415 * Create a copy of the given object
2417 GEOM_Object MakeCopy (in GEOM_Object theOriginal);
2420 * Export the given shape into a file with given name.
2421 * \param theObject Shape to be stored in the file.
2422 * \param theFileName Name of the file to store the given shape in.
2423 * \param theFormatName Specify format for the shape storage.
2424 * Available formats can be obtained with <VAR>ImportTranslators()</VAR> method.
2426 void Export (in GEOM_Object theObject, in string theFileName, in string theFormatName);
2429 * Import a shape from the BRep or IGES or STEP file
2430 * (depends on given format) with given name.
2431 * \param theFileName The file, containing the shape.
2432 * \param theFormatName Specify format for the file reading.
2433 * Available formats can be obtained with <VAR>ImportTranslators()</VAR> method.
2434 * \return New GEOM_Object, containing the imported shape.
2436 GEOM_Object Import (in string theFileName, in string theFormatName);
2439 * Get the supported import formats and corresponding patterns for File dialog.
2440 * \param theFormats Output. List of formats, available for import.
2441 * \param thePatterns Output. List of file patterns, corresponding to available formats.
2442 * \return Returns available formats and patterns through the arguments.
2444 void ImportTranslators (out string_array theFormats,
2445 out string_array thePatterns);
2448 * Get the supported export formats and corresponding patterns for File dialog.
2449 * \param theFormats Output. List of formats, available for export.
2450 * \param thePatterns Output. List of file patterns, corresponding to available formats.
2451 * \return Returns available formats and patterns through the arguments.
2453 void ExportTranslators (out string_array theFormats,
2454 out string_array thePatterns);
2458 * GEOM_IKindOfShape: namespace for shape_kind enumeration.
2460 interface GEOM_IKindOfShape
2470 SPHERE, // full sphere
2471 CYLINDER, // cylinder
2472 BOX, // box with faces, parallel to global coordinate planes
2473 ROTATED_BOX, // other box
2474 TORUS, // full torus
2476 POLYHEDRON, // solid, bounded by polygons
2477 SOLID, // other solid
2479 SPHERE2D, // spherical face (closed)
2480 CYLINDER2D, // cylindrical face with defined height
2481 TORUS2D, // toroidal face (closed)
2482 CONE2D, // conical face with defined height
2483 DISK_CIRCLE, // planar, bounded by circle
2484 DISK_ELLIPSE, // planar, bounded by ellipse
2485 POLYGON, // planar, bounded by segments
2486 PLANE, // infinite planar
2487 PLANAR, // other planar
2490 CIRCLE, // full circle
2491 ARC_CIRCLE, // arc of circle
2492 ELLIPSE, // full ellipse
2493 ARC_ELLIPSE, // arc of ellipse
2494 LINE, // infinite segment
2504 * GEOM_IMeasureOperations: Interface for measurement (distance, whatis) and
2505 * properties calculation (like Centre of Mass, Inertia, etc.).
2508 interface GEOM_IMeasureOperations : GEOM_IOperations
2511 * Get kind of theShape.
2512 * \param theShape Shape to get a kind of.
2513 * \param theIntegers Output. Integer and enumerated shape's parameters
2514 * (kind of surface, closed/unclosed, number of edges, etc.)
2515 * \param theDoubles Output. Double shape's parameters (coordinates, dimensions, etc.)
2516 * \note Concrete meaning of each value, returned via \a theIntegers
2517 * or \a theDoubles list depends on the kind of the shape.
2518 * \return Returns a kind of shape in terms of <VAR>GEOM_IKindOfShape.shape_kind</VAR> enumeration.
2520 //short KindOfShape (in GEOM_Object theShape,
2521 GEOM_IKindOfShape::shape_kind KindOfShape (in GEOM_Object theShape,
2522 out ListOfLong theIntegers,
2523 out ListOfDouble theDoubles);
2526 * Get position (LCS) of theShape.
2527 * \param theShape Shape to calculate position of.
2528 * \param Ox,Oy,Oz Output. Coordinates of shape's location origin.
2529 * Origin of the LCS is situated at the shape's center of mass.
2530 * \param Zx,Zy,Zz Output. Coordinates of shape's location normal(main) direction.
2531 * \param Xx,Xy,Xz Output. Coordinates of shape's location X direction.
2532 * Axes of the LCS are obtained from shape's location or,
2533 * if the shape is a planar face, from position of its plane.
2534 * \return Returns position of the shape through the last nine arguments.
2536 void GetPosition (in GEOM_Object theShape,
2537 out double Ox, out double Oy, out double Oz,
2538 out double Zx, out double Zy, out double Zz,
2539 out double Xx, out double Xy, out double Xz);
2542 * Get summarized length of all wires,
2543 * area of surface and volume of the given shape.
2544 * \param theShape Shape to define properties of.
2545 * \param theLength Output. Summarized length of all wires of the given shape.
2546 * \param theSurfArea Output. Area of surface of the given shape.
2547 * \param theVolume Output. Volume of the given shape.
2548 * \return Returns shape properties through the last three arguments.
2550 void GetBasicProperties (in GEOM_Object theShape,
2551 out double theLength,
2552 out double theSurfArea,
2553 out double theVolume);
2556 * Get a point, situated at the centre of mass of theShape.
2557 * \param theShape Shape to define centre of mass of.
2558 * \return New GEOM_Object, containing the created point.
2560 GEOM_Object GetCentreOfMass (in GEOM_Object theShape);
2563 * Get a vector, representing the normal of theFace.
2564 * If the face is not planar, theOptionalPoint is obligatory.
2565 * \param theFace Shape (face) to define the normal of.
2566 * \param theOptionalPoint Shape (point) to define the normal at.
2567 * Can be NULL in case of planar face.
2568 * \return New GEOM_Object, containing the created normal vector.
2570 GEOM_Object GetNormal (in GEOM_Object theFace,
2571 in GEOM_Object theOptionalPoint);
2574 * Get inertia matrix and moments of inertia of theShape.
2575 * \param theShape Shape to calculate inertia of.
2576 * \param I(1-3)(1-3) Output. Components of the inertia matrix of the given shape.
2577 * \param Ix,Iy,Iz Output. Moments of inertia of the given shape.
2578 * \return Returns inertia through the last twelve arguments.
2580 void GetInertia (in GEOM_Object theShape,
2581 out double I11, out double I12, out double I13,
2582 out double I21, out double I22, out double I23,
2583 out double I31, out double I32, out double I33,
2584 out double Ix , out double Iy , out double Iz);
2587 * Get parameters of bounding box of the given shape
2588 * \param theShape Shape to obtain bounding box of.
2589 * \param Xmin,Xmax Output. Limits of shape along OX axis.
2590 * \param Ymin,Ymax Output. Limits of shape along OY axis.
2591 * \param Zmin,Zmax Output. Limits of shape along OZ axis.
2592 * \return Returns parameters of bounding box through the last six arguments.
2594 void GetBoundingBox (in GEOM_Object theShape,
2595 out double Xmin, out double Xmax,
2596 out double Ymin, out double Ymax,
2597 out double Zmin, out double Zmax);
2600 * Get min and max tolerances of sub-shapes of theShape
2601 * \param theShape Shape, to get tolerances of.
2602 * \param FaceMin,FaceMax Output. Min and max tolerances of the faces.
2603 * \param EdgeMin,EdgeMax Output. Min and max tolerances of the edges.
2604 * \param VertMin,VertMax Output. Min and max tolerances of the vertices.
2605 * \return Returns shape tolerances through the last six arguments.
2607 void GetTolerance (in GEOM_Object theShape,
2608 out double FaceMin, out double FaceMax,
2609 out double EdgeMin, out double EdgeMax,
2610 out double VertMin, out double VertMax);
2613 * Check a topology of the given shape.
2614 * \param theShape Shape to check validity of.
2615 * \param theDescription Output. Description of problems in the shape, if they are.
2616 * \return TRUE, if the shape "seems to be valid" from the topological point of view.
2618 boolean CheckShape (in GEOM_Object theShape,
2619 out string theDescription);
2622 * Check a topology and a geometry of the given shape.
2623 * \param theShape Shape to check validity of.
2624 * \param theDescription Output. Description of problems in the shape, if they are.
2625 * \return TRUE, if the shape "seems to be valid".
2627 boolean CheckShapeWithGeometry (in GEOM_Object theShape,
2628 out string theDescription);
2631 * Obtain description of the given shape
2632 * \param theShape Shape to be described.
2633 * \return Description of the given shape.
2635 string WhatIs (in GEOM_Object theShape);
2638 * Get minimal distance between the given shapes.
2639 * \param theShape1,theShape2 Shapes to find minimal distance between.
2640 * \param X1,Y1,Z1 Output. Coordinates of point on theShape1, nearest to theShape2.
2641 * \param X2,Y2,Z2 Output. Coordinates of point on theShape2, nearest to theShape1.
2642 * \return Value of the minimal distance between the given shapes.
2644 double GetMinDistance (in GEOM_Object theShape1, in GEOM_Object theShape2,
2645 out double X1, out double Y1, out double Z1,
2646 out double X2, out double Y2, out double Z2);
2649 * Get angle between the given lines or linear edges.
2650 * \param theShape1,theShape2 Shapes to find angle between. Lines or linear edges.
2651 * \return Value of the angle between the given shapes.
2653 double GetAngle (in GEOM_Object theShape1, in GEOM_Object theShape2);
2656 * Get point coordinates
2658 void PointCoordinates (in GEOM_Object theShape, out double X, out double Y, out double Z);
2661 * Get radius of curvature of curve in the point determinated by param
2662 * \param theShape - curve.
2663 * \param theParam - parameter on curve
2664 * \return Value of curvature.
2666 double CurveCurvatureByParam (in GEOM_Object theShape, in double theParam);
2669 * Get radius of curvature of curve in the given point
2670 * \param theShape - curve.
2671 * \param thePoint - point
2672 * \return Value of curvature.
2674 double CurveCurvatureByPoint (in GEOM_Object theShape, in GEOM_Object thePoint);
2677 * Get max radius of curvature of surface in the point determinated by params
2678 * \param theShape - surface.
2679 * \param theUParam - U-parameter on surface
2680 * \param theVParam - V-parameter on surface
2681 * \return Value of curvature.
2683 double MaxSurfaceCurvatureByParam (in GEOM_Object theShape, in double theUParam,
2684 in double theVParam);
2687 * Get max radius of curvature of surface in the given point
2688 * \param theShape - surface.
2689 * \param thePoint - point
2690 * \return Value of curvature.
2692 double MaxSurfaceCurvatureByPoint (in GEOM_Object theShape, in GEOM_Object thePoint);
2695 * Get min radius of curvature of surface in the point determinated by params
2696 * \param theShape - surface.
2697 * \param theUParam - U-parameter on surface
2698 * \param theVParam - V-parameter on surface
2699 * \return Value of curvature.
2701 double MinSurfaceCurvatureByParam (in GEOM_Object theShape, in double theUParam,
2702 in double theVParam);
2705 * Get min radius of curvature of surface in the given point
2706 * \param theShape - surface.
2707 * \param thePoint - point
2708 * \return Value of curvature.
2710 double MinSurfaceCurvatureByPoint (in GEOM_Object theShape, in GEOM_Object thePoint);
2716 * GEOM_IGroupOperations: Interface for groups creation.
2718 interface GEOM_IGroupOperations : GEOM_IOperations
2721 * Creates a new group which will store sub shapes of theMainShape
2722 * \param theMainShape is a GEOM object on which the group is selected
2723 * \param theShapeType defines a shape type of the group
2724 * \return a newly created GEOM group
2726 GEOM_Object CreateGroup (in GEOM_Object theMainShape, in long theShapeType);
2729 * Adds a sub object with ID theSubShapeId to the group
2730 * \param theGroup is a GEOM group to which the new sub shape is added
2731 * \param theSubShapeId is a sub shape ID in the main object.
2732 * \note Use method <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR> to get an ID by the sub shape
2734 void AddObject (in GEOM_Object theGroup, in long theSubShapeId);
2737 * Removes a sub object with ID \a theSubShapeId from the group
2738 * \param theGroup is a GEOM group from which the sub shape is removed.
2739 * \param theSubShapeId is a sub shape ID in the main object.
2740 * \note Use method <VAR>GEOM_IShapesOperations.GetSubShapeIndex()</VAR> to get an ID by the sub shape
2742 void RemoveObject (in GEOM_Object theGroup, in long theSubShapeId);
2745 * Adds to the group all the given shapes. No errors, if some shapes are alredy included.
2746 * \param theGroup is a GEOM group to which the new sub shapes are added.
2747 * \param theSubShapes is a list of sub shapes to be added.
2749 void UnionList (in GEOM_Object theGroup, in ListOfGO theSubShapes);
2752 * Removes from the group all the given shapes. No errors, if some shapes are not included.
2753 * \param theGroup is a GEOM group from which the sub-shapes are removed.
2754 * \param theSubShapes is a list of sub-shapes to be removed.
2756 void DifferenceList (in GEOM_Object theGroup, in ListOfGO theSubShapes);
2759 * Adds to the group all the given shapes. No errors, if some shapes are alredy included.
2760 * \param theGroup is a GEOM group to which the new sub shapes are added.
2761 * \param theSubShapes is a list of IDs of sub shapes to be added.
2763 void UnionIDs (in GEOM_Object theGroup, in ListOfLong theSubShapes);
2766 * Removes from the group all the given shapes. No errors, if some shapes are not included.
2767 * \param theGroup is a GEOM group from which the sub-shapes are removed.
2768 * \param theSubShapes is a list of IDs of sub-shapes to be removed.
2770 void DifferenceIDs (in GEOM_Object theGroup, in ListOfLong theSubShapes);
2773 * Returns a type of sub objects stored in the group
2774 * \param theGroup is a GEOM group which type is returned.
2776 long GetType (in GEOM_Object theGroup);
2779 * Returns a main shape associated with the group
2780 * \param theGroup is a GEOM group for which a main shape object is requested
2781 * \return a GEOM object which is a main shape for theGroup
2783 GEOM_Object GetMainShape (in GEOM_Object theGroup);
2786 * Returns a list of sub objects ID stored in the group
2787 * \param theGroup is a GEOM group for which a list of IDs is requested
2789 ListOfLong GetObjects (in GEOM_Object theGroup);
2794 * GEOM_Gen: Interface to access other GEOM interfaces.
2795 * Also contains some methods to access and manage GEOM objects.
2797 interface GEOM_Gen : Engines::Component,SALOMEDS::Driver
2800 * Undo/Redo Management
2803 void Undo (in long theStudyID);
2805 void Redo (in long theStudyID);
2808 * Publishing management
2809 * Adds in theStudy a object theObject under with a name theName,
2810 * if theFather is not NULL the object is placed under thFather's SObject.
2811 * Returns a SObject where theObject is placed
2813 SALOMEDS::SObject AddInStudy (in SALOMEDS::Study theStudy,
2814 in GEOM_Object theObject,
2816 in GEOM_Object theFather);
2819 * Publish sub-shapes, standing for arguments and sub-shapes of arguments
2820 * To be used from python scripts out of geompy.addToStudy (non-default usage)
2821 * \param theStudy the study, in which theObject is published already,
2822 * and in which the arguments will be published
2823 * \param theObject published GEOM object, arguments of which will be published
2824 * \param theArgs list of GEOM_Object, operation arguments to be published.
2825 * If this list is empty, all operation arguments will be published
2826 * \param theFindMethod method to search subshapes, corresponding to arguments and
2827 * their subshapes. Value from enumeration GEOM::find_shape_method.
2828 * \param theInheritFirstArg set properties of the first argument for \a theObject.
2829 * Do not publish subshapes in place of arguments, but only
2830 * in place of subshapes of the first argument,
2831 * because the whole shape corresponds to the first argument.
2832 * Mainly to be used after transformations, but it also can be
2833 * usefull after partition with one object shape, and some other
2834 * operations, where only the first argument has to be considered.
2835 * If theObject has only one argument shape, this flag is automatically
2836 * considered as True, not regarding really passed value.
2837 * \return True in case of success, False otherwise.
2839 boolean RestoreSubShapesO (in SALOMEDS::Study theStudy,
2840 in GEOM_Object theObject,
2841 in ListOfGO theArgs,
2842 in find_shape_method theFindMethod,
2843 in boolean theInheritFirstArg);
2846 * Publish sub-shapes, standing for arguments and sub-shapes of arguments
2847 * To be used from GUI and from geompy.addToStudy.
2848 * Work like the above method, but accepts study object theSObject instead of GEOM_Object.
2849 * \param theSObject study object, referencing GEOM object, arguments of which will be published
2851 boolean RestoreSubShapesSO (in SALOMEDS::Study theStudy,
2852 in SALOMEDS::SObject theSObject,
2853 in ListOfGO theArgs,
2854 in find_shape_method theFindMethod,
2855 in boolean theInheritFirstArg);
2858 * Methods to access interfaces for objects creation and transformation
2860 GEOM_IBasicOperations GetIBasicOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2861 GEOM_ITransformOperations GetITransformOperations(in long theStudyID) raises (SALOME::SALOME_Exception);
2862 GEOM_I3DPrimOperations GetI3DPrimOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2863 GEOM_IShapesOperations GetIShapesOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2864 GEOM_IBooleanOperations GetIBooleanOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2865 GEOM_ICurvesOperations GetICurvesOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2866 GEOM_ILocalOperations GetILocalOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2867 GEOM_IHealingOperations GetIHealingOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2868 GEOM_IInsertOperations GetIInsertOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2869 GEOM_IMeasureOperations GetIMeasureOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2870 GEOM_IBlocksOperations GetIBlocksOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2871 GEOM_IGroupOperations GetIGroupOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
2874 * Objects Management
2878 * Removes the object from the GEOM component
2879 * \param theObject is a GEOM object to be removed
2881 void RemoveObject (in GEOM_Object theObject);
2884 * Returns an object defined by the study and its entry in the GEOM component
2885 * \param theStudyID is a SALOMEDS Study ID
2886 * \param theEntry is an entry of the requested GEOM object in the GEOM component
2887 * \note if the object has not previously been created a NULL GEOM object is returned
2889 GEOM_Object GetObject (in long theStudyID, in string theEntry);
2892 * Add a sub shape defined by indices in \a theIndices
2893 * (contains unique IDs of sub shapes inside theMainShape)
2894 * \note The sub shape GEOM_Objects can has ONLY ONE function.
2895 * Don't try to apply modification operations on them.
2896 * \note Internal method
2898 GEOM_Object AddSubShape (in GEOM_Object theMainShape, in ListOfLong theIndices);
2901 * GEOM object's IOR Management
2905 * Returns a GEOM Object defined by its IOR
2906 * \param theIOR a string containg an IOR of the requested GEOM object
2908 GEOM_Object GetIORFromString (in string theIOR);
2911 * Returns a string which contains an IOR of the GEOM object
2912 * \param theObject is a GEOM object which IOR is requested
2914 string GetStringFromIOR (in GEOM_Object theObject);
2917 * Returns a name with which a GEOM object was dumped into python script
2918 * \param theStudyEntry is an entry of the GEOM object in the study
2920 string GetDumpName (in string theStudyEntry);
2923 * Returns all names with which a GEOM objects was dumped
2924 * into python script to avoid the same names in SMESH script
2926 string_array GetAllDumpNames();