Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Geomerative: splitting a shape into multiple shapes by points

$
0
0

Using the geomerative library, I want to be able to split one shape into multiple shapes at several split points, and store the collection of resulting shapes in an array.

2017-03-13 21_01_11-Test2

For example, the big circle has five split points. I was able to produce the red arc for the segment between the top point and the next point going clockwise as an RShape using the split function. However, I was unsuccessful at producing the other segments. Is there a function alone in the geomerative library that can accomplish this, or do I need to write an algorithm? If so, how would I write it?


Viewing all articles
Browse latest Browse all 2896

Trending Articles