]> gerrit.simantics Code Review - simantics/3d.git/blob - org.jcae.opencascade/src/BRepFilletAPI.i
Equipment/Component library customization
[simantics/3d.git] / org.jcae.opencascade / src / BRepFilletAPI.i
1 /*
2  * Project Info:  http://jcae.sourceforge.net
3  * 
4  * This program is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License as published by the Free
6  * Software Foundation; either version 2.1 of the License, or (at your option)
7  * any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12  * details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program; if not, write to the Free Software Foundation, Inc.,
16  * 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
17  *
18  * (C) Copyright 2007, by EADS France
19  */
20 %{#include <BRepFilletAPI_MakeFillet.hxx>%}
21 %{#include <BRepFilletAPI_MakeChamfer.hxx>%}
22
23 class BRepFilletAPI_LocalOperation: public BRepBuilderAPI_MakeShape
24 {
25 };
26
27 %rename(Rational) ChFi3d_Rational;
28 %rename(QuasiAngular) ChFi3d_QuasiAngular;
29 %rename(Polynomial) ChFi3d_Polynomial;
30
31 enum ChFi3d_FilletShape {
32     ChFi3d_Rational,
33     ChFi3d_QuasiAngular,
34     ChFi3d_Polynomial
35 };
36
37 class BRepFilletAPI_MakeFillet: public BRepFilletAPI_LocalOperation
38 {
39     %rename(add) Add; 
40   public:
41     BRepFilletAPI_MakeFillet(const TopoDS_Shape& shape, const ChFi3d_FilletShape type = ChFi3d_Rational);
42     void Add(const Standard_Real radius, const TopoDS_Edge& edge) ;
43 };
44
45 class BRepFilletAPI_MakeChamfer: public BRepFilletAPI_LocalOperation
46 {
47     %rename(add) Add; 
48   public:
49     BRepFilletAPI_MakeChamfer(const TopoDS_Shape& shape);
50     void Add(const Standard_Real distance, const TopoDS_Edge& edge, const TopoDS_Face& face);
51 };
52