[vtkusers] can vtkCell::EvaluatePosition be called from python?
David Gobbi
david.gobbi at gmail.com
Mon Feb 8 11:41:54 EST 2016
Hi Andreas,
The way you have used vtk.mutable(), the mutable object is thrown away as
soon as the function call is complete:
cell.EvaluatePosition(...,vtk.mutable(subId),...,vtk.mutable(dist2),...)
Do this instead:
subId=vtk.mutable(-1)
dist2=vtk.mutable(-1.0)
cell.EvaluatePosition(...,subId,...,dist2,...)
Cheers,
- David
On Mon, Feb 8, 2016 at 8:51 AM, Andreas Buykx <A.Buykx at tnodiana.com> wrote:
> I tried to compare the EvaluatePosition results of vtkQuad and
> vtkQuadraticQuad, by calling them from a python script, but the result is
> unexpected. Is it possible to call the function from python?
>
>
>
> thanks!
>
> Andreas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160208/9fdb2ecd/attachment.html>
More information about the vtkusers
mailing list