Fixed bug in VRML coordinate conversion
This commit is contained in:
parent
9a0b020806
commit
7434e673e1
|
@ -227,9 +227,11 @@ bool SGCOORDS::WriteVRML( std::ofstream& aFile, bool aReuseFlag )
|
||||||
|
|
||||||
for( size_t i = 0; i < n; )
|
for( size_t i = 0; i < n; )
|
||||||
{
|
{
|
||||||
pt = coords[i];
|
|
||||||
// ensure VRML output has 1U = 0.1 inch as per legacy kicad expectations
|
// ensure VRML output has 1U = 0.1 inch as per legacy kicad expectations
|
||||||
|
pt = coords[i];
|
||||||
pt.x /= 2.54;
|
pt.x /= 2.54;
|
||||||
|
pt.y /= 2.54;
|
||||||
|
pt.z /= 2.54;
|
||||||
S3D::FormatPoint( tmp, pt );
|
S3D::FormatPoint( tmp, pt );
|
||||||
aFile << tmp ;
|
aFile << tmp ;
|
||||||
++i;
|
++i;
|
||||||
|
|
Loading…
Reference in New Issue