mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-01 10:26:12 +03:00
Macro NO_CXX_EXCEPTION was removed from code. Method Raise() was replaced by explicit throw statement. Method Standard_Failure::Caught() was replaced by normal C++mechanism of exception transfer. Method Standard_Failure::Caught() is deprecated now. Eliminated empty constructors. Updated samples. Eliminate empty method ChangeValue from NCollection_Map class. Removed not operable methods from NCollection classes.
142 lines
3.8 KiB
C++
142 lines
3.8 KiB
C++
// Created on: 1991-03-28
|
|
// Created by: Jacques GOUSSARD
|
|
// Copyright (c) 1991-1999 Matra Datavision
|
|
// Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
//
|
|
// This file is part of Open CASCADE Technology software library.
|
|
//
|
|
// This library is free software; you can redistribute it and/or modify it under
|
|
// the terms of the GNU Lesser General Public License version 2.1 as published
|
|
// by the Free Software Foundation, with special exception defined in the file
|
|
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
// distribution for complete text of the license and disclaimer of any warranty.
|
|
//
|
|
// Alternatively, this file may be used under the terms of Open CASCADE
|
|
// commercial license or contractual agreement.
|
|
|
|
#ifndef _IntWalk_TheFunctionOfTheInt2S_HeaderFile
|
|
#define _IntWalk_TheFunctionOfTheInt2S_HeaderFile
|
|
|
|
#include <Standard.hxx>
|
|
#include <Standard_DefineAlloc.hxx>
|
|
#include <Standard_Handle.hxx>
|
|
|
|
#include <Standard_Address.hxx>
|
|
#include <gp_Pnt.hxx>
|
|
#include <Standard_Real.hxx>
|
|
#include <Standard_Boolean.hxx>
|
|
#include <gp_Vec.hxx>
|
|
#include <IntImp_ConstIsoparametric.hxx>
|
|
#include <math_FunctionSetWithDerivatives.hxx>
|
|
#include <Standard_Integer.hxx>
|
|
#include <math_Vector.hxx>
|
|
#include <TColStd_Array1OfReal.hxx>
|
|
#include <gp_Dir.hxx>
|
|
#include <gp_Dir2d.hxx>
|
|
class StdFail_UndefinedDerivative;
|
|
class Standard_ConstructionError;
|
|
class Adaptor3d_HSurface;
|
|
class Adaptor3d_HSurfaceTool;
|
|
class math_Matrix;
|
|
|
|
|
|
|
|
class IntWalk_TheFunctionOfTheInt2S : public math_FunctionSetWithDerivatives
|
|
{
|
|
public:
|
|
|
|
DEFINE_STANDARD_ALLOC
|
|
|
|
|
|
Standard_EXPORT IntWalk_TheFunctionOfTheInt2S(const Handle(Adaptor3d_HSurface)& S1, const Handle(Adaptor3d_HSurface)& S2);
|
|
|
|
Standard_EXPORT Standard_Integer NbVariables() const;
|
|
|
|
Standard_EXPORT Standard_Integer NbEquations() const;
|
|
|
|
Standard_EXPORT Standard_Boolean Value (const math_Vector& X, math_Vector& F);
|
|
|
|
Standard_EXPORT Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D);
|
|
|
|
Standard_EXPORT Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D);
|
|
|
|
Standard_EXPORT void ComputeParameters (const IntImp_ConstIsoparametric ChoixIso, const TColStd_Array1OfReal& Param, math_Vector& UVap, math_Vector& BornInf, math_Vector& BornSup, math_Vector& Tolerance);
|
|
|
|
//! returns somme des fi*fi
|
|
Standard_Real Root() const;
|
|
|
|
gp_Pnt Point() const;
|
|
|
|
Standard_EXPORT Standard_Boolean IsTangent (const math_Vector& UVap, TColStd_Array1OfReal& Param, IntImp_ConstIsoparametric& BestChoix);
|
|
|
|
gp_Dir Direction() const;
|
|
|
|
gp_Dir2d DirectionOnS1() const;
|
|
|
|
gp_Dir2d DirectionOnS2() const;
|
|
|
|
const Handle(Adaptor3d_HSurface)& AuxillarSurface1() const;
|
|
|
|
const Handle(Adaptor3d_HSurface)& AuxillarSurface2() const;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
Standard_Address surf1;
|
|
Standard_Address surf2;
|
|
gp_Pnt pntsol1;
|
|
gp_Pnt pntsol2;
|
|
Standard_Real f[3];
|
|
Standard_Boolean compute;
|
|
Standard_Boolean tangent;
|
|
Standard_Real tgduv[4];
|
|
gp_Vec dpuv[4];
|
|
IntImp_ConstIsoparametric chxIso;
|
|
Standard_Real paramConst;
|
|
Standard_Real ua0;
|
|
Standard_Real va0;
|
|
Standard_Real ua1;
|
|
Standard_Real va1;
|
|
Standard_Real ub0;
|
|
Standard_Real vb0;
|
|
Standard_Real ub1;
|
|
Standard_Real vb1;
|
|
Standard_Real ures1;
|
|
Standard_Real ures2;
|
|
Standard_Real vres1;
|
|
Standard_Real vres2;
|
|
|
|
|
|
};
|
|
|
|
#define ThePSurface Handle(Adaptor3d_HSurface)
|
|
#define ThePSurface_hxx <Adaptor3d_HSurface.hxx>
|
|
#define ThePSurfaceTool Adaptor3d_HSurfaceTool
|
|
#define ThePSurfaceTool_hxx <Adaptor3d_HSurfaceTool.hxx>
|
|
#define IntImp_ZerParFunc IntWalk_TheFunctionOfTheInt2S
|
|
#define IntImp_ZerParFunc_hxx <IntWalk_TheFunctionOfTheInt2S.hxx>
|
|
|
|
#include <IntImp_ZerParFunc.lxx>
|
|
|
|
#undef ThePSurface
|
|
#undef ThePSurface_hxx
|
|
#undef ThePSurfaceTool
|
|
#undef ThePSurfaceTool_hxx
|
|
#undef IntImp_ZerParFunc
|
|
#undef IntImp_ZerParFunc_hxx
|
|
|
|
|
|
|
|
|
|
#endif // _IntWalk_TheFunctionOfTheInt2S_HeaderFile
|