<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0pt;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:2021930075;
        mso-list-type:hybrid;
        mso-list-template-ids:-1823018530 2125658986 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:-;
        mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Arial;
        mso-fareast-font-family:"Times New Roman";}
ol
        {margin-bottom:0pt;}
ul
        {margin-bottom:0pt;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hello,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I reported this some time ago, but wasn’t sure about
the consistency of my vtkBuild. Now after upgrading to 5.2.0 I’m
convinced that the improved vtkImageStencil class (or one of the prerequesits)
are faulty.<br>
My tests where done in two different environments:<br>
- Borland6 compiled
vtk5.2.0<o:p></o:p></span></font></p>
<p class=MsoNormal style='margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><span
style='mso-list:Ignore'>-<font size=1 face="Times New Roman"><span
style='font:7.0pt "Times New Roman"'>
</span></font></span></span></font><![endif]><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Visual studio compiled vtk5.2.0 both
static<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The test pipeline is simple. VtkImageData loaded as volume.
Generating a tube that intersects the volume similar to example: ImageTracerWidget
(I visualized the tube, it nicely intersects the volume completely with the
ending protruding the volume).<br>
Now converting the polyDataToImageStencil (with setting OutputSpacing, OutputExtent
and OutputOrigin as in the sample).<br>
<br>
Results: depending on the rotation of the tube it crashes in _<i><span
style='font-style:italic'>vector.h at function: push</span></i>_back (from
stl). Sometimes especially when the tube is axial aligned it works, sometimes
it produces wrong results.<br>
Using vtk 5.1 (old cvs build) the same approach (leaving out the spacing,
extent and orgin settings as those functions did not exist) it never crashes
and never produces wrong results.<br>
I can send a sample application that reproduces the problem.<br>
<br>
As I’d really like to port my application to vtk 5.2.0 I tried to
exchange the following files but without success: vtkPolyDataToImageStencil, vtkImageStencil,
vtkImageStencilData, vtkImageStencilSource with the ones from my working cvs
build.<br>
It seems the stencil mechanism doesn’t fit in the (modified?) pipeline
algorithm of vtk5.2.0. Are there other files I could try to replace?<br>
<br>
Thanks and regards,<br>
</span></font>Michael<o:p></o:p></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>