[Bf-committers] Re: [Bf-blender-cvs] CVS
commit: blender/source/blender/python/api2_2x Mesh.c Mesh.h
Stephane SOPPERA
stephane.soppera at wanadoo.fr
Thu Oct 5 08:50:24 CEST 2006
Martin Poirier a écrit :
> --- Campbell Barton <cbarton at metavr.com> wrote:
>
>
>> campbellbarton (Campbell Barton) 2006/10/04 19:06:29
>> CEST
>>
>> Modified files:
>> blender/source/blender/python/api2_2x Mesh.c
>> Mesh.h
>>
>> Log:
>> mesh.transform() was applying the inverted 4x4
>> matrix to the normals, without removing the
>> translation part.
>>
>
>
> Not only that, it should only apply the inverted
> rotation matrix, leaving out any scaling components.
>
You have to take into account scaling part if scaling is not uniform
(scaleX!=scaleY for example). That's why normals are to be multiplied by
inverse transpose (which is identity when the matrix only represents a
rotation), when position is only multiplied by the matrix itself.
Stephane
More information about the Bf-committers
mailing list