1 // Created on: 1993-03-10
3 // Copyright (c) 1993-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
18 #include <Geom_Curve.hxx>
19 #include <Geom_Surface.hxx>
20 #include <Geom_UndefinedDerivative.hxx>
21 #include <Geom_UndefinedValue.hxx>
22 #include <gp_GTrsf2d.hxx>
24 #include <gp_Trsf.hxx>
26 #include <Standard_NoSuchObject.hxx>
27 #include <Standard_RangeError.hxx>
28 #include <Standard_Type.hxx>
30 IMPLEMENT_STANDARD_RTTIEXT(Geom_Surface,Geom_Geometry)
32 typedef Geom_Surface Surface;
34 //=======================================================================
35 //function : UReversed
37 //=======================================================================
39 Handle(Geom_Surface) Geom_Surface::UReversed () const
41 Handle(Geom_Surface) S = Handle(Geom_Surface)::DownCast(Copy());
47 //=======================================================================
48 //function : VReversed
50 //=======================================================================
52 Handle(Geom_Surface) Geom_Surface::VReversed () const
54 Handle(Geom_Surface) S = Handle(Geom_Surface)::DownCast(Copy());
60 //=======================================================================
61 //function : TransformParameters
63 //=======================================================================
65 void Geom_Surface::TransformParameters(Standard_Real& ,
67 const gp_Trsf& ) const
71 //=======================================================================
72 //function : ParametricTransformation
74 //=======================================================================
76 gp_GTrsf2d Geom_Surface::ParametricTransformation(const gp_Trsf&) const
82 //=======================================================================
85 //=======================================================================
87 Standard_Real Geom_Surface::UPeriod() const
89 Standard_NoSuchObject_Raise_if
90 ( !IsUPeriodic(),"Geom_Surface::UPeriod");
92 Standard_Real U1, U2, V1, V2;
98 //=======================================================================
101 //=======================================================================
103 Standard_Real Geom_Surface::VPeriod() const
105 Standard_NoSuchObject_Raise_if
106 ( !IsVPeriodic(),"Geom_Surface::VPeriod");
108 Standard_Real U1, U2, V1, V2;
113 //=======================================================================
116 //=======================================================================
118 gp_Pnt Geom_Surface::Value(const Standard_Real U,
119 const Standard_Real V)const