this i think represents the most complicated case over which the code should eventually be able to iterate. it should manipulate the given geometry into this:
Then Iterate each edge creating the planes equation between 3 points (camera location, and the 2 vertex in the edge)
Then iterate again and look for all the edges that intersects that plane. Those intersections will tell you where to add points into the edge on the first iteration.
This way you can also cut the edges if they cross each other.
and ... ?
ReplyDeleteworking on it today :) learnt some new stuff too :)
ReplyDeleteWell
ReplyDeleteFirst you will need the camera coordinates.
Then Iterate each edge creating the planes equation between 3 points (camera location, and the 2 vertex in the edge)
Then iterate again and look for all the edges that intersects that plane. Those intersections will tell you where to add points into the edge on the first iteration.
This way you can also cut the edges if they cross each other.