Source for file cone.php
Documentation is available at cone.php
require_once('Image/3D.php');
$light = $world->createLight ('Light', array (-2000 , -2000 , -2000 ));
$cone = $world->createObject ('cone', array ('detail' => 1 ));
$cone->transform ($world->createMatrix ('Scale', array (100 , 400 , 100 )));
$world->createMatrix ('Move', array (0 , -80 , 0 ))->multiply (
$world->createMatrix ('Rotation', array (150 , 30 , 30 ))
$world->createRenderer ('perspectively');
$world->createDriver ('SVG');
$world->render (400 , 400 , 'Image_3D_Object_Cone_2.svg');
Documentation generated on Mon, 11 Mar 2019 15:48:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|