|
||||
File indexing completed on 2025-01-18 10:04:56
0001 // Created on: 1998-06-03 0002 // Created by: data exchange team 0003 // Copyright (c) 1998-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 _ShapeFix_WireVertex_HeaderFile 0018 #define _ShapeFix_WireVertex_HeaderFile 0019 0020 #include <Standard.hxx> 0021 #include <Standard_DefineAlloc.hxx> 0022 #include <Standard_Handle.hxx> 0023 0024 #include <ShapeAnalysis_WireVertex.hxx> 0025 #include <Standard_Integer.hxx> 0026 class TopoDS_Wire; 0027 class ShapeExtend_WireData; 0028 0029 0030 //! Fixing disconnected edges in the wire 0031 //! Fixes vertices in the wire on the basis of pre-analysis 0032 //! made by ShapeAnalysis_WireVertex (given as argument). 0033 //! The Wire has formerly been loaded in a ShapeExtend_WireData. 0034 class ShapeFix_WireVertex 0035 { 0036 public: 0037 0038 DEFINE_STANDARD_ALLOC 0039 0040 0041 Standard_EXPORT ShapeFix_WireVertex(); 0042 0043 //! Loads the wire, ininializes internal analyzer 0044 //! (ShapeAnalysis_WireVertex) with the given precision, 0045 //! and performs analysis 0046 Standard_EXPORT void Init (const TopoDS_Wire& wire, const Standard_Real preci); 0047 0048 //! Loads the wire, ininializes internal analyzer 0049 //! (ShapeAnalysis_WireVertex) with the given precision, 0050 //! and performs analysis 0051 Standard_EXPORT void Init (const Handle(ShapeExtend_WireData)& sbwd, const Standard_Real preci); 0052 0053 //! Loads all the data on wire, already analysed by 0054 //! ShapeAnalysis_WireVertex 0055 Standard_EXPORT void Init (const ShapeAnalysis_WireVertex& sawv); 0056 0057 //! returns internal analyzer 0058 Standard_EXPORT const ShapeAnalysis_WireVertex& Analyzer() const; 0059 0060 //! returns data on wire (fixed) 0061 Standard_EXPORT const Handle(ShapeExtend_WireData)& WireData() const; 0062 0063 //! returns resulting wire (fixed) 0064 Standard_EXPORT TopoDS_Wire Wire() const; 0065 0066 //! Fixes "Same" or "Close" status (same vertex may be set, 0067 //! without changing parameters) 0068 //! Returns the count of fixed vertices, 0 if none 0069 Standard_EXPORT Standard_Integer FixSame(); 0070 0071 //! Fixes all statuses except "Disjoined", i.e. the cases in which a 0072 //! common value has been set, with or without changing parameters 0073 //! Returns the count of fixed vertices, 0 if none 0074 Standard_EXPORT Standard_Integer Fix(); 0075 0076 0077 0078 0079 protected: 0080 0081 0082 0083 0084 0085 private: 0086 0087 0088 0089 ShapeAnalysis_WireVertex myAnalyzer; 0090 0091 0092 }; 0093 0094 0095 0096 0097 0098 0099 0100 #endif // _ShapeFix_WireVertex_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |