필터 지우기
필터 지우기

How to get xyz coordinates from 3d surface?

조회 수: 2 (최근 30일)
youb mr
youb mr 2020년 10월 26일
편집: Walter Roberson 2020년 10월 26일
hello every one i'm working now in texture mapping so i want to get x,y,z coordinates of a 3d object of all faces of this object but i just now to get this coordinates just for one face how i can get all coordinate of all faces this is my code
nx = 120; % the size of the grid
ny = 120; % the size of the grid
x = linspace(min(v(:,1)),max(v(:,1)),nx);
y = linspace(min(v(:,2)),max(v(:,2)),ny);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Number of x values in uniform grid
[X, Y] = meshgrid(x, y); % Create meshes for xu and yu
Z = gridtrimesh(f,v,X,Y);
where V and f are the faces and vertex
how i can get all coordinate of all faces this is my code my 3d object have 5 faces ?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by