[Scilab-users] 3D animated plot
grivet
grivet at cnrs-orleans.fr
Tue Apr 1 13:47:59 CEST 2014
Le 01/04/2014 00:36, Samuel Gougeon a écrit :
> Hello,
> It would be easier to debug with posting also t, xt
> and yt definitions, as well as
> the copy/paste of the interrupted line with its error message.
> Regards
> Samuel
>
Sorry, here is the complete listing:
//exemple de param3d
t=0:0.1:5*%pi;
npt = size(t,"*");
param3d(sin(t(1:2)),cos(t(1:2)),t(1:2)/10,35,45,"X at Y@Z");
he=gce(); //the handle on the 3D polyline
he.foreground=color('red');
ha=gca(); //the handle on the axes
ha.rotation_angles=[60 80];
ha.data_bounds = [-1,-1,0;1,1,5];
for j = 1:npt
drawlater();
he.children(1).data = [sin(t(1:j));cos(t(1:j)); t(1:j)]';
drawnow();
end;
and here is the error message
!--error 246
Fonction non définie pour le type d'argument donné.
vérifiez les arguments ou définir la fonction %c_round pour la surcharge.
at line 94 of function %s_i_s called by :
at line 39 of function generic_i_h called by :
at line 2 of function %s_i_h called by :
he.children(1).data = [sin(t(1:j));cos(t(1:j)); t(1:j)]';
at line 17 of exec file called by :
exec(%fileToExec); disp(msprintf(gettext("Execution done.\n")
while executing a callback
Thanks
JP Grivet
More information about the users
mailing list