Findin a Vertex in a Box

Started by
3 comments, last by Esap1 23 years, 6 months ago
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
Advertisement
How do you define your box?
Do you just have 8 vertices or do you have the origin and 2 min/max vectors?
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!
I didn''t understand a thing from your last post...
I didnt sound "THAT" crazy, maybe its cause ur a newbie?

This topic is closed to new replies.

Advertisement