vrml viewpoint with draw package



El mar, 03-09-2013 a las 16:17 +0200, jfr.maurel at gmail.com escribi?:
> Hi,
> 
> First thanks for this great package.
> 
> Using the code below I can't see the 3d graphic without changing 
> manually the viewpoint in the vrml file or changing the viewpoint in the 
> vrml viewer.
> 
> is it possible to choose the default viewpoint ?
> 
> (%o12) build_info
> (version="5.30.0",timestamp="2013-06-01 
> 21:29:43",host="i686-pc-mingw32",lisp_name="GNU Common Lisp 
> (GCL)",lisp_version="GCL 2.6.8")
> VTK 5.8.0 win32
> 
> Regards
> 
> R_opt:10;
> X1_opt:0;
> Y1_opt:0;
> Z1_opt:0;
> X2_opt:0;
> Y2_opt:0;
> Z2_opt:20;
> draw_renderer : 'vtk$
> sc3:gr3d(
>   file_name = "C:/suivi/cylindre",
>   terminal= 'vrml,
>   axis_3d    = false,
>   enhanced3d = none,
>   color=blue,
>   points(ps),
>   opacity=1,
>   color=red,
>   line_type = [tube,24],
>   line_width = R_opt,
>   nticks = 50,
>   parametric(X1_opt+(X2_opt-X1_opt)*t,Y1_opt+(Y2_opt-Y1_opt)*t,Y1_opt+(Z2_opt-Z1_opt)*t,t,0,0.999)
> )$
> draw(sc3)$
> 

Take a look at option 'view'. For example,

view = [170, 18],

these numbers are the rotations around the x-axis, and the z-axis,
respectively. Both measured in degrees.

--
Mario