In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

Primitive Generatorを使えば

初心者な私でもclockmakerさんとこのPrimitive Generatorを使えば簡単にうんこを作ることができました。(20代:男性)
// forked from mash's papervision3d simple example (cube)
// 初心者な私でもclockmakerさんとこのPrimitive Generatorを使えば簡単にうんこを作ることができました。(20代:男性)

package {
    import flash.display.*;
    import flash.events.*;
    import org.papervision3d.cameras.Camera3D;
    import org.papervision3d.materials.*;
    import org.papervision3d.objects.primitives.*;
    import org.papervision3d.render.BasicRenderEngine;
    import org.papervision3d.scenes.Scene3D;
    import org.papervision3d.view.Viewport3D;
    import org.papervision3d.lights.PointLight3D;

    public class PV3D_01 extends Sprite {
        private var camera    :Camera3D;
        private var scene     :Scene3D;
        private var viewport  :Viewport3D;
        private var renderer  :BasicRenderEngine;

        private var obj:Cylinder;
        /*
        * Plane : 平面オブジェクト
        * Sphere : 球面オブジェクト
        * Cube : 立方体オブジェクト
        * Cone : 3角コーン型のオブジェクト
        * Cylinder : 円柱のオブジェクト
        * PaperPlane : 紙飛行機のオブジェクト
        * Arrow : 矢印のオブジェクト
        * が作れるらしい
        */

        public function PV3D_01() {
            camera   = new Camera3D();
            camera.x = 0;
            camera.y = 200;
            camera.z = -1000;
            
            scene    = new Scene3D();
            viewport = new Viewport3D( stage.stageWidth, stage.stageHeight );
            renderer = new BasicRenderEngine();
            addChild( viewport );

            var light:PointLight3D = new PointLight3D(false);
            light.x = 0;
            light.y = 0;
            light.z = -1000;

            var material:WireframeMaterial = new WireframeMaterial(0x5A2600);
            
			for (var i:uint = 0; i < 4; i++) {
				if (i < 3) {
					obj = new Cylinder(material, 201, 75, 10, 6, -1);
					obj.x = 0;
					obj.y = i * 75;
					obj.z = 0;
					obj.scaleX = 1 - i * 0.1;
					scene.addChild(obj);
				}else {
					obj = new Cylinder(material, 100, 75, 10, 6, 1);
					obj.x = 0;
					obj.y = i * 75;
					obj.z = 0;
					scene.addChild(obj);
				}
				
			}
            //マテリアル,半径,横セグメント,縦セグメント,とんがり具合
			
            addEventListener( Event.ENTER_FRAME, onEnterFrame );
        }
		
        public function onEnterFrame(e:Event): void {
            renderer.renderScene( scene, camera, viewport );
        }
    }
}