diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-10-26 09:03:18 +0300 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-10-26 09:03:18 +0300 |
commit | d423c0828f2f2bfe3086d7b571bb719ca82ddfcd (patch) | |
tree | 447005326c1bdd1ddfb5152cb52ee348e40f9ca8 /source/blender/python/api2_2x/doc/NMesh.py | |
parent | 1f7bfbf50ace398bbbc2bd9b7b5f3ac9c2758f2c (diff) |
Exppython:
- Added "Radio" to Material modes
- Fixed bug in bone.getParent (bug report on blender.org py forum)
- Added more types to object.shareFrom (method to share obdata)
- Added nmesh.get/setMaxSmoothAngle and nmesh.get/setSubDivLevels
- Updated NMesh doc
Diffstat (limited to 'source/blender/python/api2_2x/doc/NMesh.py')
-rw-r--r-- | source/blender/python/api2_2x/doc/NMesh.py | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/doc/NMesh.py b/source/blender/python/api2_2x/doc/NMesh.py index 0fc0e434a7d..900821303f9 100644 --- a/source/blender/python/api2_2x/doc/NMesh.py +++ b/source/blender/python/api2_2x/doc/NMesh.py @@ -232,7 +232,9 @@ class NMesh: @cvar verts: The list of NMesh vertices (NMVerts). @cvar users: The number of Objects using (linked to) this mesh. @cvar faces: The list of NMesh faces (NMFaces). - @cvar mode: The mode flags for this mesh. See L{setMode} + @cvar mode: The mode flags for this mesh. See L{setMode}. + @cvar subDivLevels: The [display, rendering] subdivision levels in [1, 6]. + @cvar maxSmoothAngle: The max angle for auto smoothing. See L{setMode}. """ def addMaterial(material): @@ -483,4 +485,31 @@ class NMesh: @type vertList: list of ints @param vertList: if given, only those vertex points that are both in the list and group passed in are returned. - """ + """ + + def getMaxSmoothAngle(): + """ + Get the max angle for auto smoothing. + @return: The value in degrees. + """ + + def setMaxSmoothAngle(angle): + """ + Set the max angle for auto smoothing. + @type angle: int + @param angle: The new value in degrees -- it's clamped to [1, 80]. + """ + + def getSubDivLevels(): + """ + Get the mesh subdivision levels for realtime display and rendering. + @return: list of ints: [display, render]. + """ + + def setSubDivLevels(subdiv): + """ + Set the mesh subdivision levels for realtime display and rendering. + @type subdiv: list of 2 ints + @param subdiv: new subdiv levels: [display, render]. Both are clamped to + lie in the range [1, 6]. + """ |