0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / src / BRepFeat / BRepFeat_Gluer.hxx
CommitLineData
42cf5bc1 1// Created on: 1996-03-08
2// Created by: Jacques GOUSSARD
3// Copyright (c) 1996-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 _BRepFeat_Gluer_HeaderFile
18#define _BRepFeat_Gluer_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_DefineAlloc.hxx>
22#include <Standard_Handle.hxx>
23
24#include <LocOpe_Gluer.hxx>
25#include <BRepBuilderAPI_MakeShape.hxx>
26#include <LocOpe_Operation.hxx>
42cf5bc1 27#include <TopTools_ListOfShape.hxx>
28class TopoDS_Shape;
29class TopoDS_Face;
30class TopoDS_Edge;
31
32
33//! One of the most significant aspects
34//! of BRepFeat functionality is the use of local operations as opposed
35//! to global ones. In a global operation, you would first
36//! construct a form of the type you wanted in your final feature, and
37//! then remove matter so that it could fit into your initial basis object.
38//! In a local operation, however, you specify the domain of the feature
39//! construction with aspects of the shape on which the feature is being
40//! created. These semantics are expressed in terms of a member
41//! shape of the basis shape from which - or up to which - matter will be
42//! added or removed. As a result, local operations make calculations
43//! simpler and faster than global operations.
44//! Glueing uses wires or edges of a face in the basis shape. These are
45//! to become a part of the feature. They are first cut out and then
46//! projected to a plane outside or inside the basis shape. By
47//! rebuilding the initial shape incorporating the edges and the
48//! faces of the tool, protrusion features can be constructed.
49class BRepFeat_Gluer : public BRepBuilderAPI_MakeShape
50{
51public:
52
53 DEFINE_STANDARD_ALLOC
54
55
56 //! Initializes an empty constructor
57 BRepFeat_Gluer();
58
59 //! Initializes the shapes to be glued, the new shape
60 //! Snew and the basis shape Sbase.
61 BRepFeat_Gluer(const TopoDS_Shape& Snew, const TopoDS_Shape& Sbase);
62
63 //! Initializes the new shape Snew and the basis shape
64 //! Sbase for the local glueing operation.
65 void Init (const TopoDS_Shape& Snew, const TopoDS_Shape& Sbase);
66
67 //! Defines a contact between Fnew on the new shape
68 //! Snew and Fbase on the basis shape Sbase. Informs
69 //! other methods that Fnew in the new shape Snew is
70 //! connected to the face Fbase in the basis shape Sbase.
71 //! The contact faces of the glued shape must not have
72 //! parts outside the contact faces of the basis shape.
73 //! This indicates that glueing is possible.
74 void Bind (const TopoDS_Face& Fnew, const TopoDS_Face& Fbase);
75
76 //! nforms other methods that the edge Enew in the new
77 //! shape is the same as the edge Ebase in the basis
78 //! shape and is therefore attached to the basis shape. This
79 //! indicates that glueing is possible.
80 void Bind (const TopoDS_Edge& Enew, const TopoDS_Edge& Ebase);
81
82 //! Determine which operation type to use glueing or sliding.
83 LocOpe_Operation OpeType() const;
84
85 //! Returns the basis shape of the compound shape.
86 const TopoDS_Shape& BasisShape() const;
87
88 //! Returns the resulting compound shape.
89 const TopoDS_Shape& GluedShape() const;
90
91 //! This is called by Shape(). It does nothing but
92 //! may be redefined.
d03c0898 93 Standard_EXPORT virtual void Build(const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
42cf5bc1 94
95 //! returns the status of the Face after
96 //! the shape creation.
97 Standard_EXPORT virtual Standard_Boolean IsDeleted (const TopoDS_Shape& F) Standard_OVERRIDE;
98
99 //! returns the list of generated Faces.
100 Standard_EXPORT virtual const TopTools_ListOfShape& Modified (const TopoDS_Shape& F) Standard_OVERRIDE;
101
102
103
104
105protected:
106
107
108
109
110
111private:
112
113
114
115 LocOpe_Gluer myGluer;
116
117
118};
119
120
121#include <BRepFeat_Gluer.lxx>
122
123
124
125
126
127#endif // _BRepFeat_Gluer_HeaderFile