<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>when is vtkNightlyTcl.exe refreshed?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi.</FONT>
</P>
<P><FONT SIZE=2>Are vtkNightlyTcl.exe and vtkNightlyCore.exe also refreshed daily?</FONT>
</P>
<P><FONT SIZE=2>I want to compute the difference between two extracted slices from a volume but have some problems with the extent of the output. When I extract a slice with vtkExtractVOI the extent becomes smaller. </FONT></P>
<P><FONT SIZE=2>I saw that the folowing lines in vtkExtractVOI::ExecuteInformation() </FONT>
<BR><FONT SIZE=2> dims[0] = wholeExtent[1] - wholeExtent[0];</FONT>
<BR><FONT SIZE=2> dims[1] = wholeExtent[3] - wholeExtent[2];</FONT>
<BR><FONT SIZE=2> dims[2] = wholeExtent[5] - wholeExtent[4];</FONT>
<BR><FONT SIZE=2>where in the nightly release changed to: </FONT>
<BR><FONT SIZE=2> dims[0] = wholeExtent[1] - wholeExtent[0] + 1;</FONT>
<BR><FONT SIZE=2> dims[1] = wholeExtent[3] - wholeExtent[2] + 1;</FONT>
<BR><FONT SIZE=2> dims[2] = wholeExtent[5] - wholeExtent[4] + 1;</FONT>
</P>
<P><FONT SIZE=2>Are these changes also made in the vtkNightlyTcl.exe? When i download and install it my tcl program still doesn't work. Or am I doing something wrong?</FONT></P>
<BR>
<P><FONT SIZE=2> vtkStructuredPointsReader structuredPointsReader</FONT>
<BR><FONT SIZE=2> structuredPointsReader SetFileName $FILE_NAME</FONT>
<BR><FONT SIZE=2> structuredPointsReader Update</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2> set hext [[structuredPointsReader GetOutput] GetWholeExtent]</FONT>
<BR><FONT SIZE=2> tk_messageBox -message "extent: $hext"</FONT>
</P>
<P><FONT SIZE=2> scan $hext "%d %d %d %d %d %d" x1 x2 y1 y2 z1 z2</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2> vtkExtractVOI extractA</FONT>
<BR><FONT SIZE=2> extractA SetInput [structuredPointsReader GetOutput]</FONT>
<BR><FONT SIZE=2> extractA SetVOI $x1 $x2 $y1 $y2 0 0</FONT>
<BR><FONT SIZE=2> extractA Update</FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2> set voiext [[extractA GetOutput] GetWholeExtent]</FONT>
<BR><FONT SIZE=2> tk_messageBox -message "extent: $voiext"</FONT>
</P>
<BR>
<P><FONT SIZE=2> gives output: </FONT>
<BR><FONT SIZE=2> extent: 0 410 0 551 0 2</FONT>
<BR><FONT SIZE=2> extent: 0 409 0 550 0 0</FONT>
</P>
<P><FONT SIZE=2>Best regards, Pepijn Kenter.</FONT>
</P>
<BR>
</BODY>
</HTML>