[gts-general] Help on gts_surface_coarsen function
Brought to you by:
popinet
|
From: Eric C. <cho...@ho...> - 2001-08-30 12:09:45
|
Hi,
I am trying to use the coarsen function, but it's not working.
I am using a 3D range scanner to make a scan of a room, the scanner is
tilted every 1 degree vertical for about 90 times, and each scan consists of
about 20 scan points (about a 40 degree range) right in front of the
scanner. So the uniform points are triangulated (in a very uniform manner).
Then I put it into gts_surface, and it looks fine. But when I try to coarsen
it with the coarsen function, it just doesn't do it. It spit back a surface
that has exact number of faces as before. I use the default setting (NULL)
for cost and coarsen function, and the stop function is as follow:
gboolean stop_func(gdouble cost, guint nedge, gpointer data)
{
gboolean bol;
if (cost > 0.01)
bol = TRUE;
else
bol = FALSE;
return bol;
}
The smallest costs of my surface (using the length2 criteria) is about
0.0003. The while loop in the gts_coarsen seems to be running fine (I put a
printf in the stop_func and it does print things out repetitively)... but
it's just not doing anything to the surface.
Could it be the fact that my surface is not a closed surface (so
gts_surface_coarsen couldn't handle it)? Or is it something else I missed in
my code?
Any help is appreciated.. Thanks!
Eric
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
|