blob: 47c68ba5bedf26a291e61f92a13e573d093aaa12 (
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
30
31
32
33
34
35
36
37
38
|
#include <Vrml_Scale.ixx>
Vrml_Scale::Vrml_Scale()
{
gp_Vec tmpV(1,1,1);
myScaleFactor = tmpV;
}
Vrml_Scale::Vrml_Scale(const gp_Vec& aScaleFactor)
{
myScaleFactor = aScaleFactor;
}
void Vrml_Scale::SetScaleFactor(const gp_Vec& aScaleFactor)
{
myScaleFactor = aScaleFactor;
}
gp_Vec Vrml_Scale::ScaleFactor() const
{
return myScaleFactor;
}
Standard_OStream& Vrml_Scale::Print(Standard_OStream& anOStream) const
{
anOStream << "Scale {" << endl;
if ( Abs(myScaleFactor.X() - 1) > 0.0001 ||
Abs(myScaleFactor.Y() - 1) > 0.0001 ||
Abs(myScaleFactor.Z() - 1) > 0.0001 )
{
anOStream << " scaleFactor" << '\t';
anOStream << myScaleFactor.X() << ' ' << myScaleFactor.Y() << ' ' << myScaleFactor.Z() << endl;
}
anOStream << '}' << endl;
return anOStream;
}
|