- Todo:
- TODO: Decide the best way to render holes Evidentally according to my X3D expert the X3D consortium doesn't really support holes and it's an issue of argument among many that feel it should. He thinks CAD x3d extensions to spec might. What he has done and others developing X3D exports to simulate a hole is to cut around it. So if you have a donut, you would cut it into half and have 2 solid polygons. Not really sure the best way to handle this. For now will leave it as polygons stacked on top of each other – which is what we are doing here and perhaps an option to color differently. It's not ideal but the alternative sounds complicated.
Definition at line 265 of file lwout_x3d.c.
References LWMPOLY::geoms, LWMPOLY::ngeoms, POINTARRAY::npoints, LWPOLY::nrings, and LWPOLY::rings.
Referenced by asx3d3_multi_buf().
272 for (i=0; i<psur->
ngeoms; i++)
275 for (l=0; l < patch->
nrings; l++)
278 for (k=0; k < np ; k++)
282 ptr += sprintf(ptr,
" ");
284 ptr += sprintf(ptr,
"%d", (j + k));
287 if (l < (patch->
nrings - 1) )
297 ptr += sprintf(ptr,
" -1 ");
300 if (i < (psur->
ngeoms - 1) )
302 ptr += sprintf(ptr,
" -1 ");