Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Volumes/DicomStructureSetSlicer2.cpp @ 1895:14c8f339d480
removed redundant definitions Point2D, Point3D and Vector3D from DicomStructureSetUtils.h
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 19 Jan 2022 14:51:55 +0100 |
parents | 7053b8a0aaec |
children |
line wrap: on
line diff
--- a/OrthancStone/Sources/Volumes/DicomStructureSetSlicer2.cpp Wed Jan 19 14:25:59 2022 +0100 +++ b/OrthancStone/Sources/Volumes/DicomStructureSetSlicer2.cpp Wed Jan 19 14:51:55 2022 +0100 @@ -90,7 +90,7 @@ { const Color& color = structure.GetColor(); - std::vector< std::pair<Point2D, Point2D> > segments; + std::vector< std::pair<ScenePoint2D, ScenePoint2D> > segments; if (structure.Project(segments, cuttingPlane)) { @@ -99,8 +99,8 @@ PolylineSceneLayer::Chain chain; chain.resize(2); - chain[0] = ScenePoint2D(segments[j].first.x, segments[j].first.y); - chain[1] = ScenePoint2D(segments[j].second.x, segments[j].second.y); + chain[0] = ScenePoint2D(segments[j].first.GetX(), segments[j].first.GetY()); + chain[1] = ScenePoint2D(segments[j].second.GetX(), segments[j].second.GetY()); layer->AddChain(chain, false /* NOT closed */, color); }