Check which side of a plane points are on

前端 未结 3 765
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-05 14:15

I\'m trying to take an array of 3D points and a plane and divide the points up into 2 arrays based on which side of the plane they are on. Before I get to heavily into debug

3条回答
  •  一个人的身影
    2020-12-05 15:11

    Your approach sounds good. However, when you say "and turn them into vectors", it might not be good (depending on the meaning of your sentence).

    You should "turn your points into vector" by computing the difference in terms of coordinates between the current point and one of the points in the plane (for example, one of the 3 points defining the plane). As you wrote it, it sounds like you might have misunderstood that ; but apart from that, it's ok!

提交回复
热议问题