Back to home page

EIC code displayed by LXR

 
 

    


Warning, /include/opencascade/TopoDS_Builder.lxx is written in an unsupported language. File is not indexed.

0001 // Created on: 1991-04-09
0002 // Created by: Remi LEQUETTE
0003 // Copyright (c) 1991-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #include <TopoDS_TWire.hxx>
0018 #include <TopoDS_TShell.hxx>
0019 #include <TopoDS_TSolid.hxx>
0020 #include <TopoDS_TCompSolid.hxx>
0021 #include <TopoDS_TCompound.hxx>
0022 #include <TopoDS_Wire.hxx>
0023 #include <TopoDS_Shell.hxx>
0024 #include <TopoDS_Solid.hxx>
0025 #include <TopoDS_CompSolid.hxx>
0026 #include <TopoDS_Compound.hxx>
0027 
0028 
0029 //=======================================================================
0030 //function : MakeWire
0031 //purpose  : Make an empty wire
0032 //=======================================================================
0033 
0034 inline void TopoDS_Builder::MakeWire (TopoDS_Wire& W) const
0035 {
0036   Handle(TopoDS_TWire) TW = new TopoDS_TWire();
0037   MakeShape(W,TW);
0038 }
0039 
0040 
0041 //=======================================================================
0042 //function : MakeShell
0043 //purpose  : Make an empty Shell
0044 //=======================================================================
0045 
0046 inline void TopoDS_Builder::MakeShell (TopoDS_Shell& S) const
0047 {
0048   Handle(TopoDS_TShell) TS = new TopoDS_TShell();
0049   MakeShape(S,TS);
0050 }
0051 
0052 //=======================================================================
0053 //function : MakeSolid
0054 //purpose  : Make an empty Solid
0055 //=======================================================================
0056 
0057 inline void TopoDS_Builder::MakeSolid (TopoDS_Solid& S) const
0058 {
0059   Handle(TopoDS_TSolid) TS = new TopoDS_TSolid();
0060   MakeShape(S,TS);
0061 }
0062 
0063 //=======================================================================
0064 //function : MakeCompSolid
0065 //purpose  : Make an empty CompSolid
0066 //=======================================================================
0067 
0068 inline void TopoDS_Builder::MakeCompSolid (TopoDS_CompSolid& C) const
0069 {
0070   Handle(TopoDS_TCompSolid) TC = new TopoDS_TCompSolid();
0071   MakeShape(C,TC);
0072 }
0073 
0074 
0075 //=======================================================================
0076 //function : MakeCompound
0077 //purpose  : Make an empty Compound
0078 //=======================================================================
0079 
0080 inline void TopoDS_Builder::MakeCompound (TopoDS_Compound& C) const
0081 {
0082   Handle(TopoDS_TCompound) TC = new TopoDS_TCompound();
0083   MakeShape(C,TC);
0084 }