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.
17 #include <BRepPrimAPI_MakeOneAxis.ixx>
18 #include <BRepBuilderAPI.hxx>
19 #include <BRepPrim_OneAxis.hxx>
22 //=======================================================================
25 //=======================================================================
27 const TopoDS_Face& BRepPrimAPI_MakeOneAxis::Face()
30 return ((BRepPrim_OneAxis*) OneAxis())->LateralFace();
34 //=======================================================================
37 //=======================================================================
39 const TopoDS_Shell& BRepPrimAPI_MakeOneAxis::Shell()
42 return ((BRepPrim_OneAxis*) OneAxis())->Shell();
45 //=======================================================================
48 //=======================================================================
50 void BRepPrimAPI_MakeOneAxis::Build()
53 B.MakeSolid(TopoDS::Solid(myShape));
54 B.Add(myShape,((BRepPrim_OneAxis*) OneAxis())->Shell());
55 myShape.Closed(Standard_True);
59 //=======================================================================
62 //=======================================================================
64 const TopoDS_Solid& BRepPrimAPI_MakeOneAxis::Solid()
67 return TopoDS::Solid(myShape);
72 //=======================================================================
75 //=======================================================================
77 BRepPrimAPI_MakeOneAxis::operator TopoDS_Face()
82 //=======================================================================
85 //=======================================================================
87 BRepPrimAPI_MakeOneAxis::operator TopoDS_Shell()
93 //=======================================================================
96 //=======================================================================
98 BRepPrimAPI_MakeOneAxis::operator TopoDS_Solid()