In X3D3, coordinates are separated by a space separator.
Only output the point if it is not the last point of a closed object or it is a non-closed type
Only output the point if it is not the last point of a closed object or it is a non-closed type
Definition at line 502 of file lwout_x3d.c.
503{
504 uint32_t i;
508
510 {
512 {
514 if ( !is_closed || i < (pa->
npoints - 1) )
515 {
518
523
525
528 else
530 }
531 }
532 }
533 else
534 {
536 {
538 if ( !is_closed || i < (pa->
npoints - 1) )
539 {
542
549
551
554 else
556 }
557 }
558 }
559
561}
int getPoint2d_p(const POINTARRAY *pa, uint32_t n, POINT2D *point)
#define LW_X3D_FLIP_XY
Macros for specifying X3D options.
#define FLAGS_GET_Z(flags)
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
#define OUT_DOUBLE_BUFFER_SIZE
int lwprint_double(double d, int maxdd, char *buf, size_t bufsize)
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.
static void stringbuffer_append(stringbuffer_t *s, const char *a)
Append the specified string to the stringbuffer_t.
References POINTARRAY::flags, FLAGS_GET_Z, getPoint2d_p(), getPoint4d_p(), LW_SUCCESS, LW_X3D_FLIP_XY, lwprint_double(), POINTARRAY::npoints, OUT_DOUBLE_BUFFER_SIZE, precision, stringbuffer_append(), stringbuffer_aprintf(), POINT2D::x, POINT4D::x, POINT2D::y, POINT4D::y, and POINT4D::z.
Referenced by asx3d3_line_coords_sb(), asx3d3_line_sb(), asx3d3_point_sb(), asx3d3_poly_sb(), and asx3d3_triangle_sb().