[Bf-python] Update/ OBJ.

Campbell Barton cbarton at metavr.com
Tue Jun 8 05:43:00 CEST 2004


Hi, Fixed a bug in OBJ importer (Thanks Manual) when importing a null 
material.

And used Mathutils in the exporter to transform Verts and vert normals, 
should speed things up somewhat.
Also renamed to Conform to suggested name format.

#==================#
# Apply Transform  #
#==================#
def apply_transform(vert, matrix):
    vert.resize4D()
    # The vert is now 4 length but we just ignore the 4th value when 
writing new the vert pos.
    return Mathutils.VecMultMat(vert, matrix)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: obj_export.py
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20040608/272c48f0/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: obj_import.py
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20040608/272c48f0/attachment-0001.ksh>


More information about the Bf-python mailing list