1 // Created on: 2004-02-04 2 // Created by: Sergey KUUL 3 // Copyright (c) 2004-2014 OPEN CASCADE SAS 4 // 5 // This file is part of Open CASCADE Technology software library. 6 // 7 // This library is free software; you can redistribute it and/or modify it under 8 // the terms of the GNU Lesser General Public License version 2.1 as published 9 // by the Free Software Foundation, with special exception defined in the file 10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 11 // distribution for complete text of the license and disclaimer of any warranty. 12 // 13 // Alternatively, this file may be used under the terms of Open CASCADE 14 // commercial license or contractual agreement. 15 16 #ifndef _ShapeFix_SplitCommonVertex_HeaderFile 17 #define _ShapeFix_SplitCommonVertex_HeaderFile 18 19 #include <Standard.hxx> 20 #include <Standard_Type.hxx> 21 22 #include <TopoDS_Shape.hxx> 23 #include <Standard_Integer.hxx> 24 #include <ShapeFix_Root.hxx> 25 class TopoDS_Shape; 26 27 28 class ShapeFix_SplitCommonVertex; 29 DEFINE_STANDARD_HANDLE(ShapeFix_SplitCommonVertex, ShapeFix_Root) 30 31 //! Two wires have common vertex - this case is valid in BRep model 32 //! and isn't valid in STEP => before writing into STEP it is necessary 33 //! to split this vertex (each wire must has one vertex) 34 class ShapeFix_SplitCommonVertex : public ShapeFix_Root 35 { 36 37 public: 38 39 40 Standard_EXPORT ShapeFix_SplitCommonVertex(); 41 42 Standard_EXPORT void Init (const TopoDS_Shape& S); 43 44 Standard_EXPORT void Perform(); 45 46 Standard_EXPORT TopoDS_Shape Shape(); 47 48 49 50 51 DEFINE_STANDARD_RTTIEXT(ShapeFix_SplitCommonVertex,ShapeFix_Root) 52 53 protected: 54 55 56 57 58 private: 59 60 61 TopoDS_Shape myShape; 62 TopoDS_Shape myResult; 63 Standard_Integer myStatus; 64 65 66 }; 67 68 69 70 71 72 73 74 #endif // _ShapeFix_SplitCommonVertex_HeaderFile 75