1 or 3 files

T

Tadeusz Jordan

Hello,
I am writing a program to load a wrl file. I started off with one cpp file
and I got it to show the vertices and triangles. Therefore I decided to make
the code less messy and divided it to 2 cpp files and one header. To my
surprise when I ran the program I got an output that is definitely wrong -
not entirely but there seem to be distortions and triangles weren't really
drawn but I could still see the shape of the object. Does anyone have any
idea why that would happen?

Tad
 
J

Jim Langston

Tadeusz Jordan said:
Hello,
I am writing a program to load a wrl file. I started off with one cpp file
and I got it to show the vertices and triangles. Therefore I decided to
make the code less messy and divided it to 2 cpp files and one header. To
my surprise when I ran the program I got an output that is definitely
wrong - not entirely but there seem to be distortions and triangles
weren't really drawn but I could still see the shape of the object. Does
anyone have any idea why that would happen?

You split it up wrong. Need to see code.
 
J

John Harrison

Tadeusz said:
Hello,
I am writing a program to load a wrl file. I started off with one cpp file
and I got it to show the vertices and triangles. Therefore I decided to make
the code less messy and divided it to 2 cpp files and one header. To my
surprise when I ran the program I got an output that is definitely wrong -
not entirely but there seem to be distortions and triangles weren't really
drawn but I could still see the shape of the object. Does anyone have any
idea why that would happen?

Yes, your program has a bug. Now how could anybody POSSIBLY know what
that is without seeing any code?

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,291
Messages
2,571,479
Members
48,143
Latest member
Manuelevimb

Latest Threads

Top