File indexing completed on 2026-09-12 09:17:16
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef _GeomConvert_FuncConeLSDist_HeaderFile
0016 #define _GeomConvert_FuncConeLSDist_HeaderFile
0017
0018 #include <Standard.hxx>
0019 #include <Standard_DefineAlloc.hxx>
0020
0021 #include <math_MultipleVarFunction.hxx>
0022 #include <gp_XYZ.hxx>
0023 #include <NCollection_Array1.hxx>
0024 #include <NCollection_HArray1.hxx>
0025 #include <math_Vector.hxx>
0026 #include <gp_Dir.hxx>
0027
0028
0029
0030
0031 class GeomConvert_FuncConeLSDist : public math_MultipleVarFunction
0032 {
0033 public:
0034 DEFINE_STANDARD_ALLOC
0035
0036
0037 Standard_EXPORT GeomConvert_FuncConeLSDist() = default;
0038
0039 Standard_EXPORT GeomConvert_FuncConeLSDist(
0040 const occ::handle<NCollection_HArray1<gp_XYZ>>& thePoints,
0041 const gp_Dir& theDir);
0042
0043 void SetPoints(const occ::handle<NCollection_HArray1<gp_XYZ>>& thePoints)
0044 {
0045 myPoints = thePoints;
0046 }
0047
0048 void SetDir(const gp_Dir& theDir) { myDir = theDir; }
0049
0050
0051 Standard_EXPORT int NbVariables() const override;
0052
0053
0054 Standard_EXPORT bool Value(const math_Vector& X, double& F) override;
0055
0056 private:
0057 occ::handle<NCollection_HArray1<gp_XYZ>> myPoints;
0058 gp_Dir myDir;
0059 };
0060 #endif