W
watkinsdev
Hi,
I have created a mesh class in visual studio 6.0 c++.
I can create a device, render objects and can edit the objects by for
instancnce selecting a cluster of vertices and processing the vertices
and can do this multiple times on a sinlge vertex cluster.
The problem I have been encoutering is that, if I select a second
vertex cluster and try to edit that , the program crashes.
I have re-written the application from passing pointers to the mesh
object to functions to an application that passes references but I
still get the same type of problem.
in my current version, I declare a reference, m_ref and then pass
this object to the following sequence of function calls :
create sphere ( my_mesh& p_mesh ) returning p_mesh.
select_vertex_cluster ( my_mesh& p_mesh ) returning p_mesh.
Edit_vertex_cluster (( my_mesh& p_mesh ) returning p_mesh.)
If I call the Edit_vertex_cluster , for a second time, it just cannot
find any data, that has been created previously within the object.
I am loosing quite a lot of hair with this one and I have inplimented
a copy constructor but , really I am so confused right now that I just
have no idea what I should be doing .
Can anyone see what type of thing I may be doing wrong here?
I really would appriciate some help with this.
Thanks in advance,
Robert W.
I have created a mesh class in visual studio 6.0 c++.
I can create a device, render objects and can edit the objects by for
instancnce selecting a cluster of vertices and processing the vertices
and can do this multiple times on a sinlge vertex cluster.
The problem I have been encoutering is that, if I select a second
vertex cluster and try to edit that , the program crashes.
I have re-written the application from passing pointers to the mesh
object to functions to an application that passes references but I
still get the same type of problem.
in my current version, I declare a reference, m_ref and then pass
this object to the following sequence of function calls :
create sphere ( my_mesh& p_mesh ) returning p_mesh.
select_vertex_cluster ( my_mesh& p_mesh ) returning p_mesh.
Edit_vertex_cluster (( my_mesh& p_mesh ) returning p_mesh.)
If I call the Edit_vertex_cluster , for a second time, it just cannot
find any data, that has been created previously within the object.
I am loosing quite a lot of hair with this one and I have inplimented
a copy constructor but , really I am so confused right now that I just
have no idea what I should be doing .
Can anyone see what type of thing I may be doing wrong here?
I really would appriciate some help with this.
Thanks in advance,
Robert W.