Converts this shape to a sequence of Segments and adds segments to the given array.
array to add segments.
shapeId to write into segments.
Converts this shape to a sequence of Segments and adds segments to the given array.