Skip to content

3rd party codes

Sunil Anandatheertha edited this page Jul 8, 2021 · 13 revisions

The following 3rd party codes (have been used) / (is needed) in some areas of PXO program

  1. MTEX: https://mtex-toolbox.github.io/. USED TO WORK ON TEXTURE AND GRAIN STRUCTURE ANALYSIS. {MUST BE INSTALLED SEPERATELY, IF NEEDED}

  2. Jakob Sievers (2021). VoronoiLimit(varargin) (https://www.mathworks.com/matlabcentral/fileexchange/34428-voronoilimit-varargin), MATLAB Central File Exchange. Retrieved June 29, 2021. USED TO CLIP VORONOI TESSELLATION. {INCLUDED IN PXO DISTRIBUTION}

  3. GMSH: http://gmsh.info/#Download. {MUST BE INSTALLED SEPERATELY, IF NEEDED}

  4. Depriester et al., (2020). MTEX2Gmsh: a tool for generating 2D meshes from EBSD data. Journal of Open Source Software, 5(52), 2094, https://doi.org/10.21105/joss.02094. {MUST BE INSTALLED SEPERATELY, IF NEEDED}

  5. https://uk.mathworks.com/matlabcentral/answers/474193-how-to-generate-points-in-triangular-lattice-pattern: Michael Madelaire on 31 Jul 2019. USED TO MAKE TRIANGULAR LATTICE TO GENERATE HEXAGONAL VORONOI TESSELLATION. {INCLUDED IN PXO DISTRIBUTION}. Original code is below:

clear all; close all; clc;
%% Triangular grid information
h_dist = 5; % Horizontal distance
v_dist = sqrt(h_dist^2-(h_dist/2)^2); % Vertical distance
%% Region size
x_lim = 100;
y_lim = 100;
%% Generate grid
trigrid = [];
y_current = 0;
xx = 0;
displacement = 0;
while y_current < y_lim
    if displacement == 0
        xx = [0:h_dist:x_lim]';
        yy = ones(length(xx), 1)*y_current;
        displacement = 1;
    else
        xx = [h_dist/2:h_dist:x_lim]';
        yy = ones(length(xx), 1)*y_current;
        displacement = 0;
    end
    trigrid = [trigrid; [xx,yy]];
    y_current = y_current + v_dist;
end
%% Plot
figure()
plot(trigrid(:,1), trigrid(:,2), 'o', 'markersize', 2);
grid on;
xlim([-h_dist, x_lim+h_dist]);
ylim([-v_dist, y_lim+v_dist]);

Above has been reproduced in this wiki page to maintain original source. It has been modified (@sunilanandatheertha) accordingly to support PXO.

  1. Grigor Browning (2021). num2clip: copy numerical arrays to clipboard (https://www.mathworks.com/matlabcentral/fileexchange/8472-num2clip-copy-numerical-arrays-to-clipboard), MATLAB Central File Exchange. Retrieved June 17, 2021. {INCLUDED IN PXO DISTRIBUTION}
Clone this wiki locally