|
|
|||
File indexing completed on 2026-09-22 08:59:14
0001 // Created on: 1999-05-08 0002 // Created by: Andrey BETENEV 0003 // Copyright (c) 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 _ShapeCustom_ConvertToRevolution_HeaderFile 0018 #define _ShapeCustom_ConvertToRevolution_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <ShapeCustom_Modification.hxx> 0024 #include <GeomAbs_Shape.hxx> 0025 class TopoDS_Face; 0026 class Geom_Surface; 0027 class TopLoc_Location; 0028 class TopoDS_Edge; 0029 class Geom_Curve; 0030 class TopoDS_Vertex; 0031 class gp_Pnt; 0032 class Geom2d_Curve; 0033 0034 //! implements a modification for the BRepTools 0035 //! Modifier algorithm. Converts all elementary 0036 //! surfaces into surfaces of revolution. 0037 class ShapeCustom_ConvertToRevolution : public ShapeCustom_Modification 0038 { 0039 0040 public: 0041 Standard_EXPORT ShapeCustom_ConvertToRevolution(); 0042 0043 //! Returns true if the face <F> has been 0044 //! modified. In this case, <S> is the new geometric 0045 //! support of the face, <L> the new location, <Tol> 0046 //! the new tolerance. Otherwise, returns 0047 //! false, and <S>, <L>, <Tol> are not 0048 //! significant. 0049 Standard_EXPORT bool NewSurface(const TopoDS_Face& F, 0050 occ::handle<Geom_Surface>& S, 0051 TopLoc_Location& L, 0052 double& Tol, 0053 bool& RevWires, 0054 bool& RevFace) override; 0055 0056 //! Returns true if the edge <E> has been 0057 //! modified. In this case, <C> is the new geometric 0058 //! support of the edge, <L> the new location, <Tol> 0059 //! the new tolerance. Otherwise, returns 0060 //! false, and <C>, <L>, <Tol> are not 0061 //! significant. 0062 Standard_EXPORT bool NewCurve(const TopoDS_Edge& E, 0063 occ::handle<Geom_Curve>& C, 0064 TopLoc_Location& L, 0065 double& Tol) override; 0066 0067 //! Returns true if the vertex <V> has been 0068 //! modified. In this case, <P> is the new geometric 0069 //! support of the vertex, <Tol> the new tolerance. 0070 //! Otherwise, returns false, and <P>, <Tol> 0071 //! are not significant. 0072 Standard_EXPORT bool NewPoint(const TopoDS_Vertex& V, gp_Pnt& P, double& Tol) override; 0073 0074 //! Returns true if the edge <E> has a new 0075 //! curve on surface on the face <F>.In this case, <C> 0076 //! is the new geometric support of the edge, <L> the 0077 //! new location, <Tol> the new tolerance. 0078 //! 0079 //! Otherwise, returns false, and <C>, <L>, 0080 //! <Tol> are not significant. 0081 //! 0082 //! <NewE> is the new edge created from <E>. <NewF> 0083 //! is the new face created from <F>. They may be useful. 0084 Standard_EXPORT bool NewCurve2d(const TopoDS_Edge& E, 0085 const TopoDS_Face& F, 0086 const TopoDS_Edge& NewE, 0087 const TopoDS_Face& NewF, 0088 occ::handle<Geom2d_Curve>& C, 0089 double& Tol) override; 0090 0091 //! Returns true if the Vertex <V> has a new 0092 //! parameter on the edge <E>. In this case, <P> is 0093 //! the parameter, <Tol> the new tolerance. 0094 //! Otherwise, returns false, and <P>, <Tol> 0095 //! are not significant. 0096 Standard_EXPORT bool NewParameter(const TopoDS_Vertex& V, 0097 const TopoDS_Edge& E, 0098 double& P, 0099 double& Tol) override; 0100 0101 //! Returns the continuity of <NewE> between <NewF1> 0102 //! and <NewF2>. 0103 //! 0104 //! <NewE> is the new edge created from <E>. <NewF1> 0105 //! (resp. <NewF2>) is the new face created from <F1> 0106 //! (resp. <F2>). 0107 Standard_EXPORT GeomAbs_Shape Continuity(const TopoDS_Edge& E, 0108 const TopoDS_Face& F1, 0109 const TopoDS_Face& F2, 0110 const TopoDS_Edge& NewE, 0111 const TopoDS_Face& NewF1, 0112 const TopoDS_Face& NewF2) override; 0113 0114 DEFINE_STANDARD_RTTIEXT(ShapeCustom_ConvertToRevolution, ShapeCustom_Modification) 0115 }; 0116 0117 #endif // _ShapeCustom_ConvertToRevolution_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|