Commit 225dba9d authored by Dean Inglis's avatar Dean Inglis
Browse files

ENH: accommodate new revisions to vtkSplineWidget, vtkImageTracerWidget

parent 027c49db
......@@ -248,10 +248,7 @@ proc AdjustTracer { } {
points InsertNextPoint [lindex $pt 0] [lindex $pt 1] [lindex $pt 2]
}
set closed [isw GetClosed]
if { $npts < 3 } {
set closed 0
}
set closed [isw IsClosed]
if { $closed } {
set ac [itw GetAutoClose]
......@@ -262,6 +259,8 @@ proc AdjustTracer { } {
isw GetPolyData spoly
stencil Update
imageActor2 SetInput [stencil GetOutput]
} else {
imageActor2 SetInput [extract GetOutput]
}
itw InitializeHandles points
......
......@@ -313,7 +313,7 @@ public:
if(!splineWidget) { return; }
int npts = splineWidget->GetNumberOfHandles();
int closed = (splineWidget->GetClosed() && npts > 2) ? 1 : 0;
int closed = splineWidget->IsClosed();
Points->Reset();
for (int i = 0; i < npts; ++i)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment