[Maxima] [Patch] Fix for Geomview

Juan M. Bello Rivas jmbr at superadditive.com
Tue Aug 24 04:55:15 CDT 2010


Hello Mario,

I just rebuilt the latest CVS Maxima using ./configure && make and it
indeed works with Geomview as advertised.  However, the same source
tree built following the instructions given in INSTALL.lisp leads me
to the following error:

(%i1) plot3d(x^2 + y^2 - 1, [x, -1, 1], [y, -1, 1]);
Reading MESH from "/tmp/maxout.geomview": bad element (12,0) of (31,31):
> -0.3333333333333335     -1.     0.11111111111111116
> -0.26666666666666683     -1.     7.11111111111112400d ...
------------------------------------------------------^
Couldn't read LIST in "/tmp/maxout.geomview": error reading embedded object:
> ... LIST
> { appearance { +smooth }
> MESH ...
------^

These error messages were the origin of my patch.  I'll try to find
out why this happens although I'm content now that geomview works
well.

Best regards,

On Tue, Aug 24, 2010 at 9:18 AM, Mario Rodriguez
<biomates at telefonica.net> wrote:
> Juan M. Bello Rivas escribió:
>>
>> I tried to use Maxima 5.21 (compiled using SBCL 1.0.41) with Geomview
>> 1.9.4 and I found that the file format that Maxima generates was
>> rejected by Geomview.  Attached is a fix for this issue.
>>
>> Best regards,
>
> Juan,
>
> Current cvs Maxima works for me as expected with Geomview 1.9.4 in Ubuntu. I
> am not familiar with Geomview scripting, but I think the curly brackets
> removed in your patch are necessary for plotting more than one surface. For
> example,
>
> plot3d(
>  [-x^2+y^2, x+y, [x,-2,2], [y,-2,2]],
>  [plot_format, geomview]);
>
> renders only the first surface with the proposed change.
>
> --
> Mario
>



-- 
Juan M. Bello Rivas


More information about the Maxima mailing list