|
|
|||
File indexing completed on 2026-07-17 08:35:00
0001 // Created on: 1994-08-25 0002 // Created by: Jacques GOUSSARD 0003 // Copyright (c) 1994-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 _BRepTools_TrsfModification_HeaderFile 0018 #define _BRepTools_TrsfModification_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_Type.hxx> 0022 0023 #include <gp_Trsf.hxx> 0024 #include <BRepTools_Modification.hxx> 0025 #include <GeomAbs_Shape.hxx> 0026 class TopoDS_Face; 0027 class Geom_Surface; 0028 class TopLoc_Location; 0029 class TopoDS_Edge; 0030 class Geom_Curve; 0031 class TopoDS_Vertex; 0032 class gp_Pnt; 0033 class Geom2d_Curve; 0034 0035 class BRepTools_TrsfModification; 0036 DEFINE_STANDARD_HANDLE(BRepTools_TrsfModification, BRepTools_Modification) 0037 0038 //! Describes a modification that uses a gp_Trsf to 0039 //! change the geometry of a shape. All functions return 0040 //! true and transform the geometry of the shape. 0041 class BRepTools_TrsfModification : public BRepTools_Modification 0042 { 0043 0044 public: 0045 Standard_EXPORT BRepTools_TrsfModification(const gp_Trsf& T); 0046 0047 //! Provides access to the gp_Trsf associated with this 0048 //! modification. The transformation can be changed. 0049 Standard_EXPORT gp_Trsf& Trsf(); 0050 0051 //! Sets a flag to indicate the need to copy mesh. 0052 Standard_EXPORT Standard_Boolean& IsCopyMesh(); 0053 0054 //! Returns true if the face F has been modified. 0055 //! If the face has been modified: 0056 //! - S is the new geometry of the face, 0057 //! - L is its new location, and 0058 //! - Tol is the new tolerance. 0059 //! RevWires is set to true when the modification 0060 //! reverses the normal of the surface (the wires have to be reversed). 0061 //! RevFace is set to true if the orientation of the 0062 //! modified face changes in the shells which contain it. 0063 //! For this class, RevFace returns true if the gp_Trsf 0064 //! associated with this modification is negative. 0065 Standard_EXPORT Standard_Boolean NewSurface(const TopoDS_Face& F, 0066 Handle(Geom_Surface)& S, 0067 TopLoc_Location& L, 0068 Standard_Real& Tol, 0069 Standard_Boolean& RevWires, 0070 Standard_Boolean& RevFace) Standard_OVERRIDE; 0071 0072 //! Returns true if the face has been modified according to changed triangulation. 0073 //! If the face has been modified: 0074 //! - T is a new triangulation on the face 0075 Standard_EXPORT Standard_Boolean 0076 NewTriangulation(const TopoDS_Face& F, Handle(Poly_Triangulation)& T) Standard_OVERRIDE; 0077 0078 //! Returns true if the edge has been modified according to changed polygon. 0079 //! If the edge has been modified: 0080 //! - P is a new polygon 0081 Standard_EXPORT Standard_Boolean NewPolygon(const TopoDS_Edge& E, 0082 Handle(Poly_Polygon3D)& P) Standard_OVERRIDE; 0083 0084 //! Returns true if the edge has been modified according to changed polygon on triangulation. 0085 //! If the edge has been modified: 0086 //! - P is a new polygon on triangulation 0087 Standard_EXPORT Standard_Boolean NewPolygonOnTriangulation(const TopoDS_Edge& E, 0088 const TopoDS_Face& F, 0089 Handle(Poly_PolygonOnTriangulation)& P) 0090 Standard_OVERRIDE; 0091 0092 //! Always returns true indicating that the edge E is always modified. 0093 //! - C is the new geometric support of the edge, 0094 //! - L is the new location, and 0095 //! - Tol is the new tolerance. 0096 Standard_EXPORT Standard_Boolean NewCurve(const TopoDS_Edge& E, 0097 Handle(Geom_Curve)& C, 0098 TopLoc_Location& L, 0099 Standard_Real& Tol) Standard_OVERRIDE; 0100 0101 //! Returns true if the vertex V has been modified. 0102 //! If the vertex has been modified: 0103 //! - P is the new geometry of the vertex, and 0104 //! - Tol is the new tolerance. 0105 //! If the vertex has not been modified this function 0106 //! returns false, and the values of P and Tol are not significant. 0107 Standard_EXPORT Standard_Boolean NewPoint(const TopoDS_Vertex& V, 0108 gp_Pnt& P, 0109 Standard_Real& Tol) Standard_OVERRIDE; 0110 0111 //! Returns true if the edge E has a new curve on surface on the face F. 0112 //! If a new curve exists: 0113 //! - C is the new geometric support of the edge, 0114 //! - L is the new location, and 0115 //! - Tol the new tolerance. 0116 //! If no new curve exists, this function returns false, and 0117 //! the values of C, L and Tol are not significant. 0118 Standard_EXPORT Standard_Boolean NewCurve2d(const TopoDS_Edge& E, 0119 const TopoDS_Face& F, 0120 const TopoDS_Edge& NewE, 0121 const TopoDS_Face& NewF, 0122 Handle(Geom2d_Curve)& C, 0123 Standard_Real& Tol) Standard_OVERRIDE; 0124 0125 //! Returns true if the Vertex V has a new parameter on the edge E. 0126 //! If a new parameter exists: 0127 //! - P is the parameter, and 0128 //! - Tol is the new tolerance. 0129 //! If no new parameter exists, this function returns false, 0130 //! and the values of P and Tol are not significant. 0131 Standard_EXPORT Standard_Boolean NewParameter(const TopoDS_Vertex& V, 0132 const TopoDS_Edge& E, 0133 Standard_Real& P, 0134 Standard_Real& Tol) Standard_OVERRIDE; 0135 0136 //! Returns the continuity of <NewE> between <NewF1> 0137 //! and <NewF2>. 0138 //! 0139 //! <NewE> is the new edge created from <E>. <NewF1> 0140 //! (resp. <NewF2>) is the new face created from <F1> 0141 //! (resp. <F2>). 0142 Standard_EXPORT GeomAbs_Shape Continuity(const TopoDS_Edge& E, 0143 const TopoDS_Face& F1, 0144 const TopoDS_Face& F2, 0145 const TopoDS_Edge& NewE, 0146 const TopoDS_Face& NewF1, 0147 const TopoDS_Face& NewF2) Standard_OVERRIDE; 0148 0149 DEFINE_STANDARD_RTTIEXT(BRepTools_TrsfModification, BRepTools_Modification) 0150 0151 protected: 0152 private: 0153 gp_Trsf myTrsf; 0154 Standard_Boolean myCopyMesh; 0155 }; 0156 0157 #endif // _BRepTools_TrsfModification_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|