Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // Created on: 1992-08-24
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_HeaderFile
0018 #define _IntSurf_HeaderFile
0019 
0020 #include <Adaptor3d_Surface.hxx>
0021 
0022 class IntSurf_Transition;
0023 class gp_Dir;
0024 class gp_Vec;
0025 
0026 //! This package provides resources for
0027 //! all the packages concerning the intersection
0028 //! between surfaces.
0029 class IntSurf 
0030 {
0031 public:
0032 
0033   DEFINE_STANDARD_ALLOC
0034 
0035   
0036   //! Computes the transition of the intersection point
0037   //! between the two lines.
0038   //! TgFirst is the tangent vector of the first line.
0039   //! TgSecond is the tangent vector of the second line.
0040   //! Normal is the direction used to orientate the cross
0041   //! product TgFirst^TgSecond.
0042   //! TFirst is the transition of the point on the first line.
0043   //! TSecond is the transition of the point on the second line.
0044   Standard_EXPORT static void MakeTransition (const gp_Vec& TgFirst, const gp_Vec& TgSecond, const gp_Dir& Normal, IntSurf_Transition& TFirst, IntSurf_Transition& TSecond);
0045 
0046   //! Fills theArrOfPeriod array by the period values of theFirstSurf and theSecondSurf.
0047   //! [0] = U-period of theFirstSurf,
0048   //! [1] = V-period of theFirstSurf,
0049   //! [2] = U-period of theSecondSurf,
0050   //! [3] = V-period of theSecondSurf.
0051   //!
0052   //! If surface is not periodic in correspond direction then
0053   //! its period is considered to be equal to 0.
0054   Standard_EXPORT static void SetPeriod(const Handle(Adaptor3d_Surface)& theFirstSurf,
0055                                         const Handle(Adaptor3d_Surface)& theSecondSurf,
0056                                         Standard_Real theArrOfPeriod[4]);
0057 
0058 };
0059 
0060 #endif // _IntSurf_HeaderFile