File indexing completed on 2025-01-18 10:04:56
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _ShapeFix_Wireframe_HeaderFile
0018 #define _ShapeFix_Wireframe_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <TopoDS_Shape.hxx>
0024 #include <Standard_Integer.hxx>
0025 #include <ShapeFix_Root.hxx>
0026 #include <TopTools_MapOfShape.hxx>
0027 #include <TopTools_DataMapOfShapeListOfShape.hxx>
0028 #include <ShapeExtend_Status.hxx>
0029
0030
0031 class ShapeFix_Wireframe;
0032 DEFINE_STANDARD_HANDLE(ShapeFix_Wireframe, ShapeFix_Root)
0033
0034
0035 class ShapeFix_Wireframe : public ShapeFix_Root
0036 {
0037
0038 public:
0039
0040
0041 Standard_EXPORT ShapeFix_Wireframe();
0042
0043 Standard_EXPORT ShapeFix_Wireframe(const TopoDS_Shape& shape);
0044
0045
0046 Standard_EXPORT virtual void ClearStatuses();
0047
0048
0049 Standard_EXPORT void Load (const TopoDS_Shape& shape);
0050
0051
0052
0053
0054 Standard_EXPORT Standard_Boolean FixWireGaps();
0055
0056
0057
0058 Standard_EXPORT Standard_Boolean FixSmallEdges();
0059
0060
0061
0062 Standard_EXPORT Standard_Boolean CheckSmallEdges (TopTools_MapOfShape& theSmallEdges, TopTools_DataMapOfShapeListOfShape& theEdgeToFaces, TopTools_DataMapOfShapeListOfShape& theFaceWithSmall, TopTools_MapOfShape& theMultyEdges);
0063
0064
0065
0066
0067
0068
0069
0070
0071 Standard_EXPORT Standard_Boolean MergeSmallEdges (TopTools_MapOfShape& theSmallEdges, TopTools_DataMapOfShapeListOfShape& theEdgeToFaces, TopTools_DataMapOfShapeListOfShape& theFaceWithSmall, TopTools_MapOfShape& theMultyEdges, const Standard_Boolean theModeDrop = Standard_False, const Standard_Real theLimitAngle = -1);
0072
0073
0074
0075
0076
0077
0078
0079 Standard_Boolean StatusWireGaps (const ShapeExtend_Status status) const;
0080
0081
0082
0083
0084
0085 Standard_Boolean StatusSmallEdges (const ShapeExtend_Status status) const;
0086
0087 TopoDS_Shape Shape();
0088
0089
0090 Standard_Boolean& ModeDropSmallEdges();
0091
0092
0093 void SetLimitAngle (const Standard_Real theLimitAngle);
0094
0095
0096 Standard_Real LimitAngle() const;
0097
0098
0099
0100
0101 DEFINE_STANDARD_RTTIEXT(ShapeFix_Wireframe,ShapeFix_Root)
0102
0103 protected:
0104
0105
0106 TopoDS_Shape myShape;
0107
0108
0109 private:
0110
0111
0112 Standard_Boolean myModeDrop;
0113 Standard_Real myLimitAngle;
0114 Standard_Integer myStatusWireGaps;
0115 Standard_Integer myStatusSmallEdges;
0116
0117
0118 };
0119
0120
0121 #include <ShapeFix_Wireframe.lxx>
0122
0123
0124
0125
0126
0127 #endif