Trees | Indices | Help |
---|
|
The Blender.Mesh.Primitives submodule.
New:
This submodule provides access Blender's mesh primitives. Each module function returns a BPy_Mesh object which wraps the mesh data. This data can then be manipulated using the Mesh API.
Example:
from Blender import * me = Mesh.Primitives.Cube(2.0) # create a new cube of size 2 sc = Scene.GetCurrent() # get current scene sc.objects.new(me,'Mesh') # add a new mesh-type object to the scene Window.RedrawAll() # update windows
|
|||
BPy_Mesh |
|
||
BPy_Mesh |
|
||
BPy_Mesh |
|
||
BPy_Mesh |
|
||
BPy_Mesh |
|
||
BPy_Mesh |
|
||
BPy_Mesh |
|
||
BPy_Mesh |
|
||
BPy_Mesh |
|
||
BPy_Mesh |
|
|
|||
__package__ = None
|
|
Construct a filled planar mesh with 4 vertices. The default size creates a 2 by 2 Blender unit plane, identical to the Blender UI.
|
Construct a cube mesh. The default size creates a cube with each face 2 by 2 Blender units, identical to the Blender UI.
|
Construct a circle mesh. The defaults create a circle with a diameter of 2 Blender units, identical to the Blender UI.
|
Construct a cylindrical mesh (ends filled). The defaults create a cylinder with a diameter of 2 Blender units and length 2 units, identical to the Blender UI.
|
Construct a cylindrical mesh (ends not filled). The defaults create a cylinder with a diameter of 2 Blender units and length 2 units, identical to the Blender UI.
|
Construct a conic mesh (ends filled). The defaulte create a cone with a base diameter of 2 Blender units and length 2 units, identical to the Blender UI.
|
Construct a grid mesh. The defaults create a 32 by 32 mesh of size 2 Blender units, identical to the Blender UI.
|
Construct a UV sphere mesh. The defaults create a 32 by 32 sphere with a diameter of 2 Blender units, identical to the Blender UI.
|
Construct a Icosphere mesh. The defaults create sphere with 2 subdivisions and diameter of 2 Blender units, identical to the Blender UI.
|
Construct a Suzanne mesh.
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Oct 24 10:23:50 2008 | http://epydoc.sourceforge.net |