Re: [K3d-development] Tessellation Error: missing gluTessBeginContour
Brought to you by:
barche
From: Timothy M. S. <ts...@k-...> - 2005-04-27 01:58:31
|
On Tue, 2005-04-26 at 10:12 -0700, Romain Behar wrote: > > > Filter -> BevelFaces and k3d crashes with this > > > error message > > > Tessellation Error: missing gluTessBeginContour > > > > Romain recently added code to preview concave > > polygons correctly using GLU tesselation ... this > > almost looks like a problem with your > > implementation? > > Right. I noticed the console often output such a > message when displaying concave polygons. Though it > never crashes on my Linux box :) > > The GLUtriangulator objet is used. It has strange > behaviours: dissolve 3 faces forming an L-shaped > polygon and view the sphere from the inside, you'll > see an unexpected triangle. > > There are two things to investigate: > - implement the GLU_TESS_COMBINE callback See k3dsdk/mesh_triangulate_detail.h for an implementation of GLU_TESS_COMBINE. > - project the face on a plane before tesselation Clever! Cheers, Tim |