help in texture mapping?

1 visualización (últimos 30 días)
youb mr
youb mr el 15 de Oct. de 2020
Editada: youb mr el 15 de Oct. de 2020
hello every one
I would like to map a texture onto a 3-D object (.stl) i have compute the face and the vertice of the 3d object
fv = stlread ( 'house.stl' );
I=imread('brique.gif')
v = fv.vertices;
f=fv.faces;
x = linspace(min(v(:,1)),max(v(:,1)),nx);
y = linspace(min(v(:,2)),max(v(:,2)),ny);
% [x,y] = meshgrid(x,y);
Z = gridtrimesh(f,v,x,y);
figure;
surf(x,y,Z,'facecolor','texturemap',...
'cdata',I,'edgecolor','none');
when i run my programs i get bad result so how i can project my texture (I] on the mesh all surface of my 3d object

Respuestas (0)

Categorías

Más información sobre Point Cloud Processing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by