Blender Git Commit Log

Git Commits -> Revision 7d63a1f

Revision 7d63a1f by Martin Poirier (master)
August 1, 2005, 06:01 (GMT)
This patches adds support for Font, Curve, Surface and Meta Objects in
Blender.NMesh.GetRawFromObject through a displist conversion method as used by
Blender when converting them in the UI.

Notes: Objects with only edges (3D curves/polyline without bevel) do not have
normals, so they are all initialised to (1, 0, 0) on conversion

Converting from meta objects only work on the "mother ball". That is,
the object with the lower base name.
Example: "meta" for all the "meta.*" objects.

Meshes extracted from curve based objects (Font/2D filled curves)
contain both the filled surfaces and the outlines of the shapes.

Materials are taken from the object's material list. Material handling
in NMesh is incorrect anyway, as it always uses the materials from the
mesh, ignoring the setting in ob->colbits.

This patch also makes the include order a little clearer.
A couple of warnings have been fixed by using better types:
- Using char instead of short when parsing color values.
The "constructor" expects and uses char anyway.

- Explicit casting to short when storing normals back in mvert.

- Changing constant doubles to floats with "f" to make compiler happy.

The only warning left regards NMFace.flag which is stored as a short but is
used to fill in TFace.flag which is a char. I didn't want to change the
object's structure so I left it like that. I didn't add an explicit cast when
putting it back in TFace so that the warning can remind us that there might be
something to change there.

Commit Details:

Full Hash: 7d63a1f277908cc5a5c6c32c38de93a3e1aba41c
SVN Revision: 4989
Parent Commit: 55720d2
Lines Changed: +339, -39

2 Modified Paths:

/source/blender/python/api2_2x/doc/ (+7, -1) (Diff)
/source/blender/python/api2_2x/NMesh.c (+332, -38) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021