-
Notifications
You must be signed in to change notification settings - Fork 0
/
shirt_intern_production.m
53 lines (46 loc) · 2 KB
/
shirt_intern_production.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
50
51
52
53
function pattern = shirt_intern_production (human, fit, sleeves)
%% pattern = shirt_intern_production(human, fit, sleeves) - creates the pattern and all files for extern production
% (created by Christina M. Hein, 2019-November-13)
% (last changes by Christina M. Hein, ---)
%
% This function creates the pattern and all necessary files for intern
% fabrication of the shirt. It needs the customers
% properties (human) and the shirt properties (fit, sleeves). The
% function creates a folder containing:
% - svg-files of pattern
% - variable human (for documentation)
%
% EXAMPEL:
% pattern = shirt_intern_production_(create_human_from_size('female',36, 'Sam Sample'), 'tight', 'long')
%
% === INPUT ARGUMENTS ===
% human = struct containing name, type (male, female, child) and
% body dimensions
% fit = 'tight', 'regular' or 'loose'
% sleeves = 'sleeveless', 'short', '3/4sleeves', 'long'
%
% === OUTPUT ARGUMENTS ===
% pattern = struct containing PL of construction points, CPLs of basic
% pattern and production pattern, part names, material and
% label information.
%
% see also
% shirt_extern_production_one
% shirt_extern_production_two
% shirt_intern_cutting_extern_sewing
%% Pattern
pattern = create_pattern_shirt(human, fit, sleeves, 'v','plain_hem');
if nargout == 0
plot_basic_pattern(pattern);
plot_production_pattern(pattern)
end
d = date;
directory = strcat(d,'_Production_Files_ip_',human.name);
create_production_files_lc(human, pattern, directory);
disp('-----------------------------------------------------------------')
fprintf('A folder with the name %s was created with all files for your chosen fabrication type. \n', directory);
%% Tutorials for cutting and sewing
%disp('Within this folder you'll also find tutorials for cutting and sewing.');
disp('-----------------------------------------------------------------')
disp('-----------------------------------------------------------------')
end