That error message comes from the following VTK C++ code:<br><br>&nbsp; if ( !this-&gt;DataSet || <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !(scalars = this-&gt;DataSet-&gt;GetPointData()-&gt;GetScalars()) )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; vtkErrorMacro(&lt;&lt;&quot;Can&#39;t evaluate dataset!&quot;);<br>
&nbsp;&nbsp;&nbsp; return this-&gt;OutValue;<br>&nbsp;&nbsp;&nbsp; }<br><br>So..... since you clearly have called SetDataSet (I assume with a non-Nothing / non-NULL object...) then there must not be any point data scalars associated with the dataset.<br>
<br>Hopefully, this helps steer you in the right direction. I don&#39;t have time right now to dig deeper -- let us know how you make out with this information. Thumbs up or still thumbs down, let us know...<br><br><br>HTH,<br>
David<br><br><br><div class="gmail_quote">On Mon, Jan 26, 2009 at 2:07 PM, Rob Remke <span dir="ltr">&lt;<a href="mailto:robert_remke@starkey.com">robert_remke@starkey.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span style="color: rgb(31, 73, 125);">VTK Users,</span></p>

<p><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="color: rgb(31, 73, 125);">Thought I would re-post this in
case it got missed.&nbsp; Any help would be appreciated.</span></p>

<p><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<p><span style="color: rgb(31, 73, 125);">Thanks</span></p>

<p><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>
[mailto:<a href="mailto:vtkusers-bounces@vtk.org" target="_blank">vtkusers-bounces@vtk.org</a>] <b>On Behalf Of </b>Rob Remke<br>
<b>Sent:</b> Tuesday, January 20, 2009 4:51 PM<br>
<b>To:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> [vtkusers] Performing a Logical And on two PolyData Sets?</span></p>

</div>

</div><div><div></div><div class="Wj3C7c">

<p>&nbsp;</p>

<p>VTK Users,</p>

<p>&nbsp;</p>

<p>Is there a filter like vtkImageLogic that will operate on
two PolyData sets.&nbsp; I want to perform a logical AND on two PolyData sets
to extract the common volume.&nbsp; I can't find any filter in VTK that
will allow me to do that directly.&nbsp; Is there something and maybe I missed
it?</p>

<p>&nbsp;</p>

<p>If there is not a simple approach as above, I thought that
an alternative might be to read the two data sets in.&nbsp; Input one into a
vtkImplicitDataSet object and then input that and the other data set into a
vtkClipPolyData object:</p>

<p>&nbsp;</p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">Private</span>
<span style="color: blue;">Sub</span> CodeSnippet()</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OpenFileDialog1.Multiselect = <span style="color: blue;">True</span></span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OpenFileDialog1.Filter = <span style="color: maroon;">&quot;STL Files
(*.stl)|*.stl&quot;</span></span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OpenFileDialog1.FilterIndex = 1</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
OpenFileDialog1.ShowDialog()</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">Me</span>.Refresh()</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">Dim</span> Object1 <span style="color: blue;">As</span> <span style="color: blue;">New</span> vtkSTLReader</span></p>


<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Object1.SetFileName(OpenFileDialog1.FileNames(0))</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">Dim</span> Object2 <span style="color: blue;">As</span> <span style="color: blue;">New</span> vtkSTLReader</span></p>


<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Object2.SetFileName(OpenFileDialog1.FileNames(1))</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">Dim</span> ImplicitData <span style="color: blue;">As</span> <span style="color: blue;">New</span> vtkImplicitDataSet</span></p>


<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ImplicitData.SetDataSet(Object1.GetOutput)</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: blue;">Dim</span> Clipper <span style="color: blue;">As</span> <span style="color: blue;">New</span> vtkClipPolyData</span></p>


<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Clipper.SetInput(Object2.GetOutput)</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Clipper.SetClipFunction(ImplicitData)</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Clipper.GenerateClipScalarsOn()</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Clipper.GenerateClippedOutputOn()</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Clipper.SetValue(0)</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&nbsp;&nbsp;&nbsp; <span style="color: blue;">End</span>
<span style="color: blue;">Sub</span></span><span style="font-size: 10pt;"></span></p>

<p>&nbsp;</p>

<p>When I Input Clipper.GetOut into a Mapper and try to render,
I get the following error:</p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">ERROR: In
..\..\VTK-5-2-0\VTK\Filtering\vtkImplicitDataSet.cxx, line 77</span></p>

<p style=""><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: blue;">vtkImplicitDataSet (04280888): Can&#39;t
evaluate dataset!</span><span style="font-size: 10pt;"></span></p>

<p>&nbsp;</p>

<p>I am using Activis.NET in Visual Basic .NET.</p>

<p>&nbsp;</p>

<p>Does anyone know what this error is?&nbsp; If I could get
the above code to work then maybe I could repeat the process.&nbsp; First clip
Object2 with Object1.&nbsp; Then clip Object1 with Object2.&nbsp; Then combine
the results to get a data set representing the common volume of the two
objects.</p>

<p>&nbsp;</p>

<p>Thanks in advance for any help.</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

</div></div></div>

</div>


<br>_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>