问题
I'd like to use 2D points with attributes for the polygons.
The attributes should be assigned to any new points according to some kind of strategy.
Do you know if it is possible and how to do it? Is there any doc describing how to do it?
回答1:
Last time I looked at things it proved impossible. That's because the library does construct new points using the available (accessor) traits.
Similar/related questions:
- ID field intermittently lost in custom point class
In fact, let me dupe-vote that!
来源:https://stackoverflow.com/questions/49451296/boostgeometrydifference-providing-custom-point-with-attributes