-
Notifications
You must be signed in to change notification settings - Fork 124
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!
#=====
from IECore import *
class simpleGeometry(ParameterisedProcedural) :
def __init__(self) :
ParameterisedProcedural.__init__( self, "Simple Geometry." )
def doBound(self, args) :
return Box3f( V3f(-1), V3f(1) )
def doRenderState(self, renderer, args) :
pass
def doRender(self, renderer, args) :
box = MeshPrimitive.createBox( Box3f( V3f(-1), V3f(1) ) )
box.render( renderer )
# register
registerRunTimeTyped( simpleGeometry )
- Introduction
- General Functionality
- Data Handling
- Parameters and Ops
- Point Primitives
- Mesh Primitives
- Image Primitives
- Procedurals
- Cortex & Python
- Cortex & Maya
- Cortex & Houdini