Warning, /include/opencascade/HLRBRep_SLPropsATool.lxx is written in an unsupported language. File is not indexed.
0001 // Created on: 1992-08-18
0002 // Created by: Herve LEGRAND
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 #include <HLRBRep_Surface.hxx>
0018 #include <GeomAbs_Shape.hxx>
0019 #include <gp_Pnt.hxx>
0020
0021 //=================================================================================================
0022
0023 inline void HLRBRep_SLPropsATool::Value(const HLRBRep_SurfacePtr A,
0024 const double U,
0025 const double V,
0026 gp_Pnt& P)
0027 {
0028 P = ((HLRBRep_Surface*)A)->Value(U, V);
0029 }
0030
0031 //=================================================================================================
0032
0033 inline void HLRBRep_SLPropsATool::D1(const HLRBRep_SurfacePtr A,
0034 const double U,
0035 const double V,
0036 gp_Pnt& P,
0037 gp_Vec& D1U,
0038 gp_Vec& D1V)
0039 {
0040 ((HLRBRep_Surface*)A)->D1(U, V, P, D1U, D1V);
0041 }
0042
0043 //=================================================================================================
0044
0045 inline void HLRBRep_SLPropsATool::D2(const HLRBRep_SurfacePtr A,
0046 const double U,
0047 const double V,
0048 gp_Pnt& P,
0049 gp_Vec& D1U,
0050 gp_Vec& D1V,
0051 gp_Vec& D2U,
0052 gp_Vec& D2V,
0053 gp_Vec& DUV)
0054 {
0055 ((HLRBRep_Surface*)A)->D2(U, V, P, D1U, D1V, D2U, D2V, DUV);
0056 }
0057
0058 //=================================================================================================
0059
0060 inline gp_Vec HLRBRep_SLPropsATool::DN(const HLRBRep_SurfacePtr A,
0061 const double U,
0062 const double V,
0063 const int Nu,
0064 const int Nv)
0065 {
0066 return ((HLRBRep_Surface*)A)->DN(U, V, Nu, Nv);
0067 }
0068
0069 //=================================================================================================
0070
0071 inline int HLRBRep_SLPropsATool::Continuity(const HLRBRep_SurfacePtr)
0072 {
0073 return 2;
0074 } // et boum ! cky le 27 - 04 - 1993
0075
0076 //=================================================================================================
0077
0078 inline void HLRBRep_SLPropsATool::Bounds(const HLRBRep_SurfacePtr,
0079 double& U1,
0080 double& V1,
0081 double& U2,
0082 double& V2)
0083 {
0084 U1 = V1 = RealFirst();
0085 U2 = V2 = RealLast();
0086 }