diff Framework/Toolbox/DicomStructureSet.h @ 132:35c2b85836ce wasm

fix rtstruct projections
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 17 Nov 2017 18:01:31 +0100
parents 3e6163a53b16
children e2fe9352f240
line wrap: on
line diff
--- a/Framework/Toolbox/DicomStructureSet.h	Thu Nov 16 15:00:45 2017 +0100
+++ b/Framework/Toolbox/DicomStructureSet.h	Fri Nov 17 18:01:31 2017 +0100
@@ -57,7 +57,7 @@
 
     typedef std::map<std::string, ReferencedSlice>  ReferencedSlices;
     
-    typedef std::list<Vector>  Points;
+    typedef std::vector<Vector>  Points;
 
     class Polygon
     {
@@ -79,6 +79,11 @@
       {
       }
 
+      void Reserve(size_t n)
+      {
+        points_.reserve(n);
+      }
+
       void AddPoint(const Vector& v);
 
       bool UpdateReferencedSlice(const ReferencedSlices& slices);