I am reading someone else’s code and he represents a plane as a normal and offset, but
I am not sure what that offset is. I guess it is distance from world origin to plane center?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Most likely it is the “distance” from the world origin to the plane. Not to the “plane center” (what’s “plane center”?), but to the plane itself.
I put the word “distance” into quotation marks because it could turn out that your “distance” is not normalized, i.e. it is multiplied by some factor.
The equation of 3D plane, as you probably know, is
where
(A, B, C)is the normal vector andDis actually the signed distance from the origin to the plane. However,Dwill represent regular Euclidean distance if and only if vector(A, B, C)is normalized, i.e. the values ofA,B,CandDare scaled so that|(A, B, C)| = 1. If the vector is not normalized, thenDis the distance multiplied by|(A, B, C)|.Sometimes the term “offset” is used to refer to coefficient
Din non-normalized plane equation. In other words, it is possible that in your case the plane is simply represented by itsA,B,CandDcoefficients. Whether they are normalized or not – you have to check yourself.