blob: 12a9f536b96b74398816b9cef4581388842fb8b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <Vrml_Sphere.ixx>
Vrml_Sphere::Vrml_Sphere(const Standard_Real aRadius)
{
myRadius = aRadius;
}
void Vrml_Sphere::SetRadius(const Standard_Real aRadius)
{
myRadius = aRadius;
}
Standard_Real Vrml_Sphere::Radius() const
{
return myRadius;
}
Standard_OStream& Vrml_Sphere::Print(Standard_OStream& anOStream) const
{
anOStream << "Sphere {" << endl;
if ( Abs(myRadius - 1) > 0.0001 )
{
anOStream << " radius" << '\t';
anOStream << myRadius << endl;
}
anOStream << '}' << endl;
return anOStream;
}
|