Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-29 09:16:18

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 //! Tool for splitting and cutting edges; includes methods
0031 //! used in OverlappingTool and IntersectionTool
0032 class ShapeFix_SplitTool
0033 {
0034 public:
0035   DEFINE_STANDARD_ALLOC
0036 
0037   //! Empty constructor
0038   Standard_EXPORT ShapeFix_SplitTool();
0039 
0040   //! Split edge on two new edges using new vertex "vert"
0041   //! and "param" - parameter for splitting
0042   //! The "face" is necessary for pcurves and using TransferParameterProj
0043   Standard_EXPORT Standard_Boolean SplitEdge(const TopoDS_Edge&   edge,
0044                                              const Standard_Real  param,
0045                                              const TopoDS_Vertex& vert,
0046                                              const TopoDS_Face&   face,
0047                                              TopoDS_Edge&         newE1,
0048                                              TopoDS_Edge&         newE2,
0049                                              const Standard_Real  tol3d,
0050                                              const Standard_Real  tol2d) const;
0051 
0052   //! Split edge on two new edges using new vertex "vert"
0053   //! and "param1" and "param2" - parameter for splitting and cutting
0054   //! The "face" is necessary for pcurves and using TransferParameterProj
0055   Standard_EXPORT Standard_Boolean SplitEdge(const TopoDS_Edge&   edge,
0056                                              const Standard_Real  param1,
0057                                              const Standard_Real  param2,
0058                                              const TopoDS_Vertex& vert,
0059                                              const TopoDS_Face&   face,
0060                                              TopoDS_Edge&         newE1,
0061                                              TopoDS_Edge&         newE2,
0062                                              const Standard_Real  tol3d,
0063                                              const Standard_Real  tol2d) const;
0064 
0065   //! Cut edge by parameters pend and cut
0066   Standard_EXPORT Standard_Boolean CutEdge(const TopoDS_Edge&  edge,
0067                                            const Standard_Real pend,
0068                                            const Standard_Real cut,
0069                                            const TopoDS_Face&  face,
0070                                            Standard_Boolean&   iscutline) const;
0071 
0072   //! Split edge on two new edges using two new vertex V1 and V2
0073   //! and two parameters for splitting - fp and lp correspondingly
0074   //! The "face" is necessary for pcurves and using TransferParameterProj
0075   //! aNum - number of edge in SeqE which corresponding to [fp,lp]
0076   Standard_EXPORT Standard_Boolean SplitEdge(const TopoDS_Edge&                edge,
0077                                              const Standard_Real               fp,
0078                                              const TopoDS_Vertex&              V1,
0079                                              const Standard_Real               lp,
0080                                              const TopoDS_Vertex&              V2,
0081                                              const TopoDS_Face&                face,
0082                                              TopTools_SequenceOfShape&         SeqE,
0083                                              Standard_Integer&                 aNum,
0084                                              const Handle(ShapeBuild_ReShape)& context,
0085                                              const Standard_Real               tol3d,
0086                                              const Standard_Real               tol2d) const;
0087 
0088 protected:
0089 private:
0090 };
0091 
0092 #endif // _ShapeFix_SplitTool_HeaderFile