Source for file pie.php
Documentation is available at pie.php
require_once('Image/3D.php');
$light = $world->createLight ('Light', array (0 , 1000 , 1000 ));
$pie = $world->createObject ('pie', array ('start' => 0 , 'end' => 120 , 'detail' => 20 , 'outside' => 150 ));
$pie = $world->createObject ('pie', array ('start' => 120 , 'end' => 165 , 'detail' => 20 , 'outside' => 150 ));
$pie = $world->createObject ('pie', array ('start' => 165 , 'end' => 240 , 'detail' => 20 , 'outside' => 150 ));
$pie = $world->createObject ('pie', array ('start' => 240 , 'end' => 360 , 'detail' => 20 , 'outside' => 150 ));
$world->setOption (Image_3D::IMAGE_3D_OPTION_BF_CULLING , false );
$world->setOption (Image_3D::IMAGE_3D_OPTION_FILLED , true );
$world->transform ($world->createMatrix ('Scale', array (1 , 1 , 10 )));
$world->transform ($world->createMatrix ('Rotation', array (-60 , 0 , 0 )));
$world->createRenderer ('perspectively');
$world->createDriver ('ZBuffer');
$world->render (400 , 400 , 'Image_3D_Object_Pie.png');
Documentation generated on Mon, 11 Mar 2019 15:48:14 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|