Annotation of Examples/AppKit/BackspaceViews/Teapot/Teapot.m, revision 1.1

1.1     ! root        1: #import "Teapot.h"
        !             2: #import <ri/ri.h>
        !             3: 
        !             4: static RtFloat resolution[] = {6, 6, 6};
        !             5: 
        !             6: @implementation Teapot : N3DShape
        !             7: - renderSelf:(RtToken)context
        !             8: {
        !             9:        RiGeometricApproximation( RI_TESSELATION, RI_PARAMETRIC,
        !            10:                                resolution, RI_NULL );
        !            11: 
        !            12:        RiRotate(-90,1,0,0);
        !            13:        RiTranslate(0,0,-0.5);
        !            14:        RiScale(0.3, 0.3, 0.3);
        !            15:        RiGeometry("teapot", RI_NULL);
        !            16:   
        !            17:   return self;
        !            18: }
        !            19: 
        !            20: - setResolution:(RtFloat)val
        !            21: {
        !            22:        resolution[0] = resolution[1] = resolution[2] = val;
        !            23:        return self;
        !            24: }
        !            25: 
        !            26: @end
        !            27:   

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.