[vtkusers] Help on vtkMeanValueCoordinatesInterpolator
Cheng Zhigao
ZGCHENG at ntu.edu.sg
Thu Mar 29 04:58:29 EDT 2012
Hi,
Can anybody provide an example about the vtkMeanValueCoordinatesInterpolator, like a cube as the polyhedron? Thanks very much
Regards,
zhigao
________________________________________
From: Cheng Zhigao
Sent: Thursday, March 29, 2012 4:37 PM
To: vtkusers at vtk.org
Subject: Help on vtkMeanValueCoordinatesInterpolator
Hi VTK Experts,
I have a vtkUnstructuredGrid mesh, named uMesh, which is a closed manifold mesh generated by a vtkDelaunay3D filter. I want to compute the weights for a point x[3] from the unstructured mesh. I just call:
ComputeInterpolationWeights(x, uMesh->GetPoints(), uMesh->GetCells(), weights)
where weights is a float array with the same size as the uMesh points number.
i checked the weights result, they satisfy with the Affine invariance(sum to 1) but not the linear reproduction.
Where could i be wrong? Does the point X have to be within the closed mesh?
Thanks very much for any help.
Regards,
zhigao
CONFIDENTIALITY:This email is intended solely for the person(s) named and may be confidential and/or privileged.If you are not the intended recipient,please delete it,notify us and do not copy,use,or disclose its content.
Towards A Sustainable Earth:Print Only When Necessary.Thank you.
More information about the vtkusers
mailing list