basic/geometry/vrml_reader/VrmlScaleOrientation.cpp

Go to the documentation of this file.
00001 #include <assert.h>
00002 #include <math/vector4.h>
00003 #include <stdio.h>
00004 #include "VrmlScaleOrientation.h"
00005 
00006 //=============================================================================
00007 // Parse
00008 //
00009 // Description: Parses the scaleOrientation node from the file
00010 //=============================================================================
00011 void VrmlScaleOrientation ::Parse( char*& buffer )
00012 {
00013         float x;
00014         float y;
00015         float z;
00016         float w;
00017 
00018         //read in 4 floating point numbers
00019         int result;
00020         result = sscanf( buffer, "%f%f%f%f", &x, &y, &z, &w );
00021         assert( result == 4 );
00022 
00023         //advance to the end of the line
00024         while( buffer[ 0 ] != '\n' )
00025         {
00026                 buffer++;
00027         }
00028 
00029         //build the internal matrix
00030         this->m_Matrix = Matrix4x4::Identity();
00031         //this->m_Matrix.Scale( x, y, z );
00032 }

Generated on Sat Apr 1 21:30:34 2006 for Motion Planning Kernel by  doxygen 1.4.6-NO