From b89bddbf6f0dead42b3d93c7883d091fee43844a Mon Sep 17 00:00:00 2001 From: Stephen Swaney Date: Fri, 22 Apr 2005 02:17:20 +0000 Subject: doc updates. NMesn.transform( matrix, recalc_normals ) had description for recalc_normals backward. --- source/blender/python/api2_2x/NMesh.c | 7 +++---- source/blender/python/api2_2x/doc/NMesh.py | 10 +++++----- 2 files changed, 8 insertions(+), 9 deletions(-) (limited to 'source/blender/python') diff --git a/source/blender/python/api2_2x/NMesh.c b/source/blender/python/api2_2x/NMesh.c index f0afe5b7b6f..058cea38d74 100644 --- a/source/blender/python/api2_2x/NMesh.c +++ b/source/blender/python/api2_2x/NMesh.c @@ -292,10 +292,9 @@ If the name of a mesh to replace is not given a new\n\ object is created and returned."; static char NMesh_transform_doc[] = - "(matrix, recalc_normals = 0) - Transform the mesh by the supplied 4x4\n\ -matrix.\n\ -(recalc_normals) - if given and 1 or True, transforming the vertex normals\n\ -is skipped."; +"(matrix, recalc_normals = 0) - Transform the mesh by the supplied 4x4 matrix\n\ +if recalc_normals is True, vertex normals are transformed along with \n\ +vertex coordinatess.\n"; void mesh_update( Mesh * mesh ) diff --git a/source/blender/python/api2_2x/doc/NMesh.py b/source/blender/python/api2_2x/doc/NMesh.py index d2662942a09..90bbbfcc0a2 100644 --- a/source/blender/python/api2_2x/doc/NMesh.py +++ b/source/blender/python/api2_2x/doc/NMesh.py @@ -588,11 +588,11 @@ class NMesh: """ Transforms the mesh by the specified 4x4 matrix, as returned by L{Object.Object.getMatrix}, though this will work with any invertible 4x4 - matrix type. Ideal Usage for this is exporting to an external file, where + matrix type. Ideal usage for this is exporting to an external file where global vertex locations are required for each object. - Sometimes external renderers / file formats do not use vertex normals. - In this case you can skip transforming the vertex normals by letting - the optional parameter recalc_normals as False or 0. + Sometimes external renderers or file formats do not use vertex normals. + In this case, you can skip transforming the vertex normals by leaving + the optional parameter recalc_normals as False or 0 ( the default value ). Example:: # This script outputs deformed meshes worldspace vertex locations @@ -610,7 +610,7 @@ class NMesh: @type matrix: Py_Matrix @param matrix: 4x4 Matrix which can contain location, scale and rotation. @type recalc_normals: int (bool) - @param recalc_normals: if True or 1, will only transform vertex locations. + @param recalc_normals: if True or 1, transform normals as well as vertex coordinates. @warn: if you call this method and later L{update} the mesh, the new vertex positions will be passed back to Blender, but the object matrix of each object linked to this mesh won't be automatically -- cgit v1.2.3