CR32614 Coding - get rid of unsused forward declarations [Adaptor2d to GccAna]
[occt.git] / src / BRepPrimAPI / BRepPrimAPI_MakeHalfSpace.hxx
CommitLineData
42cf5bc1 1// Created on: 1995-03-08
2// Created by: Bruno DUMORTIER
3// Copyright (c) 1995-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
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.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _BRepPrimAPI_MakeHalfSpace_HeaderFile
18#define _BRepPrimAPI_MakeHalfSpace_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <TopoDS_Solid.hxx>
25#include <BRepBuilderAPI_MakeShape.hxx>
42cf5bc1 26class TopoDS_Face;
27class gp_Pnt;
28class TopoDS_Shell;
42cf5bc1 29
30
31//! Describes functions to build half-spaces.
32//! A half-space is an infinite solid, limited by a surface. It
33//! is built from a face or a shell, which bounds it, and with
34//! a reference point, which specifies the side of the
35//! surface where the matter of the half-space is located.
36//! A half-space is a tool commonly used in topological
37//! operations to cut another shape.
38//! A MakeHalfSpace object provides a framework for:
39//! - defining and implementing the construction of a half-space, and
40//! - consulting the result.
41class BRepPrimAPI_MakeHalfSpace : public BRepBuilderAPI_MakeShape
42{
43public:
44
45 DEFINE_STANDARD_ALLOC
46
47
48 //! Make a HalfSpace defined with a Face and a Point.
49 Standard_EXPORT BRepPrimAPI_MakeHalfSpace(const TopoDS_Face& Face, const gp_Pnt& RefPnt);
50
51 //! Make a HalfSpace defined with a Shell and a Point.
52 Standard_EXPORT BRepPrimAPI_MakeHalfSpace(const TopoDS_Shell& Shell, const gp_Pnt& RefPnt);
53
54 //! Returns the constructed half-space as a solid.
55 Standard_EXPORT const TopoDS_Solid& Solid() const;
56Standard_EXPORT operator TopoDS_Solid() const;
57
58
59
60
61protected:
62
63
64
65
66
67private:
68
69
70
71 TopoDS_Solid mySolid;
72
73
74};
75
76
77
78
79
80
81
82#endif // _BRepPrimAPI_MakeHalfSpace_HeaderFile