From 0e77f926bc4383e9079067b9f6c25c41cd191efc Mon Sep 17 00:00:00 2001 From: nge Date: Fri, 23 Feb 2007 13:50:22 +0000 Subject: [PATCH] PAL 12719 : Add an Arc constructor --- Makefile.in | 1 + idl/GEOM_Gen.idl | 14 ++++++++++++++ idl/GEOM_Superv.idl | 4 ++++ resources/GEOMCatalog.xml.in | 36 +++++++++++++++++++++++++++++++++++ resources/arccenter.png | Bin 0 -> 485 bytes 5 files changed, 55 insertions(+) create mode 100644 resources/arccenter.png 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 0000000000000000000000000000000000000000..88ead9a7b7ab6394c9d34f381aed472c87c4cfd6 GIT binary patch literal 485 zcmVL1a6z*P}Sr*MvLb_mj? zZaNfPG8lM6;5j6hHtA`aDtHjyad~|1`+glk@TaQ<{3CEYi4N<0=%iq4<-x%P)eEYb8cVidXSkjh2mzlzPJi(xA${< zS_@2bASECGxWB#IZqy_*x!ryAC;=%)!F(2|bpS>~uT->B+ic`*=cPj}G2)_-)b#lh z7eWc>yEbbCG{rM1(xI04bFD7849IDsjuMc#kjDp&*_0(t