File indexing completed on 2026-06-01 08:33:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _ShapeUpgrade_ShapeDivideArea_HeaderFile
0017 #define _ShapeUpgrade_ShapeDivideArea_HeaderFile
0018
0019 #include <Standard.hxx>
0020 #include <Standard_DefineAlloc.hxx>
0021 #include <Standard_Handle.hxx>
0022
0023 #include <ShapeUpgrade_ShapeDivide.hxx>
0024 class TopoDS_Shape;
0025 class ShapeUpgrade_FaceDivide;
0026
0027
0028 class ShapeUpgrade_ShapeDivideArea : public ShapeUpgrade_ShapeDivide
0029 {
0030 public:
0031 DEFINE_STANDARD_ALLOC
0032
0033 Standard_EXPORT ShapeUpgrade_ShapeDivideArea();
0034
0035
0036 Standard_EXPORT ShapeUpgrade_ShapeDivideArea(const TopoDS_Shape& S);
0037
0038
0039 Standard_Real& MaxArea();
0040
0041
0042
0043 Standard_Integer& NbParts();
0044
0045
0046
0047 void SetNumbersUVSplits(const Standard_Integer theNbUsplits, const Standard_Integer theNbVsplits);
0048
0049
0050
0051
0052
0053 void SetSplittingByNumber(const Standard_Boolean theIsSplittingByNumber);
0054
0055 protected:
0056
0057 Standard_EXPORT virtual Handle(ShapeUpgrade_FaceDivide) GetSplitFaceTool() const
0058 Standard_OVERRIDE;
0059
0060 private:
0061 Standard_Real myMaxArea;
0062 Standard_Integer myNbParts;
0063 Standard_Integer myUnbSplit;
0064 Standard_Integer myVnbSplit;
0065 Standard_Boolean myIsSplittingByNumber;
0066 };
0067
0068 #include <ShapeUpgrade_ShapeDivideArea.lxx>
0069
0070 #endif