Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:10

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 
0028 //! Definition of a point solution of the
0029 //! intersection between an implicit an a
0030 //! parametrised surface. These points are
0031 //! passing points on the intersection lines,
0032 //! or starting points for the closed lines
0033 //! on the parametrised surface.
0034 class IntSurf_InteriorPoint 
0035 {
0036 public:
0037 
0038   DEFINE_STANDARD_ALLOC
0039 
0040   
0041   Standard_EXPORT IntSurf_InteriorPoint();
0042   
0043   Standard_EXPORT IntSurf_InteriorPoint(const gp_Pnt& P, const Standard_Real U, const Standard_Real V, const gp_Vec& Direc, const gp_Vec2d& Direc2d);
0044   
0045   Standard_EXPORT void SetValue (const gp_Pnt& P, const Standard_Real U, const Standard_Real V, const gp_Vec& Direc, const gp_Vec2d& Direc2d);
0046   
0047   //! Returns the 3d coordinates of the interior point.
0048     const gp_Pnt& Value() const;
0049   
0050   //! Returns the parameters of the interior point on the
0051   //! parametric surface.
0052     void Parameters (Standard_Real& U, Standard_Real& V) const;
0053   
0054   //! Returns the first parameter of the interior point on the
0055   //! parametric surface.
0056     Standard_Real UParameter() const;
0057   
0058   //! Returns the second parameter of the interior point on the
0059   //! parametric surface.
0060     Standard_Real VParameter() const;
0061   
0062   //! Returns the tangent at the intersection in 3d space
0063   //! associated to the interior point.
0064     const gp_Vec& Direction() const;
0065   
0066   //! Returns the tangent at the intersection in the parametric
0067   //! space of the parametric surface.
0068     const gp_Vec2d& Direction2d() const;
0069 
0070 
0071 
0072 
0073 protected:
0074 
0075 
0076 
0077 
0078 
0079 private:
0080 
0081 
0082 
0083   gp_Pnt point;
0084   Standard_Real paramu;
0085   Standard_Real paramv;
0086   gp_Vec direc;
0087   gp_Vec2d direc2d;
0088 
0089 
0090 };
0091 
0092 
0093 #include <IntSurf_InteriorPoint.lxx>
0094 
0095 
0096 
0097 
0098 
0099 #endif // _IntSurf_InteriorPoint_HeaderFile