Archived

This topic is now archived and is closed to further replies.

Esap1

Findin a Vertex in a Box

Recommended Posts

Whats the quickess way to find if a Vertex(point) is in a box, between four other vertices(points)? Im just not thinkin clearly I guess

Share this post


Link to post
Share on other sites
How do you define your box?
Do you just have 8 vertices or do you have the origin and 2 min/max vectors?

Share this post


Link to post
Share on other sites
Sorry, that was a REALLY STUPID QUESTION. As you see, it was kinda late that nite. I didnt even check the my Box class. Well I wrote a 1 line function to do it

I computed the xmin, xmax,ymin etc... then I already had a function to test if a Vertex was in a Box from my Octree Code, so I just made a Face checker by calling the Vertex one 3 times, complicated huh, thanks all, this place is great.

PS: I just wanted to say that Ive gotton what seems to be the hard parts out of my engine, and everything is GETTING SO EASY TO PROGRAM, ive been programming small games for a while, but I think I hit a point where I can actaully make a Quility Engine, hell Im doin it now, this is only my 3rd one two, first a Software one, then a DirectX one, now an OpenGL one.
Sorry for my little rant, they really need a chat room here
XGDC ROCKED!

Share this post


Link to post
Share on other sites