Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 129
ExamplesProceduralsSimpleGeometry
Ben Toogood edited this page Jun 13, 2013
·
2 revisions
This example is just about the simplest procedural you can get. It renders a cube!
opengl
renderman
#=====# Simple Geometry## This example is just about the simplest procedural you can get. It renders# a cube!#=====fromIECoreimport*classsimpleGeometry(ParameterisedProcedural) :
def__init__(self) :
ParameterisedProcedural.__init__( self, "Simple Geometry." )
defdoBound(self, args) :
returnBox3f( V3f(-1), V3f(1) )
defdoRenderState(self, renderer, args) :
passdefdoRender(self, renderer, args) :
box=MeshPrimitive.createBox( Box3f( V3f(-1), V3f(1) ) )
box.render( renderer )
# registerregisterRunTimeTyped( simpleGeometry )- Introduction
- General Functionality
- Data Handling
- Parameters and Ops
- Point Primitives
- Mesh Primitives
- Image Primitives
- Procedurals
- Cortex & Python
- Cortex & Maya
- Cortex & Houdini