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 511 of file lwout_x3d.c.
512{
513 uint32_t i;
517
519 {
521 {
523 if ( !is_closed || i < (pa->
npoints - 1) )
524 {
527
530
532
535 else
537 }
538 }
539 }
540 else
541 {
543 {
545 if ( !is_closed || i < (pa->
npoints - 1) )
546 {
549
553
555
558 else
560 }
561 }
562 }
563
565}
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)
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_len(stringbuffer_t *s, const char *a, size_t alen)
Append the specified string to the stringbuffer_t using known length.
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_len(), 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().