need to make space for coordIndex values too including -1 separating each poly
Definition at line 529 of file lwout_x3d.c.
References asx3d3_poly_size(), LWPSURFACE::geoms, LWPSURFACE::ngeoms, and X3D_USE_GEOCOORDS.
Referenced by asx3d3_collection_size(), and asx3d3_psurface().
533 size_t defidlen = strlen(defid);
535 if (
X3D_USE_GEOCOORDS(
opts) ) size =
sizeof(
"<IndexedFaceSet convex='false' coordIndex=''><GeoCoordinate geoSystem='\"GD\" \"WE\" \"longitude_first\"' point='' />") + defidlen;
536 else size =
sizeof(
"<IndexedFaceSet convex='false' coordIndex=''><Coordinate point='' />") + defidlen;
539 for (i=0; i<psur->
ngeoms; i++)
static size_t asx3d3_poly_size(const LWPOLY *poly, char *srs, int precision, int opts, const char *defid)
Compute the string space needed for the IndexedFaceSet representation of the polygon.
#define X3D_USE_GEOCOORDS(x)