<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial><FONT size=2> <SPAN class=228592018-22032004>Hi
all,</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=228592018-22032004></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=228592018-22032004>I'm using
vtkPolyDataToImageStencil in my project. I run the TCL text program. It is OK
except the recently reported bug.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=228592018-22032004></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=228592018-22032004>But when I
wrote program in C++, the filter can't work. My code is as
follows:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=228592018-22032004></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=228592018-22032004>========================================================</SPAN></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=228592018-22032004> </SPAN>vtkSphereSource* sphere =
vtkSphereSource::New();<BR> sphere->SetPhiResolution(12);<BR> sphere->SetThetaResolution(12);<BR> sphere->SetCenter(48,
48, 48);<BR> sphere->SetRadius(5);</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> vtkPolyDataToImageStencil* Poly2Stencil =
vtkPolyDataToImageStencil::New();<BR> Poly2Stencil->SetInput(sphere->GetOutput());<BR> Poly2Stencil->Update();<BR> const
vtkImageStencilData* stencilData = Poly2Stencil->GetOutput();</FONT></DIV>
<DIV><SPAN class=228592018-22032004><FONT face=Arial
size=2>========================================================</FONT></SPAN></DIV>
<DIV><SPAN class=228592018-22032004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=228592018-22032004><FONT face=Arial size=2>When I debug the
program, I found that the extent of stencilData is always -1, which causes the
program crash.</FONT></SPAN></DIV>
<DIV><SPAN class=228592018-22032004><FONT face=Arial size=2>Anybody can help?
I'm working under Windows XP with MSVC 6.</FONT></SPAN></DIV>
<DIV><SPAN class=228592018-22032004><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=228592018-22032004><FONT face=Arial
size=2>Thanks!</FONT></SPAN></DIV>
<DIV><SPAN class=228592018-22032004></SPAN> </DIV>
<DIV><SPAN class=228592018-22032004><FONT face=Arial
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=228592018-22032004><FONT face=Arial
size=2>Pingkun</FONT></SPAN></DIV></BODY></HTML>