goat3d

diff src/mesh.cc @ 40:a5c5cec3cb88

- added mesh attribute and face append functions - added Int4 constructor - continued the blender exporter - fixed a bug in clean_filename which made it produce unterminated strings - renamed clean_filename to goat3d_clean_filename and made it extern - added call to goat3d_clean_filename in the mesh XML export code to cleanup ctm filenames
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 13 Oct 2013 10:14:19 +0300
parents 0fe02696fb1e
children 498ca7ac7047
line diff
     1.1 --- a/src/mesh.cc	Wed Oct 09 16:40:59 2013 +0300
     1.2 +++ b/src/mesh.cc	Sun Oct 13 10:14:19 2013 +0300
     1.3 @@ -3,6 +3,19 @@
     1.4  #include "openctm.h"
     1.5  #include "log.h"
     1.6  
     1.7 +Int4::Int4()
     1.8 +{
     1.9 +	x = y = z = w = 0;
    1.10 +}
    1.11 +
    1.12 +Int4::Int4(int x, int y, int z, int w)
    1.13 +{
    1.14 +	this->x = x;
    1.15 +	this->y = y;
    1.16 +	this->z = z;
    1.17 +	this->w = w;
    1.18 +}
    1.19 +
    1.20  Mesh::Mesh()
    1.21  {
    1.22  	material = 0;