Signed distance in metres from a section plane to a world point,
n̂·(p − p0).
Positive is the removed side, negative is the kept side, and exactly zero is
the plane itself, which is kept. A cut taken at a floor's own level puts every
vertex of that floor at exactly zero, so dropping them would delete the
surface the reviewer asked to stand on. three.js discards a fragment only at
a negative distance to its own plane, which the viewer builds from the negated
normal, so this number and the drawn pixel agree at the boundary.
Throws a RangeError when the plane's normal is zero or not finite, or its
point is not finite, because such a plane names no half-space. A non-finite
query point is not refused and yields NaN.
Signed distance in metres from a section plane to a world point,
n̂·(p − p0).Positive is the removed side, negative is the kept side, and exactly zero is the plane itself, which is kept. A cut taken at a floor's own level puts every vertex of that floor at exactly zero, so dropping them would delete the surface the reviewer asked to stand on.
three.jsdiscards a fragment only at a negative distance to its own plane, which the viewer builds from the negated normal, so this number and the drawn pixel agree at the boundary.Throws a
RangeErrorwhen the plane's normal is zero or not finite, or its point is not finite, because such a plane names no half-space. A non-finite query point is not refused and yieldsNaN.