|
|
|||
File indexing completed on 2026-08-23 09:16:28
0001 // Created on: 1997-10-14 0002 // Created by: Olga KOULECHOVA 0003 // Copyright (c) 1997-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_MakeRevolutionForm_HeaderFile 0018 #define _BRepFeat_MakeRevolutionForm_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <gp_Ax1.hxx> 0025 #include <TopTools_DataMapOfShapeListOfShape.hxx> 0026 #include <TopTools_ListOfShape.hxx> 0027 #include <BRepFeat_RibSlot.hxx> 0028 #include <Standard_Integer.hxx> 0029 class Geom_Plane; 0030 class TopoDS_Shape; 0031 class TopoDS_Wire; 0032 class TopoDS_Edge; 0033 class TopoDS_Face; 0034 class gp_Pnt; 0035 0036 //! MakeRevolutionForm Generates a surface of 0037 //! revolution in the feature as it slides along a 0038 //! revolved face in the basis shape. 0039 //! The semantics of mechanical features is built 0040 //! around giving thickness to a contour. This 0041 //! thickness can either be unilateral - on one side 0042 //! of the contour - or bilateral - on both sides. As 0043 //! in the semantics of form features, the thickness 0044 //! is defined by construction of shapes in specific contexts. 0045 //! The development contexts differ, however,in 0046 //! case of mechanical features. Here they include extrusion: 0047 //! - to a limiting face of the basis shape 0048 //! - to or from a limiting plane 0049 //! - to a height. 0050 class BRepFeat_MakeRevolutionForm : public BRepFeat_RibSlot 0051 { 0052 public: 0053 DEFINE_STANDARD_ALLOC 0054 0055 //! initializes the linear form class. 0056 BRepFeat_MakeRevolutionForm(); 0057 0058 //! a contour W, a shape Sbase and a plane P are initialized to serve as 0059 //! the basic elements in the construction of the rib or groove. The axis Axis of the 0060 //! revolved surface in the basis shape defines the feature's axis of revolution. 0061 //! Height1 and Height2 may be used as limits to the construction of the feature. 0062 //! Fuse offers a choice between: 0063 //! - removing matter with a Boolean cut using the setting 0 in case of the groove 0064 //! - adding matter with Boolean fusion using the setting 1 in case of the rib. 0065 BRepFeat_MakeRevolutionForm(const TopoDS_Shape& Sbase, 0066 const TopoDS_Wire& W, 0067 const Handle(Geom_Plane)& Plane, 0068 const gp_Ax1& Axis, 0069 const Standard_Real Height1, 0070 const Standard_Real Height2, 0071 const Standard_Integer Fuse, 0072 Standard_Boolean& Sliding); 0073 0074 //! Initializes this construction algorithm 0075 //! A contour W, a shape Sbase and a plane P are initialized to serve as the basic elements 0076 //! in the construction of the rib or groove. The axis Axis of the revolved surface in the basis 0077 //! shape defines the feature's axis of revolution. Height1 and Height2 may be 0078 //! used as limits to the construction of the feature. 0079 //! Fuse offers a choice between: 0080 //! - removing matter with a Boolean cut using the setting 0 in case of the groove 0081 //! - adding matter with Boolean fusion using the setting 1 in case of the rib. 0082 Standard_EXPORT void Init(const TopoDS_Shape& Sbase, 0083 const TopoDS_Wire& W, 0084 const Handle(Geom_Plane)& Plane, 0085 const gp_Ax1& Axis, 0086 const Standard_Real Height1, 0087 const Standard_Real Height2, 0088 const Standard_Integer Fuse, 0089 Standard_Boolean& Sliding); 0090 0091 //! Indicates that the edge <E> will slide on the face 0092 //! <OnFace>. Raises ConstructionError if the face does not belong to the 0093 //! basis shape, or the edge to the prismed shape. 0094 Standard_EXPORT void Add(const TopoDS_Edge& E, const TopoDS_Face& OnFace); 0095 0096 //! Performs a prism from the wire to the plane 0097 //! along the basis shape S. Reconstructs the feature topologically. 0098 Standard_EXPORT void Perform(); 0099 0100 Standard_EXPORT Standard_Boolean Propagate(TopTools_ListOfShape& L, 0101 const TopoDS_Face& F, 0102 const gp_Pnt& FPoint, 0103 const gp_Pnt& LPoint, 0104 Standard_Boolean& falseside); 0105 0106 protected: 0107 private: 0108 gp_Ax1 myAxe; 0109 Standard_Real myHeight1; 0110 Standard_Real myHeight2; 0111 Standard_Boolean mySliding; 0112 Handle(Geom_Plane) myPln; 0113 Standard_Real myBnd; 0114 TopTools_DataMapOfShapeListOfShape mySlface; 0115 TopTools_ListOfShape myListOfEdges; 0116 Standard_Real myTol; 0117 Standard_Real myAngle1; 0118 Standard_Real myAngle2; 0119 }; 0120 0121 #include <BRepFeat_MakeRevolutionForm.lxx> 0122 0123 #endif // _BRepFeat_MakeRevolutionForm_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|