<div dir="ltr">Hi Andrew,<div><br></div><div>It's missing a size hint for the wrappers, it should be declared like this:</div><div><br></div><div>virtual double *GetParametricCoords() VTK_SIZEHINT(3);<br></div><div><br></div><div>I've submitted an MR: <a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/3944">https://gitlab.kitware.com/vtk/vtk/merge_requests/3944</a></div><div>It's strange, it never had a hint in the old "hints" file, either.</div><div><br></div><div> - David</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 18, 2018 at 3:20 PM, Andrew Maclean <span dir="ltr"><<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default">I was looking at converting Bill's excellent example: <a href="https://lorensen.github.io/VTKExamples/site/Cxx/GeometricObjects/IsoparametricCellsDemo/" target="_blank">https://lorensen.<wbr>github.io/VTKExamples/site/<wbr>Cxx/GeometricObjects/<wbr>IsoparametricCellsDemo/</a> into Python but I have run into a problem with respect to  GetParametricCoords()<br><br>It seems to return a void pointer not an expected tuple even though the example below is a primary cell.</div><div class="gmail_default"><br></div><div class="gmail_default">There are no tests in the Python tests for GetParametricCoords() yet it is wrapped Ok as far as I can see. Does anyone have a solution?</div><div class="gmail_default"><br></div><div class="gmail_default">Here is some test code that illustrates the problem:</div><div class="gmail_default"><br></div><div class="gmail_default"><pre style="background-color:rgb(255,255,255);color:rgb(0,0,0);font-family:"DejaVu Sans Mono";font-size:9.8pt"><span style="color:rgb(128,128,128);font-style:italic">#!/usr/bin/env python<br></span><span style="color:rgb(128,128,128);font-style:italic"># -*- coding: utf-8 -*-<br></span><span style="color:rgb(128,128,128);font-style:italic"><br></span><span style="color:rgb(0,0,128);font-weight:bold">import </span>vtk<br><br><br><span style="color:rgb(0,0,128);font-weight:bold">def </span>main():<br>    xx = vtk.vtkQuadraticEdge()<br>    <span style="color:rgb(0,0,128)">print</span>(<span style="color:rgb(0,128,128);font-weight:bold">'Is it a primary cell?'</span>, xx.IsPrimaryCell())<br>    <span style="color:rgb(128,128,128);font-style:italic"># help(vtk.vtkQuadraticEdge.<wbr>GetBounds)<br></span><span style="color:rgb(128,128,128);font-style:italic">    # help(vtk.vtkQuadraticEdge.<wbr>GetParametricCoords)<br></span><span style="color:rgb(128,128,128);font-style:italic">    # print(dir(vtk.<wbr>vtkQuadraticEdge))<br></span><span style="color:rgb(128,128,128);font-style:italic">    </span>pcoords = xx.GetParametricCoords()<br>    <span style="color:rgb(128,128,128);font-style:italic">#  Here we expect a tuple of nine floats.<br></span><span style="color:rgb(128,128,128);font-style:italic">    </span><span style="color:rgb(0,0,128)">print</span>(<span style="color:rgb(0,128,128);font-weight:bold">'pcoords:'</span>, pcoords)<br>    <span style="color:rgb(128,128,128);font-style:italic"># GetBounds() works.<br></span><span style="color:rgb(128,128,128);font-style:italic">    </span>bounds = xx.GetBounds()<br>    <span style="color:rgb(0,0,128)">print</span>(<span style="color:rgb(0,128,128);font-weight:bold">'bounds:'</span>, bounds)<br><br><br><span style="color:rgb(0,0,128);font-weight:bold">if </span>__name__ == <span style="color:rgb(0,128,128);font-weight:bold">'__main__'</span>:<br>    main()<span class="HOEnZb"><font color="#888888"><br></font></span></pre><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div class="gmail_default"><br><br></div>-- <br><div class="m_-9166712008171907873gmail_signature">______________________________<wbr>_____________<br>Andrew J. P. Maclean<br><br>______________________________<wbr>_____________</div>
</font></span></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div>