Definition at line 552 of file lwout_x3d.c.
References asx3d3_poly_buf(), LWPSURFACE::geoms, LW_X3D_FLIP_XY, LWPSURFACE::ngeoms, POINTARRAY::npoints, LWPOLY::rings, and X3D_USE_GEOCOORDS.
Referenced by asx3d3_collection_buf(), and asx3d3_psurface().
564 ptr += sprintf(ptr,
"<IndexedFaceSet convex='false' %s coordIndex='",defid);
567 for (i=0; i<psur->
ngeoms; i++)
571 for (k=0; k < np ; k++)
575 ptr += sprintf(ptr,
" ");
577 ptr += sprintf(ptr,
"%d", (j + k));
579 if (i < (psur->
ngeoms - 1) )
581 ptr += sprintf(ptr,
" -1 ");
587 ptr += sprintf(ptr,
"'><GeoCoordinate geoSystem='\"GD\" \"WE\" \"%s\"' point='", ( (
opts &
LW_X3D_FLIP_XY) ?
"latitude_first" :
"longitude_first") );
588 else ptr += sprintf(ptr,
"'><Coordinate point='");
590 for (i=0; i<psur->
ngeoms; i++)
593 if (i < (psur->
ngeoms - 1) )
595 ptr += sprintf(ptr,
" ");
600 ptr += sprintf(ptr,
"' /></IndexedFaceSet>");
#define X3D_USE_GEOCOORDS(x)
#define LW_X3D_FLIP_XY
Macros for specifying X3D options.
static size_t asx3d3_poly_buf(const LWPOLY *poly, char *srs, char *output, int precision, int opts, int is_patch, const char *defid)
Compute the X3D coordinates of the polygon.