hello,
when you define your first vertexes, it's expecting a constructor with 
parameters, which your not passing to it.
You can overload the constructor to solve the problem


Thanks,
Tyler Littlefield
email: [EMAIL PROTECTED]
web: tysdomain-com
Visit for quality software and web design.
skype: st8amnd2005

  ----- Original Message ----- 
  From: Jos Timanta Tarigan 
  To: [email protected] 
  Sent: Saturday, November 15, 2008 1:18 PM
  Subject: [c-prog] Constructor calling


  Hi, 

  I got question. 
  I have a constructor with parameter like this one:

  Vertex4f::Vertex4f(const Vertex4f& _v){

  this->x = _v.x;
  this->y = _v.y;
  this->z = _v.z;
  this->w = _v.w;

  }

  why do i have an error while doing this:

  Vertex4f v1, v2, v3;
  v1(this->vertices[this->triangles[i].getV1()]);
  v2(this->vertices[this->triangles[i].getV2()]);
  v3(this->vertices[this->triangles[i].getV3()]);

  but not error by doing this:

  Vertex4f v1(this->vertices[this->triangles[i].getV1()]);
  Vertex4f v2(this->vertices[this->triangles[i].getV2()]);
  Vertex4f v3(this->vertices[this->triangles[i].getV3()]);

  Isnt it just a matter of "make now assign later" kind of thing? 

  Thanks



   

[Non-text portions of this message have been removed]

Reply via email to