<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi all,<div><br></div><div>I currently try to use the VTK C++ library, more precisely I try to extract a selection by using a query string. </div><div>Sadly I receive this error message from within vtk:</div><div><br></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><font face="Source Code Pro">ERROR: In ~/git/VTK/Filters/Extraction/vtkExtractSelection.cxx, line 365</font></div></div><div><div><font face="Source Code Pro">vtkExtractSelection (0x7f8dd061ed30): Unrecognized CONTENT_TYPE: 9</font></div></div></blockquote><div><div><br></div><div>The following part of the code produces the error:</div><div><br></div></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div><font face="Source Code Pro">selection_node->SetFieldType(vtkSelectionNode::CELL); // select cells</font></div></div></div><div><div><div><font face="Source Code Pro">selection_node->SetContentType(vtkSelectionNode::QUERY); // use query string for selection</font></div></div></div><div><div><div><font face="Source Code Pro">selection_node->SetQueryString("scalars[:,0] == 1");</font></div></div></div><div><div><div><font face="Source Code Pro">selection->AddNode(selection_node);</font></div></div></div><div><div><div><font face="Source Code Pro">extract_selection->SetInputData(0,bounding_poly); // a vtkPolyData object containing a triangulation</font></div></div></div><div><div><div><font face="Source Code Pro">extract_selection->SetInputData(1,selection);</font></div></div></div><div><div><div><font face="Source Code Pro">extract_selection->Update();</font></div></div></div></blockquote><div><div><br></div><div>So my question is: How can I implement the selection by a query string?</div><div><br></div><div>Best</div><div>Christian Bauer<br><div>
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><div style="margin: 0px; font-size: 10px; color: rgb(127, 127, 127);"><span style="letter-spacing: 0px;">--</span></div><div style="margin: 0px; font-size: 10px; color: rgb(127, 127, 127);"><span style="letter-spacing: 0px;">Christian Bauer</span></div><div style="margin: 0px; font-size: 10px; color: rgb(127, 127, 127);"><span style="letter-spacing: 0px;">Student</span></div><div style="margin: 0px; font-size: 10px; color: rgb(127, 127, 127);"><span style="letter-spacing: 0px;">Computational Engineering Science, B. Sc.</span></div><div style="margin: 0px; font-size: 10px; color: rgb(127, 127, 127);"><span style="letter-spacing: 0px;">RWTH Aachen University</span></div><div style="margin: 0px; font-size: 10px; color: rgb(127, 127, 127);"><span style="letter-spacing: 0px;">E-Mail:<span class="Apple-converted-space"> </span><a href="mailto:christian.bauer@rwth-aachen.de?subject="><span style="letter-spacing: 0px;">christian.bauer@rwth-aachen.de</span></a></span></div><div style="margin: 0px; font-size: 10px; color: rgb(127, 127, 127);"><span style="letter-spacing: 0px;">OpenPGP: <a href="http://keys.gnupg.net/pks/lookup?op=get&search=0x5AA452D5F31608DA"><span style="letter-spacing: 0px;">http://keys.gnupg.net/pks/lookup?op=get&search=0x5AA452D5F31608DA</span></a></span></div></div></div></div></div></div>
</div>
<br></div></div></body></html>