That error message comes from the following VTK C++ code:<br><br> if ( !this->DataSet || <br> !(scalars = this->DataSet->GetPointData()->GetScalars()) )<br> {<br> vtkErrorMacro(<<"Can't evaluate dataset!");<br>
return this->OutValue;<br> }<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'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"><<a href="mailto:robert_remke@starkey.com">robert_remke@starkey.com</a>></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);"> </span></p>
<p><span style="color: rgb(31, 73, 125);">Thought I would re-post this in
case it got missed. Any help would be appreciated.</span></p>
<p><span style="color: rgb(31, 73, 125);"> </span></p>
<p><span style="color: rgb(31, 73, 125);">Thanks</span></p>
<p><span style="color: rgb(31, 73, 125);"> </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> </p>
<p>VTK Users,</p>
<p> </p>
<p>Is there a filter like vtkImageLogic that will operate on
two PolyData sets. I want to perform a logical AND on two PolyData sets
to extract the common volume. I can't find any filter in VTK that
will allow me to do that directly. Is there something and maybe I missed
it?</p>
<p> </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. Input one into a
vtkImplicitDataSet object and then input that and the other data set into a
vtkClipPolyData object:</p>
<p> </p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";"> <span style="color: blue;">Private</span>
<span style="color: blue;">Sub</span> CodeSnippet()</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";">
OpenFileDialog1.Multiselect = <span style="color: blue;">True</span></span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";">
OpenFileDialog1.Filter = <span style="color: maroon;">"STL Files
(*.stl)|*.stl"</span></span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";">
OpenFileDialog1.FilterIndex = 1</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";">
OpenFileDialog1.ShowDialog()</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";"> <span style="color: blue;">Me</span>.Refresh()</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";"> <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: "Courier New";">
Object1.SetFileName(OpenFileDialog1.FileNames(0))</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";"> <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: "Courier New";">
Object2.SetFileName(OpenFileDialog1.FileNames(1))</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";"> <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: "Courier New";"> ImplicitData.SetDataSet(Object1.GetOutput)</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";"> <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: "Courier New";">
Clipper.SetInput(Object2.GetOutput)</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";">
Clipper.SetClipFunction(ImplicitData)</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";">
Clipper.GenerateClipScalarsOn()</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";">
Clipper.GenerateClippedOutputOn()</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";">
Clipper.SetValue(0)</span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";"> </span></p>
<p style=""><span style="font-size: 10pt; font-family: "Courier New";"> <span style="color: blue;">End</span>
<span style="color: blue;">Sub</span></span><span style="font-size: 10pt;"></span></p>
<p> </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: "Courier New"; 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: "Courier New"; color: blue;">vtkImplicitDataSet (04280888): Can't
evaluate dataset!</span><span style="font-size: 10pt;"></span></p>
<p> </p>
<p>I am using Activis.NET in Visual Basic .NET.</p>
<p> </p>
<p>Does anyone know what this error is? If I could get
the above code to work then maybe I could repeat the process. First clip
Object2 with Object1. Then clip Object1 with Object2. Then combine
the results to get a data set representing the common volume of the two
objects.</p>
<p> </p>
<p>Thanks in advance for any help.</p>
<p> </p>
<p> </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>