1 //--------------------------------------------------------------------
3 // File Name : IGESSolid_SphericalSurface.cxx
5 // Author : CKY / Contract Toubro-Larsen
6 // Copyright : MATRA-DATAVISION 1993
8 //--------------------------------------------------------------------
10 #include <IGESSolid_SphericalSurface.ixx>
11 #include <gp_GTrsf.hxx>
14 IGESSolid_SphericalSurface::IGESSolid_SphericalSurface () { }
17 void IGESSolid_SphericalSurface::Init
18 (const Handle(IGESGeom_Point)& aCenter,
19 const Standard_Real aRadius,
20 const Handle(IGESGeom_Direction)& anAxis,
21 const Handle(IGESGeom_Direction)& aRefdir)
27 InitTypeAndForm(196, (theRefDir.IsNull() ? 0 : 1) );
30 Handle(IGESGeom_Point) IGESSolid_SphericalSurface::Center () const
35 gp_Pnt IGESSolid_SphericalSurface::TransformedCenter () const
37 if (!HasTransf()) return theCenter->Value();
40 gp_XYZ tmp = (theCenter->Value()).XYZ();
41 Location().Transforms(tmp);
46 Standard_Real IGESSolid_SphericalSurface::Radius () const
51 Handle(IGESGeom_Direction) IGESSolid_SphericalSurface::Axis () const
56 Handle(IGESGeom_Direction) IGESSolid_SphericalSurface::ReferenceDir () const
61 Standard_Boolean IGESSolid_SphericalSurface::IsParametrised () const
63 return !(theRefDir.IsNull());