File indexing completed on 2026-05-02 08:22:16
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _BRepMesh_SphereRangeSplitter_HeaderFile
0017 #define _BRepMesh_SphereRangeSplitter_HeaderFile
0018
0019 #include <BRepMesh_DefaultRangeSplitter.hxx>
0020 #include <IMeshTools_Parameters.hxx>
0021
0022
0023
0024 class BRepMesh_SphereRangeSplitter : public BRepMesh_DefaultRangeSplitter
0025 {
0026 public:
0027
0028 BRepMesh_SphereRangeSplitter() {}
0029
0030
0031 virtual ~BRepMesh_SphereRangeSplitter() {}
0032
0033
0034 Standard_EXPORT virtual Handle(IMeshData::ListOfPnt2d) GenerateSurfaceNodes(
0035 const IMeshTools_Parameters& theParameters) const Standard_OVERRIDE;
0036
0037 private:
0038
0039 void computeStep(const std::pair<Standard_Real, Standard_Real>& theRange,
0040 const Standard_Real theDefaultStep,
0041 std::pair<Standard_Real, Standard_Real>& theStepAndOffset) const
0042 {
0043 const Standard_Real aDiff = theRange.second - theRange.first;
0044 theStepAndOffset.first = aDiff / ((Standard_Integer)(aDiff / theDefaultStep) + 1);
0045 theStepAndOffset.second = theRange.second - Precision::PConfusion();
0046 }
0047 };
0048
0049 #endif