From: nge Date: Fri, 23 Feb 2007 13:50:22 +0000 (+0000) Subject: PAL 12719 : Add an Arc constructor X-Git-Tag: V3_2_6a1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0e77f926bc4383e9079067b9f6c25c41cd191efc;p=modules%2Fgeom.git PAL 12719 : Add an Arc constructor --- diff --git a/Makefile.in b/Makefile.in index 03e147ef6..aa1ebe0e4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -45,6 +45,7 @@ GEOMDS_Resources \ ImportExport \ ShHealing \ arc.png \ +arccenter.png \ archimede.png \ axisinertia.png \ basicproperties.png \ diff --git a/idl/GEOM_Gen.idl b/idl/GEOM_Gen.idl index 92c21c709..f08e2dead 100644 --- a/idl/GEOM_Gen.idl +++ b/idl/GEOM_Gen.idl @@ -1750,6 +1750,20 @@ module GEOM in GEOM_Object thePnt2, in GEOM_Object thePnt3); + /*! + * Create an arc of circle of center C from one point to another + * \param theCenter Center point of the arc. + * \param thePnt1 Start point of the arc. + * \param thePnt2 End point of the arc. + * \param theSense Orientation of the arc + * \return New GEOM_Object, containing the created arc. + */ + GEOM_Object MakeArcCenter (in GEOM_Object theCenter, + in GEOM_Object thePnt1, + in GEOM_Object thePnt2, + in boolean theSense); + + /*! * Create a polyline on the set of points. * \param thePoints Sequence of points for the polyline. diff --git a/idl/GEOM_Superv.idl b/idl/GEOM_Superv.idl index 7c67d2826..75f67c8eb 100644 --- a/idl/GEOM_Superv.idl +++ b/idl/GEOM_Superv.idl @@ -403,6 +403,10 @@ module GEOM GEOM_Object MakeArc (in GEOM_Object thePnt1, in GEOM_Object thePnt2, in GEOM_Object thePnt3) ; + GEOM_Object MakeArcCenter (in GEOM_Object theCenter, + in GEOM_Object thePnt1, + in GEOM_Object thePnt2, + in boolean theSense) ; GEOM_Object MakePolyline (in GEOM_List thePoints) ; GEOM_Object MakeSplineBezier (in GEOM_List thePoints) ; GEOM_Object MakeSplineInterpolation (in GEOM_List thePoints) ; diff --git a/resources/GEOMCatalog.xml.in b/resources/GEOMCatalog.xml.in index 131c35263..4b05e9c22 100644 --- a/resources/GEOMCatalog.xml.in +++ b/resources/GEOMCatalog.xml.in @@ -3857,6 +3857,42 @@ + MakeArcCenter + ngr + 3.2.6 + unknown + 0 + + + theCenter + GEOM_Object + unknown + + + thePnt1 + GEOM_Object + unknown + + + thePnt2 + GEOM_Object + unknown + + + theSense + boolean + unknown + + + + + return + GEOM_Object + unknown + + + + MakePolyline mkr 2.1.0 diff --git a/resources/arccenter.png b/resources/arccenter.png new file mode 100644 index 000000000..88ead9a7b Binary files /dev/null and b/resources/arccenter.png differ