Revised normal_to_object implementation for prisms to account for in-plane distance from point to prism face when determining closest face.
One consequence is that the result of normal_to_object for prisms now differs in some cases from the result for blocks, since the latter does not account for in-plane distances. Consequently, I have disabled the portion of the unit test (utils/test-prism.c) that looks at normals to objects.
Revised
normal_to_object
implementation for prisms to account for in-plane distance from point to prism face when determining closest face.One consequence is that the result of
normal_to_object
for prisms now differs in some cases from the result for blocks, since the latter does not account for in-plane distances. Consequently, I have disabled the portion of the unit test (utils/test-prism.c
) that looks at normals to objects.