Subversion Repositories gelsvn

Rev

Rev 39 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 39 Rev 102
Line 62... Line 62...
62
	
62
	
63
  void startElement(void *userData, const char *name, const char **atts) 
63
  void startElement(void *userData, const char *name, const char **atts) 
64
  {
64
  {
65
    if (strcmp(name,"IndexedFaceSet")==0)
65
    if (strcmp(name,"IndexedFaceSet")==0)
66
      {
66
      {
67
				int j=0,i;
67
				int j=0;
68
				while (atts[j]!=0) {
68
				while (atts[j]!=0) {
69
					if (strcmp(atts[j],"coordIndex")==0) 
69
					if (strcmp(atts[j],"coordIndex")==0) 
70
						{ 
70
						{ 
71
							vector<int> coord_index;
71
							vector<int> coord_index;
72
							parse(atts[++j],coord_index);
72
							parse(atts[++j],coord_index);
Line 153... Line 153...
153
		
153
		
154
		build_manifold(mani, vertices.size(), &vertices[0], faces.size(),
154
		build_manifold(mani, vertices.size(), &vertices[0], faces.size(),
155
									 &faces[0], &indices[0]);
155
									 &faces[0], &indices[0]);
156
 
156
 
157
    cout << " Loading took " << tim.get_secs() << endl;
157
    cout << " Loading took " << tim.get_secs() << endl;
158
    return true;
158
    return false;
159
  }
159
  }
160
}
160
}