이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
SYNOPSIS: patchTexture(patchHandle,texture)
INPUT
patchHandle: handle to patch object
texture: texture to map onto the surface defined via patch
Texture can be a grayscale or an RGB image
OUTPUT
none - the texture is mapped onto the patch identified by
patchHandle by reading the image at the [x,y] coordinates
of the vertices of the patch. The vertex coordinates are
rescaled so that a maximum of the image can be read.
EXAMPLE
[xx,yy,zz] = ndgrid(-100:100,-100:100,-100:100);
img = xx.^2 + yy.^2 + zz.^2 < 99^2;
img = convn(img,ones(5,5,5)/(5*5*5));
p = isosurface(img,0.5);
ph = patch(p);
set(gca,'visible','off')
axis equal
texture = imread('autumn.tif');
patchTexture(ph,texture)
view(58,82)
SEE ALSO patch, surface
인용 양식
Jonas (2026). Map texture to patch (https://kr.mathworks.com/matlabcentral/fileexchange/27764-map-texture-to-patch), MATLAB Central File Exchange. 검색 날짜: .
