Mercurial > hg > orthanc-stone
changeset 1764:adb59bcb0fc5
fix use of USE_BOOST_UNION_FOR_POLYGONS
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 10 May 2021 14:45:58 +0200 |
parents | 29c85a2c6df0 |
children | 177f93c8371c |
files | OrthancStone/Sources/Loaders/DicomStructureSetLoader.cpp |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancStone/Sources/Loaders/DicomStructureSetLoader.cpp Mon May 10 14:18:24 2021 +0200 +++ b/OrthancStone/Sources/Loaders/DicomStructureSetLoader.cpp Mon May 10 14:45:58 2021 +0200 @@ -349,24 +349,24 @@ { const Color& color = content_.GetStructureColor(i); -#ifdef USE_BOOST_UNION_FOR_POLYGONS +#if USE_BOOST_UNION_FOR_POLYGONS == 1 std::vector< std::vector<Point2D> > polygons; - + if (content_.ProjectStructure(polygons, i, cuttingPlane)) { for (size_t j = 0; j < polygons.size(); j++) { PolylineSceneLayer::Chain chain; chain.resize(polygons[j].size()); - + for (size_t k = 0; k < polygons[j].size(); k++) { chain[k] = ScenePoint2D(polygons[j][k].x, polygons[j][k].y); - } - + } + layer->AddChain(chain, true /* closed */, color); - } - } + } + } #else std::vector< std::pair<Point2D, Point2D> > segments;