karansher / computer-graphics-bounding-volume-hierarchy

Computer Graphics Assignment about Bounding Volume Hierarchies
0 stars 0 forks source link

smaller sample data #11

Open FarzanehCS opened 1 year ago

FarzanehCS commented 1 year ago

Hi, The runtime for the triangle-triangle intersection is very high and I needed to try my method on smaller data to make sure it is correct. I tried putting one triangle in the knight.obj and cheburashka.obj files, but I get an error when running the ./intersections on it.

image

Here is the examples of the triangles:

v -0.14824 2.52521 0
v -1.34479 -3.96203 0
v 1.93996 -2.57505 0
f 0 1 2
v 1.23387 1.07878 0
v -1.73338 4.10115 0
v -6.10082 0.61392 1
f 0 1 2

I am not sure what the problem is?

guyuli2002 commented 1 year ago

I have the same problem here, running time for both distances and intersections tests are really long and I need to reduce the sample size to make it run faster. Is this normal?