geop_ops_drawing/
layer.rs1use geop_lib_sheet::{Layer, LineType};
5
6pub const VISIBLE: Layer = Layer {
8 name: "VISIBLE",
9 width: 0.5,
10 line_type: LineType::Continuous,
11 color: 7,
12};
13
14pub const HIDDEN: Layer = Layer {
16 name: "HIDDEN",
17 width: 0.3,
18 line_type: LineType::Hidden,
19 color: 8,
20};
21
22pub const CENTER: Layer = Layer {
24 name: "CENTER",
25 width: 0.25,
26 line_type: LineType::Center,
27 color: 1,
28};
29
30pub const DIMENSION: Layer = Layer {
32 name: "DIMENSIONS",
33 width: 0.25,
34 line_type: LineType::Continuous,
35 color: 3,
36};
37
38pub const HATCH: Layer = Layer {
40 name: "HATCH",
41 width: 0.18,
42 line_type: LineType::Continuous,
43 color: 9,
44};
45
46pub const BORDER: Layer = Layer {
48 name: "BORDER",
49 width: 0.5,
50 line_type: LineType::Continuous,
51 color: 7,
52};
53
54pub const THREAD: Layer = Layer {
56 name: "THREAD",
57 width: 0.25,
58 line_type: LineType::Continuous,
59 color: 4,
60};
61
62pub const ALL: [Layer; 7] = [VISIBLE, HIDDEN, CENTER, DIMENSION, HATCH, BORDER, THREAD];