-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrive.m
executable file
·49 lines (38 loc) · 894 Bytes
/
drive.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
% ======= / Script para testes / =======
% Metodos uteis:
% - Parameters('file','<seu arquivo de parametrossalvo>.mat');
% - RootStruct/stepGrow();
% - RootStruct/printRootStruct();
% - RootStruct/drawRootStruct();
% - RootStruct/getNodeFromGlbIndex();
% - Axe/nodeFromIndex();
% - Axe/printNodeCoords();
% - Axe/checkGeomConsistency();
% - Node/getDistance();
%%
% Adiciona ao path do Matlab todos as subpastas do diretorio atual
addpath(genpath(pwd));
%% Initialization
close all;
clear;
clc;
p = Parameters('file','testegeral.mat');
r = RootStruct(p);
r.stepGrow();
r.stepGrow();
r.stepGrow();
r.stepGrow();
r.stepGrow();
r.stepGrow();
r.stepGrow();
%r.stepGrow();
tap = r.global_lca.initAxis;
r.fill();
figure
r.drawRootStruct(true,true,true);
%% Filling volume process
r.fill();
%% Showing results
figure
r.printRootStruct();
r.drawRootStruct(true,true,true);