- Todo:
- TODO: Decide the best way to render holes Evidently 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 175 of file lwout_x3d.c.
181 for (i=0; i<psur->
ngeoms; i++)
184 for (l=0; l < patch->
nrings; l++)
187 for (k=0; k < np ; k++)
196 if (l < (patch->
nrings - 1) )
209 if (i < (psur->
ngeoms - 1) )
int stringbuffer_aprintf(stringbuffer_t *s, const char *fmt,...)
Appends a formatted string to the current string buffer, using the format and argument list provided.
References LWMPOLY::geoms, LW_SUCCESS, LWMPOLY::ngeoms, POINTARRAY::npoints, LWPOLY::nrings, LWPOLY::rings, and stringbuffer_aprintf().
Referenced by asx3d3_multi_sb().