kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #26854
Re: CPolyLine refactor
>
> Because we need mainly a class to store a polygon with holes (to replace
> CPolyLine) improving
> iterators and functions, especially to handle the first outline with holes
> can be an option.
>
This was my only concern, CPolyLine is a single polygon with holes and we
have no other class with the same exact meaning. I've got no problem in
replacing it with a set of just one polygon, if you agree.
I'm working right now on the Iterator class. Now there's an option to
iterate through the vertices of the hole or just through the vertices of
the outline. The possibility of iterating only the first polygon was
already implemented.
References