Debian Codegraph @

texmf-dist/tex/latex/tikz-sections/tikz-sections.sty

raw
1 \NeedsTeXFormat{LaTeX2e}
2 \ProvidesPackage{tikz-sections}[2026/05/25 v0.2.0 Draw structural cross-sections with TikZ]
3 % Copyright 2026 Parsa Yazdi
4 %
5 % This work may be distributed and/or modified under the conditions of the
6 % LaTeX Project Public License, either version 1.3c of this license or
7 % (at your option) any later version. The latest version of this license is in
8 % https://www.latex-project.org/lppl.txt
9 % and version 1.3c or later is part of all distributions of LaTeX version 2008
10 % or later.
11 %
12 % This work has the LPPL maintenance status `maintained'.
13 % The Current Maintainer of this work is Parsa Yazdi.
14 % This work consists of the files in the TikZ-Sections package repository.
15
16 \RequirePackage{tikz}
17 \usetikzlibrary{calc}
18
19 %
20 % ===== ===== Package styles
21 %
22
23 \tikzset{
24 tikzSections/default/.style={line cap=round, line join=round},
25 tikzSections/straight/.style={tikzSections/default, red},
26 tikzSections/round/.style={tikzSections/default, blue},
27 tikzSections/centerline/.style={tikzSections/default, black, dashed},
28 tikzSections/hidden/.style={tikzSections/default, black!50, dashed},
29 tikzSections/dimension/.style={tikzSections/default, black, <->},
30 tikzSections/callout/.style={tikzSections/default, black, ->},
31 tikzSections/dimension legend/.style={draw=black, fill=white, inner sep=2pt, align=left},
32 tikzSections/label/.style={black},
33 tikzSections/fill/.style={fill=gray!20},
34 tikzSections/concrete/.style={tikzSections/default, fill=gray!10},
35 tikzSections/concrete edge/.style={tikzSections/default, draw=black, line width=2.5mm},
36 tikzSections/rebar/.style={draw=black, fill=blue},
37 tikzSections/tie/.style={tikzSections/default, draw=red, line width=0.2mm}
38 }
39
40 %
41 % ===== ===== Internal drawing helpers
42 %
43
44 \makeatletter
45 \newcommand{\tikzSections@straightSegment}[3]{%
46 \draw [tikzSections/straight, line width=#1 mm] #2 -- #3;%
47 }
48
49 \newcommand{\tikzSections@roundArc}[5]{%
50 \draw [tikzSections/round, line width=#1 mm] #2 arc (#3:#4:#5);%
51 }
52
53 \newcommand{\tikzSections@drawCallout}[4]{%
54 \draw [tikzSections/callout, line width=0.15 mm] #1 node [tikzSections/label, #3] {#4} -- #2;%
55 }
56
57 \newcommand{\tikzSections@dimensionLegend}[2]{%
58 \node [tikzSections/dimension legend, anchor=west] at #1 {\scriptsize\begin{tabular}{@{}l@{}}#2\end{tabular}};%
59 }
60 \makeatother
61
62 %
63 % ===== ===== Cold-formed steel sections
64 %
65
66 %
67 % ===== ===== Channels
68 %
69
70 \newcommand{\csChannel}[7]{
71 \csname tikzSections@straightSegment\endcsname{#6}{(#7,0)}{(#4-#7,0)}
72 \csname tikzSections@straightSegment\endcsname{#6}{(0,#7)}{(0,#1-#7)}
73 \csname tikzSections@straightSegment\endcsname{#6}{(#7,#1)}{(#2-#7,#1)}
74
75 \csname tikzSections@roundArc\endcsname{#6}{(0,#7)}{180}{270}{#7}
76 \csname tikzSections@roundArc\endcsname{#6}{(0,#1-#7)}{180}{90}{#7}
77
78 \ifdim #3 pt > 0pt
79 \csname tikzSections@straightSegment\endcsname{#6}{(#2,#1-#7)}{(#2,#1-#3)}
80 \csname tikzSections@roundArc\endcsname{#6}{(#2-#7,#1)}{90}{0}{#7}
81 \fi
82
83 \ifdim #5 pt > 0pt
84 \csname tikzSections@straightSegment\endcsname{#6}{(#4,#7)}{(#4,#5)}
85 \csname tikzSections@roundArc\endcsname{#6}{(#4-#7,0)}{270}{360}{#7}
86 \fi
87 }
88
89 \newcommand{\csChannelOS}[7]{
90 \draw [line width=#6 mm, tikzSections/straight] (#7,0) -- (#4-#7,0) ;
91 \draw [line width=#6 mm, tikzSections/straight] (#7,#1) -- (#2-#7,#1) ;
92
93 \draw [line width=#6 mm, tikzSections/straight] (0,#7) -- (0,{#7 + 0.45*(#1-2*#7)}) ;
94
95 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + 0.45*(#1-2*#7)}) -- ({0.05*(#1-2*#7)},{#7 + 0.5*(#1-2*#7)}) ;
96 \draw [line width=#6 mm, tikzSections/straight] ({0.05*(#1-2*#7)},{#7 + 0.5*(#1-2*#7)}) -- (0,{#7 + 0.55*(#1-2*#7)}) ;
97 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + 0.55*(#1-2*#7)}) -- (0,#1-#7) ;
98
99 \draw [line width=#6 mm, tikzSections/round] (0,#7) arc (180:270:#7);
100 \draw [line width=#6 mm, tikzSections/round] (0,#1-#7) arc (180:90:#7);
101
102 \ifdim #3 pt > 0pt
103 \draw [line width=#6 mm, tikzSections/straight] (#2,#1-#7) -- (#2,#1-#3) ;
104 \draw [line width=#6 mm, tikzSections/round] (#2-#7,#1) arc (90:0:#7);
105 \fi
106
107 \ifdim #5 pt > 0pt
108 \draw [line width=#6 mm, tikzSections/straight] (#4,#7) -- (#4,#5) ;
109 \draw [line width=#6 mm, tikzSections/round] (#4-#7,0) arc (270:360:#7);
110 \fi
111 }
112
113
114 \newcommand{\csChannelTS}[7]{
115 \draw [line width=#6 mm, tikzSections/straight] (#7,0) -- (#4-#7,0) ;
116 \draw [line width=#6 mm, tikzSections/straight] (#7,#1) -- (#2-#7,#1) ;
117
118 \draw [line width=#6 mm, tikzSections/straight] (0,#7) -- (0,{#7 + 0.05*(#1-2*#7)}) ;
119 \draw [line width=#6 mm, tikzSections/straight] (0,#1-#7) -- (0,{#7 + 0.95*(#1-2*#7)}) ;
120
121 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + 0.05*(#1-2*#7)}) -- ({0.05*(#1-2*#7)},{#7 + 0.1*(#1-2*#7)}) ;
122 \draw [line width=#6 mm, tikzSections/straight] ({0.05*(#1-2*#7)},{#7 + 0.1*(#1-2*#7)}) -- (0,{#7 + 0.15*(#1-2*#7)}) ;
123 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + 0.15*(#1-2*#7)}) -- (0,{#7 + 0.85*(#1-2*#7)}) ;
124 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + 0.85*(#1-2*#7)}) -- ({0.05*(#1-2*#7)},{#7 + 0.9*(#1-2*#7)}) ;
125 \draw [line width=#6 mm, tikzSections/straight] ({0.05*(#1-2*#7)},{#7 + 0.9*(#1-2*#7)}) -- (0,{#7 + 0.95*(#1-2*#7)}) ;
126 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + 0.95*(#1-2*#7)}) -- (0,#1-2*#7) ;
127
128 \draw [line width=#6 mm, tikzSections/round] (0,#7) arc (180:270:#7);
129 \draw [line width=#6 mm, tikzSections/round] (0,#1-#7) arc (180:90:#7);
130
131 \ifdim #3 pt > 0pt
132 \draw [line width=#6 mm, tikzSections/straight] (#2,#1-#7) -- (#2,#1-#3) ;
133 \draw [line width=#6 mm, tikzSections/round] (#2-#7,#1) arc (90:0:#7);
134 \fi
135
136 \ifdim #5 pt > 0pt
137 \draw [line width=#6 mm, tikzSections/straight] (#4,#7) -- (#4,#5) ;
138 \draw [line width=#6 mm, tikzSections/round] (#4-#7,0) arc (270:360:#7);
139 \fi
140 }
141
142 \newcommand{\csChannelFS}[8]{
143 \draw [line width=#6 mm, tikzSections/straight] (#7,0) -- (#4-#7,0) ;
144 \draw [line width=#6 mm, tikzSections/straight] (#7,#1) -- (#2-#7,#1) ;
145
146 \draw [line width=#6 mm, tikzSections/straight] (0,#7) -- (0,{#7 + (#8-0.05)*(#1-2*#7)}) ;
147
148 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + (#8-0.05)*(#1-2*#7)}) -- ({0.05*(#1-2*#7)},{#7 + (#8)*(#1-2*#7)}) ;
149 \draw [line width=#6 mm, tikzSections/straight] ({0.05*(#1-2*#7)},{#7 + (#8)*(#1-2*#7)}) -- (0,{#7 + (#8+0.05)*(#1-2*#7)}) ;
150 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + (#8+0.05)*(#1-2*#7)}) -- (0,#1-#7) ;
151
152 \draw [line width=#6 mm, tikzSections/round] (0,#7) arc (180:270:#7);
153 \draw [line width=#6 mm, tikzSections/round] (0,#1-#7) arc (180:90:#7);
154
155 \ifdim #3 pt > 0pt
156 \draw [line width=#6 mm, tikzSections/straight] (#2,#1-#7) -- (#2,#1-#3) ;
157 \draw [line width=#6 mm, tikzSections/round] (#2-#7,#1) arc (90:0:#7);
158 \fi
159
160 \ifdim #5 pt > 0pt
161 \draw [line width=#6 mm, tikzSections/straight] (#4,#7) -- (#4,#5) ;
162 \draw [line width=#6 mm, tikzSections/round] (#4-#7,0) arc (270:360:#7);
163 \fi
164 }
165
166 \newcommand{\csChannelRS}[8]{
167 \draw [line width=#6 mm, tikzSections/straight] (#7,0) -- (#4-#7,0) ;
168 \draw [line width=#6 mm, tikzSections/straight] (#7,#1) -- (#2-#7,#1) ;
169
170 \draw [line width=#6 mm, tikzSections/straight] (0,#7) -- (0,{#7 + 0.05*(#1-2*#7)}) ;
171 \draw [line width=#6 mm, tikzSections/straight] (0,#1-#7) -- (0,{#7 + 0.95*(#1-2*#7)}) ;
172
173 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + 0.05*(#1-2*#7)}) -- ({0.05*(#1-2*#7)},{#7 + 0.1*(#1-2*#7)}) ;
174 \draw [line width=#6 mm, tikzSections/straight] ({0.05*(#1-2*#7)},{#7 + 0.1*(#1-2*#7)}) -- (0,{#7 + 0.15*(#1-2*#7)}) ;
175 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + 0.15*(#1-2*#7)}) -- (0,{#7 + (#8-0.05)*(#1-2*#7)}) ;
176
177 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + (#8-0.05)*(#1-2*#7)}) -- ({0.05*(#1-2*#7)},{#7 + (#8)*(#1-2*#7)}) ;
178 \draw [line width=#6 mm, tikzSections/straight] ({0.05*(#1-2*#7)},{#7 + (#8)*(#1-2*#7)}) -- (0,{#7 + (#8+0.05)*(#1-2*#7)}) ;
179 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + (#8+0.05)*(#1-2*#7)}) -- (0,{#7 + 0.85*(#1-2*#7)}) ;
180
181 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + 0.85*(#1-2*#7)}) -- ({0.05*(#1-2*#7)},{#7 + 0.9*(#1-2*#7)}) ;
182 \draw [line width=#6 mm, tikzSections/straight] ({0.05*(#1-2*#7)},{#7 + 0.9*(#1-2*#7)}) -- (0,{#7 + 0.95*(#1-2*#7)}) ;
183 \draw [line width=#6 mm, tikzSections/straight] (0,{#7 + 0.95*(#1-2*#7)}) -- (0,#1-2*#7) ;
184
185 \draw [line width=#6 mm, tikzSections/round] (0,#7) arc (180:270:#7);
186 \draw [line width=#6 mm, tikzSections/round] (0,#1-#7) arc (180:90:#7);
187
188 \ifdim #3 pt > 0pt
189 \draw [line width=#6 mm, tikzSections/straight] (#2,#1-#7) -- (#2,#1-#3) ;
190 \draw [line width=#6 mm, tikzSections/round] (#2-#7,#1) arc (90:0:#7);
191 \fi
192
193 \ifdim #5 pt > 0pt
194 \draw [line width=#6 mm, tikzSections/straight] (#4,#7) -- (#4,#5) ;
195 \draw [line width=#6 mm, tikzSections/round] (#4-#7,0) arc (270:360:#7);
196 \fi
197 }
198
199 %
200 % ===== ===== Box
201 %
202
203 \newcommand{\csBox}[4]{
204 \csname tikzSections@straightSegment\endcsname{#3}{(#4,0)}{(#2-#4,0)}
205 \csname tikzSections@straightSegment\endcsname{#3}{(#4,#1)}{(#2-#4,#1)}
206 \csname tikzSections@straightSegment\endcsname{#3}{(0,#4)}{(0,#1-#4)}
207 \csname tikzSections@straightSegment\endcsname{#3}{(#2,#4)}{(#2,#1-#4)}
208
209 \csname tikzSections@roundArc\endcsname{#3}{(0,#4)}{180}{270}{#4}
210 \csname tikzSections@roundArc\endcsname{#3}{(0,#1-#4)}{180}{90}{#4}
211
212 \csname tikzSections@roundArc\endcsname{#3}{(#2-#4,0)}{270}{360}{#4}
213 \csname tikzSections@roundArc\endcsname{#3}{(#2-#4,#1)}{90}{0}{#4}
214 }
215
216 %
217 % ===== ===== Zee
218 %
219
220 \newcommand{\csZee}[7]{
221 \csname tikzSections@straightSegment\endcsname{#6}{(0,#7)}{(0,#1-#7)}
222 \csname tikzSections@straightSegment\endcsname{#6}{(#7,#1)}{(#2-#7,#1)}
223 \csname tikzSections@straightSegment\endcsname{#6}{(-#7,0)}{(#7-#4,0)}
224
225 \csname tikzSections@roundArc\endcsname{#6}{(0,#1-#7)}{180}{90}{#7}
226 \csname tikzSections@roundArc\endcsname{#6}{(0,#7)}{0}{-90}{#7}
227
228 \ifdim #3 pt > 0pt
229 \csname tikzSections@straightSegment\endcsname{#6}{(#2,#1-#7)}{(#2,#1-#3)}
230 \csname tikzSections@roundArc\endcsname{#6}{(#2-#7,#1)}{90}{0}{#7}
231 \fi
232
233 \ifdim #5 pt > 0pt
234 \csname tikzSections@straightSegment\endcsname{#6}{(-#4,#7)}{(-#4,#5)}
235 \csname tikzSections@roundArc\endcsname{#6}{(#7-#4,0)}{270}{180}{#7}
236 \fi
237 }
238
239 %
240 % ===== ===== L
241 %
242
243 \newcommand{\csL}[4]{
244 \csname tikzSections@straightSegment\endcsname{#3}{(0,#4)}{(0,#1)}
245 \csname tikzSections@straightSegment\endcsname{#3}{(#4,0)}{(#2,0)}
246
247 \csname tikzSections@roundArc\endcsname{#3}{(0,#4)}{180}{270}{#4}
248
249 }
250
251 %
252 % ===== ===== Tube
253 %
254 \newcommand{\csTube}[2]{
255 \csname tikzSections@roundArc\endcsname{#2}{(0,0)}{0}{360}{#1}
256 }
257
258 %
259 % ===== ===== CFS public wrappers and additional sections
260 %
261
262 \newcommand{\csCFSChannel}[4]{
263 \csCFSChannelGeneral{#1}{#2}{0}{#2}{0}{#3}{#4}
264 }
265
266 \newcommand{\csCFSLippedChannel}[5]{
267 \csCFSChannelGeneral{#1}{#2}{#3}{#2}{#3}{#4}{#5}
268 }
269
270 \newcommand{\csCFSChannelGeneral}[7]{
271 \csChannel{#1}{#2}{#3}{#4}{#5}{#6}{#7}
272 }
273
274 \newcommand{\csCFSEdgeStiffenedChannel}[5]{
275 \csCFSLippedChannel{#1}{#2}{#3}{#4}{#5}
276 }
277
278 \newcommand{\csCFSChannelWithOneStiffener}[8]{
279 \csChannelFS{#1}{#2}{#3}{#4}{#5}{#6}{#7}{#8}
280 }
281
282 \newcommand{\csCFSChannelWithTwoStiffeners}[7]{
283 \csChannelTS{#1}{#2}{#3}{#4}{#5}{#6}{#7}
284 }
285
286 \newcommand{\csCFSChannelWithThreeStiffeners}[8]{
287 \csChannelRS{#1}{#2}{#3}{#4}{#5}{#6}{#7}{#8}
288 }
289
290 \newcommand{\csCFSZee}[4]{
291 \csCFSZeeGeneral{#1}{#2}{0}{#2}{0}{#3}{#4}
292 }
293
294 \newcommand{\csCFSLippedZee}[5]{
295 \csCFSZeeGeneral{#1}{#2}{#3}{#2}{#3}{#4}{#5}
296 }
297
298 \newcommand{\csCFSZeeGeneral}[7]{
299 \csZee{#1}{#2}{#3}{#4}{#5}{#6}{#7}
300 }
301
302 \newcommand{\csCFSSigma}[7]{
303 \csChannelTS{#1}{#2}{#3}{#4}{#5}{#6}{#7}
304 }
305
306 \newcommand{\csCFSHat}[6]{
307 \draw [line width=#5 mm, tikzSections/straight] (0,#6) -- (0,#1-#6) ;
308 \draw [line width=#5 mm, tikzSections/straight] (0,#1) -- (#2,#1) ;
309 \draw [line width=#5 mm, tikzSections/straight] (#2,#1-#6) -- (#2,#6) ;
310 \draw [line width=#5 mm, tikzSections/straight] (#2+#6,0) -- (#2+#3-#6,0) ;
311 \draw [line width=#5 mm, tikzSections/straight] (#2+#3,#6) -- (#2+#3,#1-#6) ;
312 \draw [line width=#5 mm, tikzSections/straight] (#2+#3,#1) -- (#2+#3+#4,#1) ;
313
314 \draw [line width=#5 mm, tikzSections/round] (0,#1-#6) arc (180:90:#6);
315 \draw [line width=#5 mm, tikzSections/round] (#2,#1-#6) arc (0:90:#6);
316 \draw [line width=#5 mm, tikzSections/round] (#2,#6) arc (180:270:#6);
317 \draw [line width=#5 mm, tikzSections/round] (#2+#3,#6) arc (0:-90:#6);
318 \draw [line width=#5 mm, tikzSections/round] (#2+#3,#1-#6) arc (180:90:#6);
319 }
320
321 \newcommand{\csCFSAngle}[4]{
322 \csL{#1}{#2}{#3}{#4}
323 }
324
325 \newcommand{\csCFSLippedAngle}[5]{
326 \draw [line width=#3 mm, tikzSections/straight] (0,#4) -- (0,#1) ;
327 \draw [line width=#3 mm, tikzSections/straight] (#4,0) -- (#2-#4,0) ;
328 \draw [line width=#3 mm, tikzSections/straight] (#2,#4) -- (#2,#5) ;
329
330 \draw [line width=#3 mm, tikzSections/round] (0,#4) arc (180:270:#4);
331 \draw [line width=#3 mm, tikzSections/round] (#2-#4,0) arc (270:360:#4);
332 }
333
334 \newcommand{\csCFSBox}[4]{
335 \csBox{#1}{#2}{#3}{#4}
336 }
337
338 \newcommand{\csCFSRHS}[4]{
339 \csBox{#1}{#2}{#3}{#4}
340 }
341
342 \newcommand{\csCFSSHS}[3]{
343 \csBox{#1}{#1}{#2}{#3}
344 }
345
346 \newcommand{\csCFSCHS}[2]{
347 \csTube{#1}{#2}
348 }
349
350 \newcommand{\csCFSFoldedPlate}[2]{
351 \def\points{#1}
352 \foreach \p [count=\i,remember=\p as \lastp] in \points{
353 \ifnum\i>1\relax
354 \draw [line width=#2 mm, tikzSections/straight] \lastp -- \p;
355 \fi
356 }
357 }
358
359 %
360 % ===== ===== Hot-rolled steel sections
361 %
362
363 %
364 % ===== ===== Welded I
365 %
366 \newcommand{\csWI}[6]{
367 \draw [line width=#2 mm, tikzSections/straight] (0,-0.5*#1) -- (0,0.5*#1);
368 \draw [line width=#4 mm, tikzSections/round] (-0.5*#3,-0.5*#1) -- (0.5*#3,-0.5*#1);
369 \draw [line width=#6 mm, tikzSections/round] (-0.5*#5,0.5*#1) -- (0.5*#5,0.5*#1);
370 }
371
372 %
373 % ===== ===== Universal beams and columns
374 %
375 \newcommand{\csUBC}[5]{
376 \draw [line width=1 mm, tikzSections/straight] (0,0) -- (#2,0);
377 \draw [line width=1 mm, tikzSections/straight] (0,#1) -- (#2,#1);
378
379 \draw [line width=1 mm, tikzSections/straight] (0,#3) -- (0.5*#2-0.5*#4-#5,#3);
380 \draw [line width=1 mm, tikzSections/straight] (0.5*#2+0.5*#4+#5,#3) -- (#2,#3);
381
382 \draw [line width=1 mm, tikzSections/straight] (0,#1-#3) -- (0.5*#2-0.5*#4-#5,#1-#3);
383 \draw [line width=1 mm, tikzSections/straight] (0.5*#2+0.5*#4+#5,#1-#3) -- (#2,#1-#3);
384
385 \draw [line width=1 mm, tikzSections/straight] (0.5*#2-0.5*#4,#3+#5) -- (0.5*#2-0.5*#4,{#1 - (#3+#5)});
386 \draw [line width=1 mm, tikzSections/straight] (0.5*#2+0.5*#4,#3+#5) -- (0.5*#2+0.5*#4,{#1 - (#3+#5)});
387
388 \draw [line width=1 mm, tikzSections/round] (0.5*#2-0.5*#4-#5,#3) arc (270:360:#5);
389 \draw [line width=1 mm, tikzSections/round] (0.5*#2+0.5*#4+#5,#3) arc (270:180:#5);
390
391 \draw [line width=1 mm, tikzSections/round] (0.5*#2-0.5*#4-#5,#1-#3) arc (90:0:#5);
392 \draw [line width=1 mm, tikzSections/round] (0.5*#2+0.5*#4+#5,#1-#3) arc (90:180:#5);
393
394 \draw [line width=1 mm, tikzSections/straight] (0,0) -- (0,#3);
395 \draw [line width=1 mm, tikzSections/straight] (#2,0) -- (#2,#3);
396
397 \draw [line width=1 mm, tikzSections/straight] (0,#1-#3) -- (0,#1);
398 \draw [line width=1 mm, tikzSections/straight] (#2,#1-#3) -- (#2,#1);
399 }
400
401 %
402 % ===== ===== Tees cut from universal beams and columns
403 %
404 \newcommand{\csTU}[5]{
405 \draw [line width=1 mm, tikzSections/straight] (0,#1) -- (#2,#1);
406
407 \draw [line width=1 mm, tikzSections/straight] (0.5*#2-0.5*#4,0) -- (0.5*#2+0.5*#4,0);
408
409 \draw [line width=1 mm, tikzSections/straight] (0,#1-#3) -- (0.5*#2-0.5*#4-#5,#1-#3);
410 \draw [line width=1 mm, tikzSections/straight] (0.5*#2+0.5*#4+#5,#1-#3) -- (#2,#1-#3);
411
412 \draw [line width=1 mm, tikzSections/straight] (0.5*#2-0.5*#4,0) -- (0.5*#2-0.5*#4,{#1 - (#3+#5)});
413 \draw [line width=1 mm, tikzSections/straight] (0.5*#2+0.5*#4,0) -- (0.5*#2+0.5*#4,{#1 - (#3+#5)});
414
415 \draw [line width=1 mm, tikzSections/round] (0.5*#2-0.5*#4-#5,#1-#3) arc (90:0:#5);
416 \draw [line width=1 mm, tikzSections/round] (0.5*#2+0.5*#4+#5,#1-#3) arc (90:180:#5);
417
418 \draw [line width=1 mm, tikzSections/straight] (0,#1-#3) -- (0,#1);
419 \draw [line width=1 mm, tikzSections/straight] (#2,#1-#3) -- (#2,#1);
420 }
421
422 %
423 % ===== ===== HRS Channels
424 %
425 \newcommand{\csHCH}[5]{
426 \draw [line width=1 mm, tikzSections/straight] (0,0) -- (0,#1);
427
428 \draw [line width=1 mm, tikzSections/straight] (0,0) -- (#2,0);
429 \draw [line width=1 mm, tikzSections/straight] (0,#1) -- (#2,#1);
430
431 \draw [line width=1 mm, tikzSections/straight] (#4+#5,#3) -- (#2,#3);
432
433 \draw [line width=1 mm, tikzSections/straight] (#4+#5,#1-#3) -- (#2,#1-#3);
434
435 \draw [line width=1 mm, tikzSections/straight] (#4,#3+#5) -- (#4,{#1 - (#3+#5)});
436
437 \draw [line width=1 mm, tikzSections/round] (#4+#5,#3) arc (270:180:#5);
438
439 \draw [line width=1 mm, tikzSections/round] (#4+#5,#1-#3) arc (90:180:#5);
440
441 \draw [line width=1 mm, tikzSections/straight] (#2,0) -- (#2,#3);
442
443 \draw [line width=1 mm, tikzSections/straight] (#2,#1-#3) -- (#2,#1);
444 }
445
446 %
447 % ===== ===== HRS Angles
448 %
449 \newcommand{\csEA}[5]{
450 \draw [line width=1 mm, tikzSections/straight] (0,0) -- (0,#1);
451
452 \draw [line width=1 mm, tikzSections/straight] (0,0) -- (#2,0);
453 \draw [line width=1 mm, tikzSections/straight] (0,#1) -- (#4,#1);
454
455 \draw [line width=1 mm, tikzSections/straight] (#4+#5,#3) -- (#2,#3);
456
457 \draw [line width=1 mm, tikzSections/straight] (#4,#3+#5) -- (#4,#1);
458
459 \draw [line width=1 mm, tikzSections/round] (#4+#5,#3) arc (270:180:#5);
460
461
462 \draw [line width=1 mm, tikzSections/straight] (#2,0) -- (#2,#3);
463
464 }
465
466 %
467 % ===== ===== HRS public wrappers and additional sections
468 %
469
470 \newcommand{\csHRSUniversalBeam}[5]{
471 \csUBC{#1}{#2}{#3}{#4}{#5}
472 }
473
474 \newcommand{\csHRSUniversalColumn}[5]{
475 \csUBC{#1}{#2}{#3}{#4}{#5}
476 }
477
478 \newcommand{\csHRSISection}[5]{
479 \csUBC{#1}{#2}{#3}{#4}{#5}
480 }
481
482 \newcommand{\csHRSWeldedI}[6]{
483 \csWI{#1}{#2}{#3}{#4}{#5}{#6}
484 }
485
486 \newcommand{\csHRSTee}[5]{
487 \csTU{#1}{#2}{#3}{#4}{#5}
488 }
489
490 \newcommand{\csHRSChannel}[5]{
491 \csHCH{#1}{#2}{#3}{#4}{#5}
492 }
493
494 \newcommand{\csHRSEqualAngle}[3]{
495 \csEA{#1}{#1}{#2}{#2}{#3}
496 }
497
498 \newcommand{\csHRSUnequalAngle}[4]{
499 \csEA{#1}{#2}{#3}{#3}{#4}
500 }
501
502 \newcommand{\csHRSPlate}[3]{
503 \draw [tikzSections/straight, line width=1 mm] (0,0) rectangle (#1,#2);
504 \ifdim #3 pt > 0pt
505 \draw [tikzSections/hidden, line width=#3 mm] (0,0) -- (#1,0);
506 \fi
507 }
508
509 \newcommand{\csHRSFlatBar}[3]{
510 \csHRSPlate{#1}{#2}{#3}
511 }
512
513 \newcommand{\csHRSRoundBar}[2]{
514 \draw [tikzSections/round, line width=#2 mm] (0,0) circle [radius=#1];
515 }
516
517 \newcommand{\csHRSCHS}[2]{
518 \csTube{#1}{#2}
519 }
520
521 \newcommand{\csHRSRHS}[4]{
522 \csBox{#1}{#2}{#3}{#4}
523 }
524
525 \newcommand{\csHRSSHS}[3]{
526 \csBox{#1}{#1}{#2}{#3}
527 }
528
529 %
530 % ===== ===== Key-value public API
531 %
532
533 \makeatletter
534 \newif\iftikzSections@filled
535 \newif\iftikzSections@centerline
536 \newif\iftikzSections@dimensions
537 \newif\iftikzSections@monochrome
538 \newif\iftikzSections@tie
539 \newif\iftikzSections@topFlangeSet
540 \newif\iftikzSections@bottomFlangeSet
541 \newif\iftikzSections@topLipSet
542 \newif\iftikzSections@bottomLipSet
543 \newif\iftikzSections@labelXSet
544 \newif\iftikzSections@labelYSet
545
546 \pgfkeys{
547 /tikzSections/section/.is family,
548 /tikzSections/section,
549 depth/.store in=\tikzSections@depth,
550 height/.store in=\tikzSections@depth,
551 width/.store in=\tikzSections@width,
552 diameter/.store in=\tikzSections@width,
553 flange/.store in=\tikzSections@flange,
554 top flange/.code={\def\tikzSections@topFlange{#1}\tikzSections@topFlangeSettrue},
555 bottom flange/.code={\def\tikzSections@bottomFlange{#1}\tikzSections@bottomFlangeSettrue},
556 left flange/.store in=\tikzSections@leftFlange,
557 right flange/.store in=\tikzSections@rightFlange,
558 lip/.store in=\tikzSections@lip,
559 top lip/.code={\def\tikzSections@topLip{#1}\tikzSections@topLipSettrue},
560 bottom lip/.code={\def\tikzSections@bottomLip{#1}\tikzSections@bottomLipSettrue},
561 thickness/.store in=\tikzSections@thickness,
562 radius/.store in=\tikzSections@radius,
563 inside radius/.store in=\tikzSections@radius,
564 bend radius/.store in=\tikzSections@radius,
565 root radius/.store in=\tikzSections@radius,
566 position/.store in=\tikzSections@position,
567 stiffener position/.store in=\tikzSections@position,
568 leg/.store in=\tikzSections@leg,
569 vertical leg/.store in=\tikzSections@verticalLeg,
570 horizontal leg/.store in=\tikzSections@horizontalLeg,
571 web depth/.store in=\tikzSections@webDepth,
572 web thickness/.store in=\tikzSections@webThickness,
573 flange thickness/.store in=\tikzSections@flangeThickness,
574 top flange width/.store in=\tikzSections@topFlangeWidth,
575 top flange thickness/.store in=\tikzSections@topFlangeThickness,
576 bottom flange width/.store in=\tikzSections@bottomFlangeWidth,
577 bottom flange thickness/.store in=\tikzSections@bottomFlangeThickness,
578 reference line width/.store in=\tikzSections@referenceLineWidth,
579 line width/.store in=\tikzSections@lineWidth,
580 cover/.store in=\tikzSections@cover,
581 bar diameter/.store in=\tikzSections@barDiameter,
582 top bars/.store in=\tikzSections@topBars,
583 bottom bars/.store in=\tikzSections@bottomBars,
584 left bars/.store in=\tikzSections@leftBars,
585 right bars/.store in=\tikzSections@rightBars,
586 top layers/.store in=\tikzSections@topLayers,
587 bottom layers/.store in=\tikzSections@bottomLayers,
588 side layers/.store in=\tikzSections@sideLayers,
589 layer spacing/.store in=\tikzSections@layerSpacing,
590 perimeter bars/.store in=\tikzSections@perimeterBars,
591 label/.store in=\tikzSections@label,
592 label x/.code={\def\tikzSections@labelX{#1}\tikzSections@labelXSettrue},
593 label y/.code={\def\tikzSections@labelY{#1}\tikzSections@labelYSettrue},
594 mode/.store in=\tikzSections@mode,
595 simplified/.style={mode=simplified},
596 detailed/.style={mode=detailed},
597 filled/.is if=tikzSections@filled,
598 centerline/.is if=tikzSections@centerline,
599 dimensions/.is if=tikzSections@dimensions,
600 monochrome/.is if=tikzSections@monochrome,
601 tie/.is if=tikzSections@tie,
602 at/.style args={(#1,#2)}{x=#1,y=#2},
603 shift/.style args={(#1,#2)}{x=#1,y=#2},
604 scale/.store in=\tikzSections@scale,
605 xscale/.store in=\tikzSections@xScale,
606 yscale/.store in=\tikzSections@yScale,
607 rotate/.store in=\tikzSections@rotate,
608 x/.store in=\tikzSections@x,
609 y/.store in=\tikzSections@y
610 }
611
612 \newcommand{\tikzSections@setDefaults}{%
613 \pgfkeys{/tikzSections/section,
614 depth=245,
615 width=75,
616 flange=75,
617 top flange=75,
618 bottom flange=75,
619 left flange=35,
620 right flange=35,
621 lip=0,
622 top lip=0,
623 bottom lip=0,
624 thickness=2.5,
625 radius=5,
626 position=0.5,
627 leg=60,
628 vertical leg=60,
629 horizontal leg=40,
630 web depth=95,
631 web thickness=1,
632 flange thickness=2,
633 top flange width=35,
634 top flange thickness=2,
635 bottom flange width=35,
636 bottom flange thickness=2,
637 reference line width=0,
638 line width=1,
639 cover=40,
640 bar diameter=16,
641 top bars=2,
642 bottom bars=2,
643 left bars=0,
644 right bars=0,
645 top layers=1,
646 bottom layers=1,
647 side layers=1,
648 layer spacing=25,
649 perimeter bars=8,
650 label=,
651 label x=0,
652 label y=0,
653 mode=simplified,
654 filled=false,
655 centerline=false,
656 dimensions=false,
657 monochrome=false,
658 tie=true,
659 scale=1,
660 xscale=1,
661 yscale=1,
662 rotate=0,
663 x=0,
664 y=0}%
665 }
666
667 \newcommand{\tikzSections@applyKeys}[1]{%
668 \tikzSections@setDefaults
669 \tikzSections@topFlangeSetfalse
670 \tikzSections@bottomFlangeSetfalse
671 \tikzSections@topLipSetfalse
672 \tikzSections@bottomLipSetfalse
673 \tikzSections@labelXSetfalse
674 \tikzSections@labelYSetfalse
675 \pgfkeys{/tikzSections/section,#1}%
676 }
677
678 \def\tikzSections@detailedMode{detailed}
679
680 \newcommand{\tikzSections@resolveCFSFlangesAndLips}{%
681 \ifx\tikzSections@mode\tikzSections@detailedMode
682 \iftikzSections@topFlangeSet\else
683 \let\tikzSections@topFlange\tikzSections@flange
684 \fi
685 \iftikzSections@bottomFlangeSet\else
686 \let\tikzSections@bottomFlange\tikzSections@flange
687 \fi
688 \iftikzSections@topLipSet\else
689 \let\tikzSections@topLip\tikzSections@lip
690 \fi
691 \iftikzSections@bottomLipSet\else
692 \let\tikzSections@bottomLip\tikzSections@lip
693 \fi
694 \else
695 \let\tikzSections@topFlange\tikzSections@flange
696 \let\tikzSections@bottomFlange\tikzSections@flange
697 \let\tikzSections@topLip\tikzSections@lip
698 \let\tikzSections@bottomLip\tikzSections@lip
699 \fi
700 }
701
702 \newcommand{\tikzSections@cfsPostDraw}[1]{%
703 \pgfmathsetmacro{\tikzSections@cfsWidth}{max(\tikzSections@topFlange,\tikzSections@bottomFlange)}%
704 \tikzSections@postDraw{#1}{\tikzSections@cfsWidth}%
705 }
706
707 \newcommand{\tikzSections@cfsChannelPostDraw}[1]{%
708 \pgfmathsetmacro{\tikzSections@cfsWidth}{max(\tikzSections@topFlange,\tikzSections@bottomFlange)}%
709 \tikzSections@postDrawBase{#1}{\tikzSections@cfsWidth}%
710 \iftikzSections@dimensions
711 \tikzSections@cfsChannelCallouts{#1}%
712 \fi
713 \tikzSections@postDrawLabelAt{#1}{\tikzSections@cfsWidth}%
714 }
715
716 \newcommand{\tikzSections@cfsZeePostDraw}[1]{%
717 \pgfmathsetmacro{\tikzSections@cfsWidth}{max(\tikzSections@topFlange,\tikzSections@bottomFlange)}%
718 \tikzSections@postDrawBase{#1}{\tikzSections@cfsWidth}%
719 \iftikzSections@dimensions
720 \tikzSections@cfsZeeCallouts{#1}%
721 \fi
722 \tikzSections@postDrawLabelAt{#1}{\tikzSections@cfsWidth}%
723 }
724
725 \newcommand{\tikzSections@scopeBegin}{%
726 \scope[shift={({\tikzSections@x},{\tikzSections@y})}, scale=\tikzSections@scale, xscale=\tikzSections@xScale, yscale=\tikzSections@yScale, rotate=\tikzSections@rotate]%
727 \iftikzSections@monochrome
728 \tikzset{
729 tikzSections/straight/.style={tikzSections/default, black},
730 tikzSections/round/.style={tikzSections/default, black}
731 }%
732 \fi
733 }
734
735 \newcommand{\tikzSections@scopeEnd}{%
736 \endscope
737 }
738
739 \newcommand{\tikzSections@postDrawBase}[2]{%
740 \iftikzSections@centerline
741 \draw [tikzSections/centerline, line width=0.2 mm] (-0.05*#2,0.5*#1) -- (1.05*#2,0.5*#1);
742 \draw [tikzSections/centerline, line width=0.2 mm] (0.5*#2,-0.05*#1) -- (0.5*#2,1.05*#1);
743 \fi
744 }
745
746 \newcommand{\tikzSections@postDrawDimensions}[2]{%
747 \iftikzSections@dimensions
748 \draw [tikzSections/dimension, line width=0.15 mm] (0,-0.1*#1) -- (#2,-0.1*#1);
749 \draw [tikzSections/dimension, line width=0.15 mm] (-0.1*#2,0) -- (-0.1*#2,#1);
750 \fi
751 }
752
753 \newcommand{\tikzSections@postDrawLabel}{%
754 \ifx\tikzSections@label\@empty
755 \else
756 \node [tikzSections/label] at (\tikzSections@labelX,\tikzSections@labelY) {\tikzSections@label};
757 \fi
758 }
759
760 \newcommand{\tikzSections@postDrawLabelAt}[2]{%
761 \ifx\tikzSections@label\@empty
762 \else
763 \iftikzSections@labelXSet
764 \iftikzSections@labelYSet
765 \node [tikzSections/label] at (\tikzSections@labelX,\tikzSections@labelY) {\tikzSections@label};
766 \else
767 \node [tikzSections/label, anchor=south west] at (-0.55*#2,1.06*#1) {\tikzSections@label\ (scale \tikzSections@scale)};
768 \fi
769 \else
770 \node [tikzSections/label, anchor=south west] at (-0.55*#2,1.06*#1) {\tikzSections@label\ (scale \tikzSections@scale)};
771 \fi
772 \fi
773 }
774
775 \newcommand{\tikzSections@postDraw}[2]{%
776 \tikzSections@postDrawBase{#1}{#2}%
777 \tikzSections@postDrawDimensions{#1}{#2}%
778 \tikzSections@postDrawLabelAt{#1}{#2}%
779 }
780
781 \newcommand{\tikzSections@cfsDimensionLegendAnchor}[1]{%
782 ({1.20*\tikzSections@cfsWidth},{0.55*#1})%
783 }
784
785 \newcommand{\tikzSections@cfsDimensionLegendRows}[1]{%
786 $b_w=#1\,\mathrm{mm}$\\%
787 \ifdim \tikzSections@topFlange pt = \tikzSections@bottomFlange pt
788 $b_f=\tikzSections@topFlange\,\mathrm{mm}$\\%
789 \else
790 $b_{ft}=\tikzSections@topFlange\,\mathrm{mm}$\\%
791 $b_{fb}=\tikzSections@bottomFlange\,\mathrm{mm}$\\%
792 \fi
793 \ifdim \tikzSections@topLip pt = \tikzSections@bottomLip pt
794 \ifdim \tikzSections@topLip pt > 0pt
795 $b_l=\tikzSections@topLip\,\mathrm{mm}$\\%
796 \fi
797 \else
798 \ifdim \tikzSections@topLip pt > 0pt
799 $b_{lt}=\tikzSections@topLip\,\mathrm{mm}$\\%
800 \fi
801 \ifdim \tikzSections@bottomLip pt > 0pt
802 $b_{lb}=\tikzSections@bottomLip\,\mathrm{mm}$\\%
803 \fi
804 \fi
805 $t=\tikzSections@thickness\,\mathrm{mm}$\\%
806 $r=\tikzSections@radius\,\mathrm{mm}$%
807 }
808
809 \newcommand{\tikzSections@cfsChannelCallouts}[1]{%
810 \tikzSections@dimensionLegend{\tikzSections@cfsDimensionLegendAnchor{#1}}{\tikzSections@cfsDimensionLegendRows{#1}}%
811 }
812
813 \newcommand{\tikzSections@cfsZeeCallouts}[1]{%
814 \tikzSections@dimensionLegend{\tikzSections@cfsDimensionLegendAnchor{#1}}{\tikzSections@cfsDimensionLegendRows{#1}}%
815 }
816
817 \newcommand{\tikzSections@fillRectangle}[2]{%
818 \iftikzSections@filled
819 \fill [tikzSections/fill] (0,0) rectangle (#2,#1);
820 \fi
821 }
822
823 \newcommand{\tikzSections@fillCircle}[1]{%
824 \iftikzSections@filled
825 \fill [tikzSections/fill] (#1,#1) circle [radius=#1];
826 \fi
827 }
828
829 \newcommand{\tikzSections@rebar}[2]{%
830 \filldraw [tikzSections/rebar] ({#1},{#2}) circle [radius={0.5*\tikzSections@barDiameter}];
831 }
832
833 \newcommand{\tikzSections@rectangularTieCover}{%
834 (\[email protected]*\tikzSections@barDiameter)%
835 }
836
837 \newcommand{\tikzSections@circularTieCover}{%
838 (\[email protected]*\tikzSections@barDiameter)%
839 }
840
841 \newcommand{\tikzSections@horizontalRebarLine}[4]{%
842 \ifnum#1>0
843 \ifnum#1=1
844 \tikzSections@rebar{0.5*(#2+#3)}{#4}%
845 \else
846 \foreach \tikzSections@barIndex in {1,...,#1}{%
847 \tikzSections@rebar{#2+(\tikzSections@barIndex-1)*(#3-#2)/(#1-1)}{#4}%
848 }%
849 \fi
850 \fi
851 }
852
853 \newcommand{\tikzSections@verticalRebarLine}[4]{%
854 \ifnum#1>0
855 \ifnum#1=1
856 \tikzSections@rebar{#2}{0.5*(#3+#4)}%
857 \else
858 \foreach \tikzSections@barIndex in {1,...,#1}{%
859 \tikzSections@rebar{#2}{#3+\tikzSections@barIndex*(#4-#3)/(#1+1)}%
860 }%
861 \fi
862 \fi
863 }
864
865 \newcommand{\TikZRCRectangular}[1][]{%
866 \tikzSections@applyKeys{#1}%
867 \tikzSections@scopeBegin
868 \path [tikzSections/concrete] (0,0) rectangle (\tikzSections@width,\tikzSections@depth);
869 \draw [tikzSections/concrete edge] (0,0) rectangle (\tikzSections@width,\tikzSections@depth);
870 \iftikzSections@tie
871 \draw [tikzSections/tie] ({\tikzSections@rectangularTieCover},{\tikzSections@rectangularTieCover}) rectangle ({\tikzSections@width-\tikzSections@rectangularTieCover},{\tikzSections@depth-\tikzSections@rectangularTieCover});
872 \fi
873 \ifnum\tikzSections@topBars>0
874 \foreach \tikzSections@layerIndex in {1,...,\tikzSections@topLayers}{%
875 \tikzSections@horizontalRebarLine{\tikzSections@topBars}{\tikzSections@cover}{\tikzSections@width-\tikzSections@cover}{\tikzSections@depth-\tikzSections@cover-(\tikzSections@layerIndex-1)*\tikzSections@layerSpacing}%
876 }%
877 \fi
878 \ifnum\tikzSections@bottomBars>0
879 \foreach \tikzSections@layerIndex in {1,...,\tikzSections@bottomLayers}{%
880 \tikzSections@horizontalRebarLine{\tikzSections@bottomBars}{\tikzSections@cover}{\tikzSections@width-\tikzSections@cover}{\tikzSections@cover+(\tikzSections@layerIndex-1)*\tikzSections@layerSpacing}%
881 }%
882 \fi
883 \ifnum\tikzSections@leftBars>0
884 \foreach \tikzSections@layerIndex in {1,...,\tikzSections@sideLayers}{%
885 \tikzSections@verticalRebarLine{\tikzSections@leftBars}{\tikzSections@cover+(\tikzSections@layerIndex-1)*\tikzSections@layerSpacing}{\tikzSections@cover}{\tikzSections@depth-\tikzSections@cover}%
886 }%
887 \fi
888 \ifnum\tikzSections@rightBars>0
889 \foreach \tikzSections@layerIndex in {1,...,\tikzSections@sideLayers}{%
890 \tikzSections@verticalRebarLine{\tikzSections@rightBars}{\tikzSections@width-\tikzSections@cover-(\tikzSections@layerIndex-1)*\tikzSections@layerSpacing}{\tikzSections@cover}{\tikzSections@depth-\tikzSections@cover}%
891 }%
892 \fi
893 \tikzSections@postDraw{\tikzSections@depth}{\tikzSections@width}%
894 \tikzSections@scopeEnd
895 }
896
897 \newcommand{\TikZRCCircular}[1][]{%
898 \tikzSections@applyKeys{#1}%
899 \tikzSections@scopeBegin
900 \path [tikzSections/concrete] (0.5*\tikzSections@width,0.5*\tikzSections@width) circle [radius=0.5*\tikzSections@width];
901 \draw [tikzSections/concrete edge] (0.5*\tikzSections@width,0.5*\tikzSections@width) circle [radius=0.5*\tikzSections@width];
902 \iftikzSections@tie
903 \draw [tikzSections/tie] (0.5*\tikzSections@width,0.5*\tikzSections@width) circle [radius=0.5*\tikzSections@width-\tikzSections@circularTieCover];
904 \fi
905 \ifnum\tikzSections@perimeterBars>0
906 \foreach \tikzSections@barIndex in {1,...,\tikzSections@perimeterBars}{%
907 \tikzSections@rebar{0.5*\tikzSections@width+(0.5*\tikzSections@width-\tikzSections@cover)*cos(360*(\tikzSections@barIndex-1)/\tikzSections@perimeterBars)}{0.5*\tikzSections@width+(0.5*\tikzSections@width-\tikzSections@cover)*sin(360*(\tikzSections@barIndex-1)/\tikzSections@perimeterBars)}%
908 }%
909 \fi
910 \tikzSections@postDraw{\tikzSections@width}{\tikzSections@width}%
911 \tikzSections@scopeEnd
912 }
913
914 \newcommand{\TikZSectionsSetup}[1]{%
915 \tikzset{#1}%
916 }
917
918 \newcommand{\TikZSectionsChannel}[1][]{%
919 \tikzSections@applyKeys{#1}%
920 \tikzSections@resolveCFSFlangesAndLips
921 \tikzSections@scopeBegin
922 \csCFSChannelGeneral{\tikzSections@depth}{\tikzSections@topFlange}{\tikzSections@topLip}{\tikzSections@bottomFlange}{\tikzSections@bottomLip}{\tikzSections@thickness}{\tikzSections@radius}%
923 \tikzSections@cfsChannelPostDraw{\tikzSections@depth}%
924 \tikzSections@scopeEnd
925 }
926
927 \newcommand{\TikZSectionsStiffenedChannel}[1][]{%
928 \tikzSections@applyKeys{#1}%
929 \tikzSections@resolveCFSFlangesAndLips
930 \tikzSections@scopeBegin
931 \csCFSChannelWithOneStiffener{\tikzSections@depth}{\tikzSections@topFlange}{\tikzSections@topLip}{\tikzSections@bottomFlange}{\tikzSections@bottomLip}{\tikzSections@thickness}{\tikzSections@radius}{\tikzSections@position}%
932 \tikzSections@cfsPostDraw{\tikzSections@depth}%
933 \tikzSections@scopeEnd
934 }
935
936 \newcommand{\TikZSectionsZee}[1][]{%
937 \tikzSections@applyKeys{#1}%
938 \tikzSections@resolveCFSFlangesAndLips
939 \tikzSections@scopeBegin
940 \csCFSZeeGeneral{\tikzSections@depth}{\tikzSections@topFlange}{\tikzSections@topLip}{\tikzSections@bottomFlange}{\tikzSections@bottomLip}{\tikzSections@thickness}{\tikzSections@radius}%
941 \tikzSections@cfsZeePostDraw{\tikzSections@depth}%
942 \tikzSections@scopeEnd
943 }
944
945 \newcommand{\TikZSectionsSigma}[1][]{%
946 \tikzSections@applyKeys{#1}%
947 \tikzSections@resolveCFSFlangesAndLips
948 \tikzSections@scopeBegin
949 \csCFSSigma{\tikzSections@depth}{\tikzSections@topFlange}{\tikzSections@topLip}{\tikzSections@bottomFlange}{\tikzSections@bottomLip}{\tikzSections@thickness}{\tikzSections@radius}%
950 \tikzSections@cfsPostDraw{\tikzSections@depth}%
951 \tikzSections@scopeEnd
952 }
953
954 \newcommand{\TikZSectionsHat}[1][]{%
955 \tikzSections@applyKeys{#1}%
956 \tikzSections@scopeBegin
957 \csCFSHat{\tikzSections@depth}{\tikzSections@leftFlange}{\tikzSections@width}{\tikzSections@rightFlange}{\tikzSections@thickness}{\tikzSections@radius}%
958 \tikzSections@postDraw{\tikzSections@depth}{\tikzSections@width}%
959 \tikzSections@scopeEnd
960 }
961
962 \newcommand{\TikZSectionsAngle}[1][]{%
963 \tikzSections@applyKeys{#1}%
964 \tikzSections@scopeBegin
965 \csCFSAngle{\tikzSections@verticalLeg}{\tikzSections@horizontalLeg}{\tikzSections@thickness}{\tikzSections@radius}%
966 \tikzSections@postDraw{\tikzSections@verticalLeg}{\tikzSections@horizontalLeg}%
967 \tikzSections@scopeEnd
968 }
969
970 \newcommand{\TikZSectionsLippedAngle}[1][]{%
971 \tikzSections@applyKeys{#1}%
972 \tikzSections@scopeBegin
973 \csCFSLippedAngle{\tikzSections@verticalLeg}{\tikzSections@horizontalLeg}{\tikzSections@thickness}{\tikzSections@radius}{\tikzSections@lip}%
974 \tikzSections@postDraw{\tikzSections@verticalLeg}{\tikzSections@horizontalLeg}%
975 \tikzSections@scopeEnd
976 }
977
978 \newcommand{\TikZSectionsRHS}[1][]{%
979 \tikzSections@applyKeys{#1}%
980 \tikzSections@scopeBegin
981 \tikzSections@fillRectangle{\tikzSections@depth}{\tikzSections@width}%
982 \csCFSRHS{\tikzSections@depth}{\tikzSections@width}{\tikzSections@thickness}{\tikzSections@radius}%
983 \tikzSections@postDraw{\tikzSections@depth}{\tikzSections@width}%
984 \tikzSections@scopeEnd
985 }
986
987 \newcommand{\TikZSectionsSHS}[1][]{%
988 \tikzSections@applyKeys{#1}%
989 \tikzSections@scopeBegin
990 \tikzSections@fillRectangle{\tikzSections@width}{\tikzSections@width}%
991 \csCFSSHS{\tikzSections@width}{\tikzSections@thickness}{\tikzSections@radius}%
992 \tikzSections@postDraw{\tikzSections@width}{\tikzSections@width}%
993 \tikzSections@scopeEnd
994 }
995
996 \newcommand{\TikZSectionsCHS}[1][]{%
997 \tikzSections@applyKeys{#1}%
998 \tikzSections@scopeBegin
999 \tikzSections@fillCircle{\tikzSections@radius}%
1000 \scope[shift={({\tikzSections@radius},{\tikzSections@radius})}]
1001 \csCFSCHS{\tikzSections@radius}{\tikzSections@thickness}%
1002 \endscope
1003 \tikzSections@postDraw{2*\tikzSections@radius}{2*\tikzSections@radius}%
1004 \tikzSections@scopeEnd
1005 }
1006
1007 \newcommand{\TikZSectionsUniversalBeam}[1][]{%
1008 \tikzSections@applyKeys{#1}%
1009 \tikzSections@scopeBegin
1010 \csHRSUniversalBeam{\tikzSections@depth}{\tikzSections@width}{\tikzSections@flangeThickness}{\tikzSections@webThickness}{\tikzSections@radius}%
1011 \tikzSections@postDraw{\tikzSections@depth}{\tikzSections@width}%
1012 \tikzSections@scopeEnd
1013 }
1014
1015 \newcommand{\TikZSectionsUniversalColumn}[1][]{%
1016 \tikzSections@applyKeys{#1}%
1017 \tikzSections@scopeBegin
1018 \csHRSUniversalColumn{\tikzSections@depth}{\tikzSections@width}{\tikzSections@flangeThickness}{\tikzSections@webThickness}{\tikzSections@radius}%
1019 \tikzSections@postDraw{\tikzSections@depth}{\tikzSections@width}%
1020 \tikzSections@scopeEnd
1021 }
1022
1023 \newcommand{\TikZSectionsWeldedI}[1][]{%
1024 \tikzSections@applyKeys{#1}%
1025 \tikzSections@scopeBegin
1026 \csHRSWeldedI{\tikzSections@webDepth}{\tikzSections@webThickness}{\tikzSections@bottomFlangeWidth}{\tikzSections@bottomFlangeThickness}{\tikzSections@topFlangeWidth}{\tikzSections@topFlangeThickness}%
1027 \tikzSections@postDraw{\tikzSections@webDepth}{\tikzSections@topFlangeWidth}%
1028 \tikzSections@scopeEnd
1029 }
1030
1031 \newcommand{\TikZSectionsTee}[1][]{%
1032 \tikzSections@applyKeys{#1}%
1033 \tikzSections@scopeBegin
1034 \csHRSTee{\tikzSections@depth}{\tikzSections@width}{\tikzSections@flangeThickness}{\tikzSections@webThickness}{\tikzSections@radius}%
1035 \tikzSections@postDraw{\tikzSections@depth}{\tikzSections@width}%
1036 \tikzSections@scopeEnd
1037 }
1038
1039 \newcommand{\TikZSectionsHRSChannel}[1][]{%
1040 \tikzSections@applyKeys{#1}%
1041 \tikzSections@scopeBegin
1042 \csHRSChannel{\tikzSections@depth}{\tikzSections@width}{\tikzSections@flangeThickness}{\tikzSections@webThickness}{\tikzSections@radius}%
1043 \tikzSections@postDraw{\tikzSections@depth}{\tikzSections@width}%
1044 \tikzSections@scopeEnd
1045 }
1046
1047 \newcommand{\TikZSectionsEqualAngle}[1][]{%
1048 \tikzSections@applyKeys{#1}%
1049 \tikzSections@scopeBegin
1050 \csHRSEqualAngle{\tikzSections@leg}{\tikzSections@thickness}{\tikzSections@radius}%
1051 \tikzSections@postDraw{\tikzSections@leg}{\tikzSections@leg}%
1052 \tikzSections@scopeEnd
1053 }
1054
1055 \newcommand{\TikZSectionsUnequalAngle}[1][]{%
1056 \tikzSections@applyKeys{#1}%
1057 \tikzSections@scopeBegin
1058 \csHRSUnequalAngle{\tikzSections@verticalLeg}{\tikzSections@horizontalLeg}{\tikzSections@thickness}{\tikzSections@radius}%
1059 \tikzSections@postDraw{\tikzSections@verticalLeg}{\tikzSections@horizontalLeg}%
1060 \tikzSections@scopeEnd
1061 }
1062
1063 \newcommand{\TikZSectionsPlate}[1][]{%
1064 \tikzSections@applyKeys{#1}%
1065 \tikzSections@scopeBegin
1066 \tikzSections@fillRectangle{\tikzSections@thickness}{\tikzSections@width}%
1067 \csHRSPlate{\tikzSections@width}{\tikzSections@thickness}{\tikzSections@referenceLineWidth}%
1068 \tikzSections@postDraw{\tikzSections@thickness}{\tikzSections@width}%
1069 \tikzSections@scopeEnd
1070 }
1071
1072 \newcommand{\TikZSectionsFlatBar}[1][]{%
1073 \tikzSections@applyKeys{#1}%
1074 \tikzSections@scopeBegin
1075 \tikzSections@fillRectangle{\tikzSections@thickness}{\tikzSections@width}%
1076 \csHRSFlatBar{\tikzSections@width}{\tikzSections@thickness}{\tikzSections@referenceLineWidth}%
1077 \tikzSections@postDraw{\tikzSections@thickness}{\tikzSections@width}%
1078 \tikzSections@scopeEnd
1079 }
1080
1081 \newcommand{\TikZSectionsRoundBar}[1][]{%
1082 \tikzSections@applyKeys{#1}%
1083 \tikzSections@scopeBegin
1084 \tikzSections@fillCircle{\tikzSections@radius}%
1085 \scope[shift={({\tikzSections@radius},{\tikzSections@radius})}]
1086 \csHRSRoundBar{\tikzSections@radius}{\tikzSections@lineWidth}%
1087 \endscope
1088 \tikzSections@postDraw{2*\tikzSections@radius}{2*\tikzSections@radius}%
1089 \tikzSections@scopeEnd
1090 }
1091
1092 \newcommand{\TikZSectionsHRSCHS}[1][]{%
1093 \tikzSections@applyKeys{#1}%
1094 \tikzSections@scopeBegin
1095 \tikzSections@fillCircle{\tikzSections@radius}%
1096 \scope[shift={({\tikzSections@radius},{\tikzSections@radius})}]
1097 \csHRSCHS{\tikzSections@radius}{\tikzSections@thickness}%
1098 \endscope
1099 \tikzSections@postDraw{2*\tikzSections@radius}{2*\tikzSections@radius}%
1100 \tikzSections@scopeEnd
1101 }
1102
1103 \newcommand{\TikZSectionsHRSRHS}[1][]{%
1104 \tikzSections@applyKeys{#1}%
1105 \tikzSections@scopeBegin
1106 \tikzSections@fillRectangle{\tikzSections@depth}{\tikzSections@width}%
1107 \csHRSRHS{\tikzSections@depth}{\tikzSections@width}{\tikzSections@thickness}{\tikzSections@radius}%
1108 \tikzSections@postDraw{\tikzSections@depth}{\tikzSections@width}%
1109 \tikzSections@scopeEnd
1110 }
1111
1112 \newcommand{\TikZSectionsHRSSHS}[1][]{%
1113 \tikzSections@applyKeys{#1}%
1114 \tikzSections@scopeBegin
1115 \tikzSections@fillRectangle{\tikzSections@width}{\tikzSections@width}%
1116 \csHRSSHS{\tikzSections@width}{\tikzSections@thickness}{\tikzSections@radius}%
1117 \tikzSections@postDraw{\tikzSections@width}{\tikzSections@width}%
1118 \tikzSections@scopeEnd
1119 }
1120 \makeatother
1121
1122
1123
1124 %
1125 % ===== ===== Generic sections
1126 %
1127
1128 \newcommand{\csARB}[2]{
1129 \def\points{#1}
1130 \foreach \p [count=\i,remember=\p as \lastp] in \points{
1131 \ifnum\i>1\relax
1132 \draw [line width=#2 mm, tikzSections/round] \lastp -- \p;
1133 \fi
1134 }
1135 }