// Created on: 1991-04-09 // Created by: Remi LEQUETTE // Copyright (c) 1991-1999 Matra Datavision // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free Software Foundation, with special exception defined in the file // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT // distribution for complete text of the license and disclaimer of any warranty. // // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. #include #include #include #include #include #include #include #include #include #include //======================================================================= //function : MakeWire //purpose : Make an empty wire //======================================================================= inline void TopoDS_Builder::MakeWire (TopoDS_Wire& W) const { Handle(TopoDS_TWire) TW = new TopoDS_TWire(); MakeShape(W,TW); } //======================================================================= //function : MakeShell //purpose : Make an empty Shell //======================================================================= inline void TopoDS_Builder::MakeShell (TopoDS_Shell& S) const { Handle(TopoDS_TShell) TS = new TopoDS_TShell(); MakeShape(S,TS); } //======================================================================= //function : MakeSolid //purpose : Make an empty Solid //======================================================================= inline void TopoDS_Builder::MakeSolid (TopoDS_Solid& S) const { Handle(TopoDS_TSolid) TS = new TopoDS_TSolid(); MakeShape(S,TS); } //======================================================================= //function : MakeCompSolid //purpose : Make an empty CompSolid //======================================================================= inline void TopoDS_Builder::MakeCompSolid (TopoDS_CompSolid& C) const { Handle(TopoDS_TCompSolid) TC = new TopoDS_TCompSolid(); MakeShape(C,TC); } //======================================================================= //function : MakeCompound //purpose : Make an empty Compound //======================================================================= inline void TopoDS_Builder::MakeCompound (TopoDS_Compound& C) const { Handle(TopoDS_TCompound) TC = new TopoDS_TCompound(); MakeShape(C,TC); }