1+ /* *******************************************************************************
2+ * *
3+ * This file is part of IfcOpenShell. *
4+ * *
5+ * IfcOpenShell is free software: you can redistribute it and/or modify *
6+ * it under the terms of the Lesser GNU General Public License as published by *
7+ * the Free Software Foundation, either version 3.0 of the License, or *
8+ * (at your option) any later version. *
9+ * *
10+ * IfcOpenShell is distributed in the hope that it will be useful, *
11+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13+ * Lesser GNU General Public License for more details. *
14+ * *
15+ * You should have received a copy of the Lesser GNU General Public License *
16+ * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17+ * *
18+ ********************************************************************************/
19+
120#ifndef IFCGEOM_H
221#define IFCGEOM_H
3- #include " ../ifcparse/IfcParse.h"
4- #include " ../ifcparse/IfcTypes.h"
522
623#include < gp_Pnt.hxx>
724#include < gp_Vec.hxx>
8- #include < gp_Pnt2d.hxx>
9- #include < gp_Vec2d.hxx>
1025#include < gp_Trsf.hxx>
1126#include < gp_Trsf2d.hxx>
12- #include < gp_Mat.hxx>
13- #include < gp_Ax3.hxx>
14- #include < gp_Ax2d.hxx>
15- #include < gp_Pln.hxx>
16-
17- #include < TColgp_Array1OfPnt.hxx>
18- #include < TColgp_Array1OfPnt2d.hxx>
19- #include < TColStd_Array1OfReal.hxx>
20- #include < TColStd_Array1OfInteger.hxx>
21- #include < Geom2d_BSplineCurve.hxx>
22- #include < Geom_BSplineCurve.hxx>
23-
24- #include < BRepOffsetAPI_Sewing.hxx>
25- #include < BRepBuilderAPI_MakeFace.hxx>
26- #include < BRepBuilderAPI_MakeEdge.hxx>
27- #include < BRepBuilderAPI_MakeWire.hxx>
28- #include < BRepBuilderAPI_MakePolygon.hxx>
29-
3027#include < TopoDS.hxx>
3128#include < TopoDS_Wire.hxx>
3229#include < TopoDS_Face.hxx>
30+ #include < Geom_Curve.hxx>
31+ #include < gp_Pln.hxx>
3332
34- #include < BRepPrimAPI_MakePrism.hxx>
35- #include < BRepBuilderAPI_MakeShell.hxx>
36- #include < BRepBuilderAPI_MakeSolid.hxx>
37- #include < BRepPrimAPI_MakeHalfSpace.hxx>
38- #include < BRepAlgoAPI_Cut.hxx>
39-
40- #include < ShapeFix_Shape.hxx>
41- #include < ShapeFix_ShapeTolerance.hxx>
42-
43- #include < TopLoc_Location.hxx>
44-
45- #define SCALE 1000 .0f
46-
47- /*
48- namespace IFCgeom {
49- bool convert( Entity* L, gp_Vec*& CC );
50- bool convert( Entity* L, gp_Pnt*& CC );
51- bool convert( Entity* L, gp_Vec2d*& CC );
52- bool convert( Entity* L, gp_Pnt2d*& CC );
53- bool convert ( Entity* L, gp_Ax3*& ax3 );
54- bool convert ( Entity* L, gp_Trsf*& trsf );
55- bool convert ( Entity* L, gp_Trsf2d*& trsf );
56- bool convert ( Entity* L, gp_Pln*& pln );
57- bool convert ( const Entity* L, TopoDS_Wire& wire, int& count );
58- bool convert( const Entity* L, TopoDS_Face& face);
59- bool convert( const Entity* L, TopoDS_Shape& shape);
60- bool move ( const Entity* L, gp_Trsf& trsf );
61- bool move ( const Entity* L, TopoDS_Shape& shape );
62- bool hasopenings( const Entity* L );
63- bool open( const Entity* L, TopoDS_Shape& shape );
64- bool open( const Entity* L, TopoDS_Shape& shape, gp_Trsf trsf2 );
33+ #include " ../ifcparse/IfcParse.h"
34+ #include " ../ifcparse/IfcUtil.h"
35+
36+ namespace IfcGeom {
37+ bool convert_wire_to_face (const TopoDS_Wire& wire, TopoDS_Face& face);
38+ bool convert_shape (const SHARED_PTR<IfcUtil::IfcBaseClass>& L, TopoDS_Shape& result);
39+ bool convert_wire (const SHARED_PTR<IfcUtil::IfcBaseClass>& L, TopoDS_Wire& result);
40+ bool convert_curve (const SHARED_PTR<IfcUtil::IfcBaseClass>& L, Handle(Geom_Curve)& result);
41+ bool convert_face (const SHARED_PTR<IfcUtil::IfcBaseClass>& L, TopoDS_Face& result);
42+ bool convert_openings (const Ifc2x3::IfcProduct::ptr& L, const Ifc2x3::IfcRelVoidsElement::list& openings, TopoDS_Shape& result, const gp_Trsf& trsf);
43+ bool profile_helper (int numVerts, float * verts, int numFillets, int * filletIndices, float * filletRadii, gp_Trsf2d trsf, TopoDS_Face& face);
44+ namespace Cache {
45+ void Purge ();
46+ void PurgeShapeCache ();
47+ }
48+ #include " IfcRegisterGeomHeader.h"
6549}
66- */
67- #endif
50+ #endif
0 commit comments