Texture Patch
This function PATCHT, will show a triangulated mesh like Matlab function Patch but then with a texture.
patcht(FF,VV,TF,VT,I,Options);
inputs,
FF : Face list 3 x N with vertex indices
VV : Vertices 3 x M
TF : Texture list 3 x N with texture vertex indices
VT : Texture Coordinates s 2 x K, range must be [0..1] or real pixel postions
I : The texture-image RGB [O x P x 3] or Grayscale [O x P]
Options : Structure with options for the textured patch such as
EdgeColor, EdgeAlpha see help "Surface Properties :: Functions"
Options.PSize : Special option, defines the image texturesize for each
individual polygon, a low number gives a more block
like texture, defaults to 64;
note:
On a normal PC displaying 10,000 faces will take about 6 sec.
Example,
% Load Data;
load testdata;
% Show the textured patch
figure, patcht(FF,VV,TF,VT,I);
% Allow Camera Control (with left, right and center mouse button)
mouse3d
Cita come
Dirk-Jan Kroon (2024). Texture Patch (https://www.mathworks.com/matlabcentral/fileexchange/28106-texture-patch), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Graphics > 2-D and 3-D Plots > Surfaces, Volumes, and Polygons > Polygons >
- MATLAB > Mathematics > Computational Geometry > Triangulation Representation >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |