Intersection of 3 Planes in world space

Started by jiarongkoh, January 04, 2015, 03:28:38 PM

Previous topic - Next topic

jiarongkoh

Hi there, any idea how can I obtain the intersection of 3 planes in world space assuming these 3 planes intersect at a single point.

Mathematically its pretty straight forward if I have the equations of these 3 planes, but I think its rather difficult to obtain that information if my planes are placed inside using Primitives.getPlane. Alternatively I can compute using normal vectors (cross product) but still I do require 'some points' on the planes to do it purely mathematically. Anyone knows of a more direct approach to it?

EgonOlsen

You can obtain transformed points on the plane from the PolygonManager. That should be sufficient, shouldn't it?

jiarongkoh

You mean getTransformedNormal() and getTransformedVertex()? Both of these methods require polyID argument, how can I obtain such ID?

EgonOlsen

Just use 0. You only need some points on the plane, so the ones from the first polygon should do it.