Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-23 08:30:19

0001 // Created on: 1992-05-15
0002 // Created by: Jacques GOUSSARD
0003 // Copyright (c) 1992-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _IntSurf_InteriorPoint_HeaderFile
0018 #define _IntSurf_InteriorPoint_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <gp_Pnt.hxx>
0024 #include <gp_Vec.hxx>
0025 #include <gp_Vec2d.hxx>
0026 
0027 //! Definition of a point solution of the
0028 //! intersection between an implicit an a
0029 //! parametrised surface. These points are
0030 //! passing points on the intersection lines,
0031 //! or starting points for the closed lines
0032 //! on the parametrised surface.
0033 class IntSurf_InteriorPoint
0034 {
0035 public:
0036   DEFINE_STANDARD_ALLOC
0037 
0038   Standard_EXPORT IntSurf_InteriorPoint();
0039 
0040   Standard_EXPORT IntSurf_InteriorPoint(const gp_Pnt&       P,
0041                                         const Standard_Real U,
0042                                         const Standard_Real V,
0043                                         const gp_Vec&       Direc,
0044                                         const gp_Vec2d&     Direc2d);
0045 
0046   Standard_EXPORT void SetValue(const gp_Pnt&       P,
0047                                 const Standard_Real U,
0048                                 const Standard_Real V,
0049                                 const gp_Vec&       Direc,
0050                                 const gp_Vec2d&     Direc2d);
0051 
0052   //! Returns the 3d coordinates of the interior point.
0053   const gp_Pnt& Value() const;
0054 
0055   //! Returns the parameters of the interior point on the
0056   //! parametric surface.
0057   void Parameters(Standard_Real& U, Standard_Real& V) const;
0058 
0059   //! Returns the first parameter of the interior point on the
0060   //! parametric surface.
0061   Standard_Real UParameter() const;
0062 
0063   //! Returns the second parameter of the interior point on the
0064   //! parametric surface.
0065   Standard_Real VParameter() const;
0066 
0067   //! Returns the tangent at the intersection in 3d space
0068   //! associated to the interior point.
0069   const gp_Vec& Direction() const;
0070 
0071   //! Returns the tangent at the intersection in the parametric
0072   //! space of the parametric surface.
0073   const gp_Vec2d& Direction2d() const;
0074 
0075 protected:
0076 private:
0077   gp_Pnt        point;
0078   Standard_Real paramu;
0079   Standard_Real paramv;
0080   gp_Vec        direc;
0081   gp_Vec2d      direc2d;
0082 };
0083 
0084 #include <IntSurf_InteriorPoint.lxx>
0085 
0086 #endif // _IntSurf_InteriorPoint_HeaderFile