Tue 20 Dec 2011 06:35:04 PM UTC, comment #5:
Marco,
You reminded me that I had been wanting to add a try/catch block to the rundemos script. Something like the diff below.
|
Tue 20 Dec 2011 06:09:34 PM UTC, comment #3:
ok,
we can use FLTK as workaround, but does not make sense to have a
demo that does not work and stop the execution of rundemos
in one of the two graphics toolkit that currently is
also the default.
IMHO it should be better to disable this demo for the time being,
as rundemos should arrive at the end to be beneficial for users.
|
Tue 20 Dec 2011 05:09:30 PM UTC, comment #1:
David Batemann looked into having gnuplot render 3D patches a while back. Searching the archives might turn something up.
I recently took a look. It may be possible to triangulate a patch object and then render. If the polygons are all simple and convex, then the problem is straight forward. I can write a simple script for this case to demonstrate, but don't have the time right now.
It may also be possible to handle simple non-convex polygons in the m-files, used by the gnuplot backend, by constraining the triangles to lie within the original polygon, but I'm skeptical that it will be robust without adding some other meshing libs.
Ultimately, we need to be able to parse a complex polygon into a set of simple polygons, and those into triangles.
Sorry for not adding more detail. If there are questions, I can try to fill in the blanks.
|
Tue 20 Dec 2011 01:49:09 PM UTC, original submission:
on latest tip on cygwin
$ hg tip
changeset: 14074:f90c3facfac3
branch: stable
tag: tip
user: John W. Eaton <jwe@octave.org>
date: Mon Dec 19 23:14:41 2011 -0500
summary: don't reset parser when exiting (bug #35120)
$ gnuplot --version
gnuplot 4.4 patchlevel 4
rundemos stop here:
/usr/local/share/octave/3.5.90+/m/plot/pie3.m example 1:
pie3 ([5:-1:1], [0, 0, 1, 0, 0]);
colormap ([1,0,0;0,1,0;0,0,1;1,1,0;1,0,1;0,1,1]);
error: _go_draw_axes_: gnuplot (as of v4.2) only supports 3D filled triangular patches
error: called from:
error: /usr/local/share/octave/3.5.90+/m/plot/private/__go_draw_axes__.m at line 647, column 20
error: /usr/local/share/octave/3.5.90+/m/plot/private/__go_draw_figure__.m at line 167, column 19
error: /usr/local/share/octave/3.5.90+/m/plot/__gnuplot_drawnow__.m at line 86, column 5
error: input: reading user-input failed!
error: /usr/local/share/octave/3.5.90+/m/testfun/demo.m at line 119, column 7
|