texture mapping in 3d surface?

3 次查看(过去 30 天)
youb mr
youb mr 2020-10-18
评论: youb mr 2020-10-19
hello
how i can project a texture image in 3d surface
i have use
surface (X,Y,Z,'facecolor','texturemap',...
'cdata',I,'edgecolor','none');
but it dosen'tgive me good result
  5 个评论
youb mr
youb mr 2020-10-19
where
nx = 120; % the size of the grid
ny = 120; % the size of the grid
% % create a grid in x and y
x = linspace(min(v(:,1)),max(v(:,1)),nx);
y = linspace(min(v(:,2)),max(v(:,2)),ny);
[x,y] = meshgrid(x,y);
% % find corresponding z-values by means of gridtrimesh.m
% fprintf(['gridtrimesh.......']); tic
Z = gridtrimesh(f,v,x,y);

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by