]> SALOME platform Git repositories - modules/geom.git/blob - src/ShHealOper/ShHealOper_SplitCurve3d.cxx
Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / ShHealOper / ShHealOper_SplitCurve3d.cxx
1 // File:      ShHealOper_SplitCurve3d.cxx
2 // Created:   05.05.04 12:48:36
3 // Author:    Galina KULIKOVA
4 //  < MODULE = KERNEL> <PACKAGE = ShHealOper> : <Shape Healing Operations>
5 //  Copyright (C) 2003  CEA
6 //
7 //  This library is free software; you can redistribute it and/or
8 //  modify it under the terms of the GNU Lesser General Public
9 //  License as published by the Free Software Foundation; either
10 //  version 2.1 of the License.
11 //
12
13 //  This library is distributed in the hope that it will be useful,
14 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 //  Lesser General Public License for more details.
17 //
18 //  You should have received a copy of the GNU Lesser General Public
19 //  License along with this library; if not, write to the Free Software
20 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21 //
22
23
24 #include <ShHealOper_SplitCurve3d.hxx>
25 #include <ShapeExtend_Status.hxx>
26 #include <ShapeExtend.hxx>
27
28 IMPLEMENT_STANDARD_HANDLE (ShHealOper_SplitCurve3d,ShapeUpgrade_SplitCurve3d)
29 IMPLEMENT_STANDARD_RTTIEXT(ShHealOper_SplitCurve3d,ShapeUpgrade_SplitCurve3d)
30
31 //=======================================================================
32 //function : Compute
33 //purpose  : 
34 //=======================================================================
35
36 void ShHealOper_SplitCurve3d::Compute()
37 {
38   if(myValues.IsNull())
39     myStatus = ShapeExtend::EncodeStatus (ShapeExtend_FAIL);
40   else {
41     SetSplitValues(myValues);
42     myStatus = ShapeExtend::EncodeStatus (ShapeExtend_DONE1);
43   }
44 }
45
46