Hello,
Just to follow up on this question, since you never got an answer, I believe you got _distance and d confused.
> As the comment says in Plane.h, the plan equation is "normal.Dot(x,y,z) = distance".
I believe you're referring to line 26 in Plane.h where the code says:
This is implemented in the constructor in Plane.cpp where _distance = normal.dot(point):
> the public method of plane does not offer "normal.Dot(x,y,z) = distance" but "normal.Dot(x,y,z) + distance = 0".
When you say this, I believe you’re actually referring to normal.Dot(x,y,z)+d=0, which we can see in this comment in Plane.h:
If you check the implementations of these functions in Plane.cpp, you can see that later d = -_distance
So normal(x,y.z) = distance and normal(x,y,z) + d = 0 are consistent since d = -_distance
d and _distance are pretty similar so I can see how you thought they were the same.