0024166: Unable to create file with "Save" menu of voxeldemo Qt sample
[occt.git] / src / TopoDS / TopoDS_Builder.lxx
CommitLineData
b311480e 1// Created on: 1991-04-09
2// Created by: Remi LEQUETTE
3// Copyright (c) 1991-1999 Matra Datavision
4// Copyright (c) 1999-2012 OPEN CASCADE SAS
5//
6// The content of this file is subject to the Open CASCADE Technology Public
7// License Version 6.5 (the "License"). You may not use the content of this file
8// except in compliance with the License. Please obtain a copy of the License
9// at http://www.opencascade.org and read it completely before using this file.
10//
11// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13//
14// The Original Code and all software distributed under the License is
15// distributed on an "AS IS" basis, without warranty of any kind, and the
16// Initial Developer hereby disclaims all such warranties, including without
17// limitation, any warranties of merchantability, fitness for a particular
18// purpose or non-infringement. Please see the License for the specific terms
19// and conditions governing the rights and limitations under the License.
20
7fd59977 21
22#include <TopoDS_TWire.hxx>
23#include <TopoDS_TShell.hxx>
24#include <TopoDS_TSolid.hxx>
25#include <TopoDS_TCompSolid.hxx>
26#include <TopoDS_TCompound.hxx>
27#include <TopoDS_Wire.hxx>
28#include <TopoDS_Shell.hxx>
29#include <TopoDS_Solid.hxx>
30#include <TopoDS_CompSolid.hxx>
31#include <TopoDS_Compound.hxx>
32
33
34//=======================================================================
35//function : MakeWire
36//purpose : Make an empty wire
37//=======================================================================
38
39inline void TopoDS_Builder::MakeWire (TopoDS_Wire& W) const
40{
41 Handle(TopoDS_TWire) TW = new TopoDS_TWire();
42 MakeShape(W,TW);
43}
44
45
46//=======================================================================
47//function : MakeShell
48//purpose : Make an empty Shell
49//=======================================================================
50
51inline void TopoDS_Builder::MakeShell (TopoDS_Shell& S) const
52{
53 Handle(TopoDS_TShell) TS = new TopoDS_TShell();
54 MakeShape(S,TS);
55}
56
57//=======================================================================
58//function : MakeSolid
59//purpose : Make an empty Solid
60//=======================================================================
61
62inline void TopoDS_Builder::MakeSolid (TopoDS_Solid& S) const
63{
64 Handle(TopoDS_TSolid) TS = new TopoDS_TSolid();
65 MakeShape(S,TS);
66}
67
68//=======================================================================
69//function : MakeCompSolid
70//purpose : Make an empty CompSolid
71//=======================================================================
72
73inline void TopoDS_Builder::MakeCompSolid (TopoDS_CompSolid& C) const
74{
75 Handle(TopoDS_TCompSolid) TC = new TopoDS_TCompSolid();
76 MakeShape(C,TC);
77}
78
79
80//=======================================================================
81//function : MakeCompound
82//purpose : Make an empty Compound
83//=======================================================================
84
85inline void TopoDS_Builder::MakeCompound (TopoDS_Compound& C) const
86{
87 Handle(TopoDS_TCompound) TC = new TopoDS_TCompound();
88 MakeShape(C,TC);
89}