It might not be a typical math question,but i dont know where to ask.
I have some points(x,y,z) that forms building rooftop and tree Geometry. I am trying to distingushing these point. So if a point lies on a plane then it is building rooftop otherwise trees.
To check if a point lies on a plane. I take three nearest neighbour points from the point and create a equation for the plane and insert the point and check if it satisifies the equation.
Now questions are 1) is the method mathematically correct? 2) when i take the three points from trees and create the equation will the equation also be a plane?