Page MenuHome

closest_point_on_mesh ignores Rotation of the object
Closed, ArchivedPublic

Description

System Information
windows XP/SP3 32bits

Blender Version
Broken: version 2.75 (sub 1), branch b'master', commit date b'2015-06-29' b'21:10', hash b'56ca7f3', b'Release'
Worked: unknown

Short description of error
closest_point_on_mesh ignores Rotation of the object.
Exact steps for others to reproduce the error
I do not really know whether this is a bug.
This returns the result that I expected.


However, it is different from the result that expected that I turn object and perform the same thing.
The result is the same as the last time.


I want you to point it out if how to use script has a problem.
Thanks.

Event Timeline

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Archived.Jun 30 2015, 7:52 AM

This is intentionally in object space, edited docstring rBcec0138bcc1ca4d8d43e78bc61caac3e2494dd94

I'm sorry, it was understood.
My script seems to be wrong.
It seems to do a calculating formula of point in this way.
point = obj.matrix_world.transposed() * worldAxisPoint

Probably this is right.
point = obj.matrix_world.inverted() * worldAxisPoint