hi @all. i have written a c++ program for visualization of .stl files using opengl. for small files the loading time is no problem, but if the files get larger (a couple of mb which means a few hundred thousand triangles) the loading time gets minutes. for the read in process i use both ifstream and fopen. there is nearly no difference in time. i think the problem is the way i save the data in memory. i use a single linked list consisting of pointers to a class for each triangle. now i am thinking of using float** matrizes and initializing them with the values read in using malloc(). but i don't know if this will increase performance. i will try. does anyone have any other ideas to solve my loading problem?
thanks in advance, andrew
thanks in advance, andrew
Comment