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