#
# 1.<Type of curve> 2.<Number of curves in a polycurve> 3.<Number of control points for the bezier> 4.<Control points for bezier>  (repeat 3 and 4 for number of curves time. )
#
# Types of curves
# TODO define
# 'c' Bezier curve
#
# In order to construct a poly-curve out of N curves, all curves should be counter clockwise or counter-clockwise and the order should be from spacially left curve to right curve (doubt).
#
# curve 1: D=3 0 0 500 200 100 200 900 0
# curve 2: D=3 900 0 1200 600 1500 400 900 600
# Curve id: 0
c 2 4 0 0 500 200 100 200 900 0 4 900 0 1200 600 1500 400 900 600
#
# curve 1: D=3 2000 450 2100 300 2200 200 2000 850
# curve 2: D=3 2000 850 2500 850 2800 850 3000 850
# Curve id: 1
c 2 4 2000 450 2100 300 2200 200 2000 850 4 2000 850 2500 850 2800 850 3000 850
#
# curve 1: D=3 2000 450 2100 300 2200 200 2000 850
# curve 2: D=3 2000 850 2500 1000 2800 1200 3000 2000
# Curve id: 2
c 2 4 2000 450 2100 300 2200 200 2000 850 4 2000 850 2500 1000 2800 1200 3000 2000
#
# curve 1: N=3 0 0 0 100 0 500 0 900
# curve 2: N=3 0 900 0 1200 0 1500 0 2000
# curve 3: N=3 0 2000 0 10000 0 15000 0 23000
# curve 4: N=3 0 23000 0 25000 0 28000 0 30000
# Curve id: 3
c 4 4 0 0 0 100 0 500 0 900 4 0 900 0 1200 0 1500 0 2000 4 0 2000 0 10000 0 15000 0 23000 4 0 23000 0 25000 0 28000 0 30000
#
# curve 1: D=3 1000 0 5000 100 3000 300 2000 450 
# curve 2: D=3 2000 450 2100 300 2200 200 2000 850
# curve 3: D=3 2000 850 2500 1000 2800 1200 3000 2000
# Curve id: 4
c 3 4 1000 0 5000 100 3000 300 2000 450 4 2000 450 2100 300 2200 200 2000 850 4 2000 850 2500 1000 2800 1200 3000 2000
#
# curve 1: D=3 0 0 500 200 100 200 900 0
# curve 2: D=3 900 0 1200 600 1500 400 900 600
# curve 3: D=3 900 600 1000 1200 1500 3000 2000 5000
# Curve id: 5
c 3 4 0 0 500 200 100 200 900 0 4 900 0 1200 600 1500 400 900 600 4 900 600 1000 1200 1500 3000 2000 5000
#
# ==============================================================================
#
# x - Segments
# ==============================================================================
#
# Segment id: 0
s 4 2000 450 2500 1000 3000 2000 4000 2100
#
# Segment Id: 1
s 5 0 0 10 10 20 20 30 30 40 40
#
# Segment Id: 2
s 4 1000 0 5000 100 3000 300 2000 450
#
# Segment Id: 3
s 4 900 600 1000 1200 1500 3000 2000 5000