1 // Created on: 1993-07-23
2 // Created by: Remi LEQUETTE
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
18 #include <BRepBuilderAPI.hxx>
19 #include <BRepPrim_OneAxis.hxx>
20 #include <BRepPrimAPI_MakeOneAxis.hxx>
21 #include <StdFail_NotDone.hxx>
23 #include <TopoDS_Face.hxx>
24 #include <TopoDS_Shell.hxx>
25 #include <TopoDS_Solid.hxx>
27 //=======================================================================
30 //=======================================================================
31 const TopoDS_Face& BRepPrimAPI_MakeOneAxis::Face()
34 return ((BRepPrim_OneAxis*) OneAxis())->LateralFace();
38 //=======================================================================
41 //=======================================================================
43 const TopoDS_Shell& BRepPrimAPI_MakeOneAxis::Shell()
46 return ((BRepPrim_OneAxis*) OneAxis())->Shell();
49 //=======================================================================
52 //=======================================================================
54 void BRepPrimAPI_MakeOneAxis::Build()
57 B.MakeSolid(TopoDS::Solid(myShape));
58 B.Add(myShape,((BRepPrim_OneAxis*) OneAxis())->Shell());
62 //=======================================================================
65 //=======================================================================
67 const TopoDS_Solid& BRepPrimAPI_MakeOneAxis::Solid()
70 return TopoDS::Solid(myShape);
75 //=======================================================================
78 //=======================================================================
80 BRepPrimAPI_MakeOneAxis::operator TopoDS_Face()
85 //=======================================================================
88 //=======================================================================
90 BRepPrimAPI_MakeOneAxis::operator TopoDS_Shell()
96 //=======================================================================
99 //=======================================================================
101 BRepPrimAPI_MakeOneAxis::operator TopoDS_Solid()