Hi Fabien, you're welcome!
> I've noticed that closed curves yield an open polyline right now - I haven't looked into
> closing it in the script yet, but I thought I'd mention it.
For that try looking at the .isClosed property on the curve and if true insert the start point at the end of the polyline inputs.
> I take it that only the offset of the point is taken into account, not its relative position along the
> curve? In a perfect world, it would be also one of the points of the polyline generated ;)
Sorry I'm not understanding this part. Which point are you referring to here?
> Further simplification of the polyline based on a threshold angle is probably a lot
> more involved, too, I guess.
Yes, kind of more involved but it should be doable if you want to try it. You would need to make some vectors between the points, use dotproduct to determine the cosine of the angle between them and figure out the logic for remaking the points skipping some I guess.
- Michael
|