|
||||
File indexing completed on 2025-01-18 10:03:11
0001 // Created on: 1996-03-08 0002 // Created by: Jacques GOUSSARD 0003 // Copyright (c) 1996-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 #ifndef _BRepFeat_Gluer_HeaderFile 0018 #define _BRepFeat_Gluer_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <LocOpe_Gluer.hxx> 0025 #include <BRepBuilderAPI_MakeShape.hxx> 0026 #include <LocOpe_Operation.hxx> 0027 #include <TopTools_ListOfShape.hxx> 0028 class TopoDS_Shape; 0029 class TopoDS_Face; 0030 class TopoDS_Edge; 0031 0032 0033 //! One of the most significant aspects 0034 //! of BRepFeat functionality is the use of local operations as opposed 0035 //! to global ones. In a global operation, you would first 0036 //! construct a form of the type you wanted in your final feature, and 0037 //! then remove matter so that it could fit into your initial basis object. 0038 //! In a local operation, however, you specify the domain of the feature 0039 //! construction with aspects of the shape on which the feature is being 0040 //! created. These semantics are expressed in terms of a member 0041 //! shape of the basis shape from which - or up to which - matter will be 0042 //! added or removed. As a result, local operations make calculations 0043 //! simpler and faster than global operations. 0044 //! Glueing uses wires or edges of a face in the basis shape. These are 0045 //! to become a part of the feature. They are first cut out and then 0046 //! projected to a plane outside or inside the basis shape. By 0047 //! rebuilding the initial shape incorporating the edges and the 0048 //! faces of the tool, protrusion features can be constructed. 0049 class BRepFeat_Gluer : public BRepBuilderAPI_MakeShape 0050 { 0051 public: 0052 0053 DEFINE_STANDARD_ALLOC 0054 0055 0056 //! Initializes an empty constructor 0057 BRepFeat_Gluer(); 0058 0059 //! Initializes the shapes to be glued, the new shape 0060 //! Snew and the basis shape Sbase. 0061 BRepFeat_Gluer(const TopoDS_Shape& Snew, const TopoDS_Shape& Sbase); 0062 0063 //! Initializes the new shape Snew and the basis shape 0064 //! Sbase for the local glueing operation. 0065 void Init (const TopoDS_Shape& Snew, const TopoDS_Shape& Sbase); 0066 0067 //! Defines a contact between Fnew on the new shape 0068 //! Snew and Fbase on the basis shape Sbase. Informs 0069 //! other methods that Fnew in the new shape Snew is 0070 //! connected to the face Fbase in the basis shape Sbase. 0071 //! The contact faces of the glued shape must not have 0072 //! parts outside the contact faces of the basis shape. 0073 //! This indicates that glueing is possible. 0074 void Bind (const TopoDS_Face& Fnew, const TopoDS_Face& Fbase); 0075 0076 //! nforms other methods that the edge Enew in the new 0077 //! shape is the same as the edge Ebase in the basis 0078 //! shape and is therefore attached to the basis shape. This 0079 //! indicates that glueing is possible. 0080 void Bind (const TopoDS_Edge& Enew, const TopoDS_Edge& Ebase); 0081 0082 //! Determine which operation type to use glueing or sliding. 0083 LocOpe_Operation OpeType() const; 0084 0085 //! Returns the basis shape of the compound shape. 0086 const TopoDS_Shape& BasisShape() const; 0087 0088 //! Returns the resulting compound shape. 0089 const TopoDS_Shape& GluedShape() const; 0090 0091 //! This is called by Shape(). It does nothing but 0092 //! may be redefined. 0093 Standard_EXPORT virtual void Build(const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE; 0094 0095 //! returns the status of the Face after 0096 //! the shape creation. 0097 Standard_EXPORT virtual Standard_Boolean IsDeleted (const TopoDS_Shape& F) Standard_OVERRIDE; 0098 0099 //! returns the list of generated Faces. 0100 Standard_EXPORT virtual const TopTools_ListOfShape& Modified (const TopoDS_Shape& F) Standard_OVERRIDE; 0101 0102 0103 0104 0105 protected: 0106 0107 0108 0109 0110 0111 private: 0112 0113 0114 0115 LocOpe_Gluer myGluer; 0116 0117 0118 }; 0119 0120 0121 #include <BRepFeat_Gluer.lxx> 0122 0123 0124 0125 0126 0127 #endif // _BRepFeat_Gluer_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |