私はboost::geometryとC++を初めて使用しますが、それをいじっていると、次の質問が頭に浮かびました:
色またはintを含むstd::stringのように、追加情報をポリゴン内に直接保存することは可能ですか?何らかのID番号?
または、次のようなものでラップする必要がありますか:
MyPolygon {
typedef boost::geometry::model::d2::point_xy<double> point_2d;
typedef boost::geometry::model::polygon<point_2d> polygon_2d;
polygon_2d poly;
std::string color;
int id;
etc...
}
ありがとう!
フランツ