Tag Info

New answers tagged


To find the normal, you can use the cross product of three of the points in the polygon. Create two vectors from those three points and find the cross product of those. To find the intersection of the ray with the polygon, you will first need to ensure it intersects with the plane of the polygon. To do this, you will need to do some algebraic manipulation ...


For the exact problem (how to create a polygon from tiles forming some area) you basically: Flood fill the area to limit the number of tiles you check and avoid situations alike checkerboard pattern (where edge node can have 4 neighbour edge nodes) Pick up a node on the edge of the area Look for the nodes that are connected to it, that lay on the edge too ...

Top 50 recent answers are included