Thursday, June 25, 2015

The Pumpkin

The pumpkin is generated using Scilab 5.5.1,

function Myparam3d_2()

    my_handle             = scf(100001);
    clf(my_handle,"reset");
    my_plot_desc          = "";
    my_handle.figure_name = my_plot_desc;
    xtitle(my_plot_desc,"x","y","z");

    //flower????
     t = 0:0.01:(2.0*%pi);
     x = (3.0+5*cos(t*20)).*cos(t);
     y = (3.0+5*cos(t.*20)).*sin(t);
     z = 10*0.02*sin(t.*20);

     p=get("hdl"); //get handle on current entity (here the polyline entity)
     p.foreground=5;  
     param3d(x,y,z,45,60,"",[2,0]);
   
endfunction

Myparam3d_2();
clear Myparam3d_2


There or about.  You may need to use the right mouse button to move the perspective of the graphic output to get the proper view.