- Joined
- Mar 19, 2009
I am currently building a "the sims" like house editor in my free time and i am having a simple and stupid problem.
I need to find the surface geometry (triangle list) for a room.
I have a vertices list representing the interesections of the walls that are part of the room, they are not random and if connected together they form the perimeter for that room.
But i really can't find an algorithm that does this, i have been looking for it for about 4 hours this morning and all i have found is for convex geometry (a room isn't necessarily convex)
I remember asking a friend a while back, and he told me the name of the algorithm and now we both don't remember it . . .
I was already thinking about reimplementing it from scratch, but my brain began to smoke after 5 minutes of thinking about it, who doesn't hate geometry in programming?
it's sad I know
and i really do hope you can help me out =)
I need to find the surface geometry (triangle list) for a room.
I have a vertices list representing the interesections of the walls that are part of the room, they are not random and if connected together they form the perimeter for that room.
But i really can't find an algorithm that does this, i have been looking for it for about 4 hours this morning and all i have found is for convex geometry (a room isn't necessarily convex)
I remember asking a friend a while back, and he told me the name of the algorithm and now we both don't remember it . . .
I was already thinking about reimplementing it from scratch, but my brain began to smoke after 5 minutes of thinking about it, who doesn't hate geometry in programming?
it's sad I know
and i really do hope you can help me out =)