-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathExample.m
33 lines (26 loc) · 1.22 KB
/
Example.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
% EXAMPLE %
% -------------------------------------------------------------------------
% EXAMPLE DATA CAN BE FOUND AT
% https://www.dropbox.com/sh/ciy1fu2k63nqnd4/AACWkJvSHsiA_-9slJBiEEiua?dl=0
%
% then they should be put at the root of the code
%
% Reading .msh file might be a bit faster than stl
%--------------------------------------------------------------------------
clearvars
close all
addpath(genpath(strcat(pwd,'/SubFunctions')));
%% Example for a Tibia composed of two parts (distal and proximal)
[ProxTib,DistTib] = ReadMesh(strcat(pwd,'/ProxTib_S1_05.msh'),...
strcat(pwd,'/DistTib_S1_05.msh'));
[ TibACSsResults, TibiaTriangulations ] = RTibiaFun( ProxTib , DistTib);
PlotTibia( TibACSsResults.PIAASL, TibiaTriangulations )
%% Example for a Femur composed of two parts (distal and proximal)
[DistFem,ProxFem] = ReadMesh(strcat(pwd,'/DistFem_S2_05.msh'),...
strcat(pwd,'/ProxFem_S2_05.msh'));
[ FemACSsResults, FemurTriangulations ] = RFemurFun( DistFem, ProxFem);
PlotFemur( FemACSsResults.PCC, FemurTriangulations )
%% Example for a Patella
[Patella] = ReadMesh(strcat(pwd,'/Patella_S4_05.msh'));
[ PatACSsResults, PatellaTriangulations ] = RPatellaFun( Patella );
PlotPatella( PatACSsResults.VR, PatellaTriangulations )