Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2024-11-15 09:48:35

0001 // Created on: 2004-07-14
0002 // Created by: Sergey KUUL
0003 // Copyright (c) 2004-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef _ShapeFix_SplitTool_HeaderFile
0017 #define _ShapeFix_SplitTool_HeaderFile
0018 
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022 
0023 #include <TopTools_SequenceOfShape.hxx>
0024 #include <Standard_Integer.hxx>
0025 class TopoDS_Edge;
0026 class TopoDS_Vertex;
0027 class TopoDS_Face;
0028 class ShapeBuild_ReShape;
0029 
0030 
0031 //! Tool for splitting and cutting edges; includes methods
0032 //! used in OverlappingTool and IntersectionTool
0033 class ShapeFix_SplitTool 
0034 {
0035 public:
0036 
0037   DEFINE_STANDARD_ALLOC
0038 
0039   
0040   //! Empty constructor
0041   Standard_EXPORT ShapeFix_SplitTool();
0042   
0043   //! Split edge on two new edges using new vertex "vert"
0044   //! and "param" - parameter for splitting
0045   //! The "face" is necessary for pcurves and using TransferParameterProj
0046   Standard_EXPORT Standard_Boolean SplitEdge (const TopoDS_Edge& edge, const Standard_Real param, const TopoDS_Vertex& vert, const TopoDS_Face& face, TopoDS_Edge& newE1, TopoDS_Edge& newE2, const Standard_Real tol3d, const Standard_Real tol2d) const;
0047   
0048   //! Split edge on two new edges using new vertex "vert"
0049   //! and "param1" and "param2" - parameter for splitting and cutting
0050   //! The "face" is necessary for pcurves and using TransferParameterProj
0051   Standard_EXPORT Standard_Boolean SplitEdge (const TopoDS_Edge& edge, const Standard_Real param1, const Standard_Real param2, const TopoDS_Vertex& vert, const TopoDS_Face& face, TopoDS_Edge& newE1, TopoDS_Edge& newE2, const Standard_Real tol3d, const Standard_Real tol2d) const;
0052   
0053   //! Cut edge by parameters pend and cut
0054   Standard_EXPORT Standard_Boolean CutEdge (const TopoDS_Edge& edge, const Standard_Real pend, const Standard_Real cut, const TopoDS_Face& face, Standard_Boolean& iscutline) const;
0055   
0056   //! Split edge on two new edges using two new vertex V1 and V2
0057   //! and two parameters for splitting - fp and lp correspondingly
0058   //! The "face" is necessary for pcurves and using TransferParameterProj
0059   //! aNum - number of edge in SeqE which corresponding to [fp,lp]
0060   Standard_EXPORT Standard_Boolean SplitEdge (const TopoDS_Edge& edge, const Standard_Real fp, const TopoDS_Vertex& V1, const Standard_Real lp, const TopoDS_Vertex& V2, const TopoDS_Face& face, TopTools_SequenceOfShape& SeqE, Standard_Integer& aNum, const Handle(ShapeBuild_ReShape)& context, const Standard_Real tol3d, const Standard_Real tol2d) const;
0061 
0062 
0063 
0064 
0065 protected:
0066 
0067 
0068 
0069 
0070 
0071 private:
0072 
0073 
0074 
0075 
0076 
0077 };
0078 
0079 
0080 
0081 
0082 
0083 
0084 
0085 #endif // _ShapeFix_SplitTool_HeaderFile