Module Spyder :: Class FormulaGrid2D
[hide private]
[frames] | no frames]

Class FormulaGrid2D

source code

object --+
         |
        FormulaGrid2D

Spyder-generated class

module models3d

file /home/sjoerd/data/Spyder-devel/models3d/formulagrid.spy

Description

Parametric object based on functions of U and V

Inspired by the Parametric Object plugin by Ed Mackey, http://www.blinken.com/blender-plugins.php

Wiki

http://www.spyderware.nl/wiki/classes/FormulaGrid2D

Validate block

>>>            
assert umin < umax
assert usteps >= 2
assert vmin < vmax
assert vsteps >= 2   
f = formula.formula(xformula,["u","v"]) 
assert f != None
assert f(0,0) != None
f = formula.formula(yformula,["u","v"]) 
assert f != None
assert f(0,0) != None
f = formula.formula(zformula,["u","v"]) 
assert f != None
assert f(0,0) != None               
>>>

Form block

>>>            
BLENDER
DEFAULT xformula "sin(2*pi*u)*(2+(0.5*sin(2*pi*v)))"
LENGTH xformula 100
DEFAULT yformula "cos(2*pi*u)*(2+(0.5*sin(2*pi*v)))"
LENGTH yformula 100    
DEFAULT zformula "cos(2*pi*v)*0.5"
LENGTH zformula 100
TYPE umin number
DEFAULT umin 0
MIN umin -1000
MAX umin 1000
TYPE umax number
DEFAULT umax 1
MIN umax -1000
MAX umax 1000    
DEFAULT usteps 64
MIN usteps 2
MAX usteps 10000
TYPE vmin number
DEFAULT vmin 0
MIN vmin -1000
MAX vmin 1000
TYPE vmax number
DEFAULT vmax 1
MIN vmax -1000
MAX vmax 1000  
DEFAULT vsteps 32  
MIN vsteps 2
MAX vsteps 10000                   
>>>

Converters

Can be converted to:

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
three_dimensional() source code
Instance Variables [hide private]
String xformula
String yformula
String zformula
Float umin
Float umax
Integer usteps
Float vmin
Float vmax
Integer vsteps
Bool uwrap = True
Bool vwrap = True
Properties [hide private]

Inherited from object: __class__