triMeshEquilateral
Below is a demonstration of the features of the triMeshEquilateral function
Contents
clear all; close all; clc;
PLOT SETTINGS
fig_color='w'; fig_colordef='white'; font_size=20; cmap=gray(250); falpha=1; patch_types={'sx','sy','sz','v'}; ptype=3; no_slices=4; mark_siz1=25; mark_siz2=25; mark_siz3=15; line_width1=2; F_alpha1=1; F_alpha2=0.8;
Control parameters
%Desired mesh point spacing pointSpacing=1; %Mesh region extrema maxV=[5 6]; minV=[-5 -5];
CREATING AN EQUILATERAL TRIANGLE MESH
[F,V]=triMeshEquilateral(minV,maxV,pointSpacing);
Plottting mesh
hf1=figuremax(fig_color,fig_colordef); title('Equilateral mesh','FontSize',font_size); xlabel('X','FontSize',font_size);ylabel('Y','FontSize',font_size); zlabel('Z','FontSize',font_size); hold on; hpm=patch('Faces',F,'Vertices',V,'EdgeColor','k','FaceColor','g','FaceAlpha',F_alpha1,'lineWidth',line_width1); % [hp]=patchNormPlot(F,V,1); colormap autumn; axis equal; view(2); axis tight; grid on; set(gca,'FontSize',font_size); drawnow;

GIBBON
Kevin M. Moerman (kevinmoerman@hotmail.com)