Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
133 views
in Technique[技术] by (71.8m points)

c++ - boost::polygon::polygon_with_holes - presort input data?

I have some input vector data which have to be put into a boost::polygon::polygon_with_holes structure for further processing. My problem: the input data describe closed polygons but they do not have this clear outline/holes definition as the boost-strucutre has. So may be the first of the polygons is the outline, may be the second or may be any other - while the remaining input polygons then are the holes.

My question is: is there a boost-function where I can hand over these "unsorted" input data to and that returns a "sorted" boost::polygon::polygon_with_holes structure? Or is there any other function which gives me the possibility to Analyse the input polygons and to identify which one is the outline?

Thanks!

question from:https://stackoverflow.com/questions/65898145/boostpolygonpolygon-with-holes-presort-input-data

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...