Convert isosurface output to meshgrid-like data

Is there a function to convert isosurface output to meshgrid-like data ? I came up with straighforward code which works very slow.
function [ zn ] = iso2mesh(pv,X2,Y2 )
pa=patch(pv);
xi=pv.vertices(:,1);
yi=pv.vertices(:,2);
zi=pv.vertices(:,3);
[zn]=griddata(xi,yi,zi,X2,Y2);
end

답변 (1개)

Walter Roberson
Walter Roberson 2012년 12월 22일

0 개 추천

TriScatteredInterp might be faster.

질문:

2012년 12월 22일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by