On Wed, Apr 20, 2011 at 10:33:01AM +0200, Jasper van de Gronde wrote:

On 20-04-11 05:57, Patrick Scheibe wrote:

Hi,

I'm exporting 3d surfaces from Mathematica. This creates a large number of polygons where neighboring polygons have two equal vertex-points.

Following problem: Although no stroke is used for the polygons and the coordinates of neighboring polygons are exactly equal, theres a teeny tiny space visible between them.

One hack around is to scale every polygon to 100.01% so that it overlaps a bit, but this is no solution.

Does anyone have hint for me?

This is a very well known problem (and not limited to Inkscape btw).

It's specifically mentioned in an OpenGL document I read once. There, the solution is to use the OpenGL functions to pass it an entire grid og triangles as several arrays. One is an array of vertices, and the others refer to vertices by indexes into that array. This just passes the problem on to the OpenGl renderer, which presumably deals with it somehow, given the clue about which vertices (and therefore edges) are to be considered the same.

I don't know if anything coparable is available in SVG, though.

-- hendrik