Debian Codegraph @

notes/pages/Line Cap- and Join Styles.md

raw symbols SCIP
1 tags:: DXF-Internals
2
3 - The line cap- and join styles are not stored in the DXF entities itself!
4 - [[BricsCAD]] does not support the ENDCAPS and JOINSTYLE settings and always uses round caps and round join style.
5 - [[CTB]] files define line cap- and join styles:
6 - END_STYLE_BUTT = 0
7 - END_STYLE_SQUARE = 1
8 - END_STYLE_ROUND = 2
9 - END_STYLE_DIAMOND = 3 ???
10 - END_STYLE_OBJECT = 4
11 - JOIN_STYLE_MITER = 0
12 - JOIN_STYLE_BEVEL = 1
13 - JOIN_STYLE_ROUND = 2
14 - JOIN_STYLE_DIAMOND = 3 ???
15 - JOIN_STYLE_OBJECT = 5
16 - [[HEADER]] Section
17 - HEADER Var [[$ENDCAPS]]
18 - Lineweight endcaps setting for **new** objects:
19 - 0 = None (butt)
20 - 1 = Round
21 - 2 = Angle ???
22 - 3 = Square
23 - HEADER Var [[$JOINSTYLE]]
24 - Lineweight joint setting for **new** objects:
25 - 0 = None
26 - 1 = Round
27 - 2 = Angle (bevel or miter?)
28 - 3 = Flat (bevel or miter?)
29 -
30 - ## [[Matplotlib]]
31 - <https://matplotlib.org/stable/api/_as_gen/matplotlib.lines.Line2D.html>
32 - [CapStyle enum](https://matplotlib.org/stable/api/_enums_api.html#matplotlib._enums.CapStyle)
33 - ![ztc5ooil.bmp](../assets/ztc5ooil_1700071777137_0.bmp)
34 - [JoinStyle enum](https://matplotlib.org/stable/api/_enums_api.html#matplotlib._enums.JoinStyle)
35 - ![rsqp87hf.bmp](../assets/rsqp87hf_1700071950990_0.bmp){:height 408, :width 500}
36 -
37 - ## [[PySide]] and [[PyQt]]
38 - [Qt.PenCapStyle](https://doc-snapshots.qt.io/qt6-dev/qt.html#PenCapStyle-enum)
39 - `Qt.FlatCap (butt)`
40 - `Qt.SquareCap`
41 - `Qt.RoundCap`
42 - [Ot.PenJoinStyle](https://doc-snapshots.qt.io/qt6-dev/qt.html#PenJoinStyle-enum)
43 - `Qt.MiterJoin`
44 - The outer edges of the lines are extended to meet at an angle,
45 and this area is filled.
46 - `Qt.BevelJoin`
47 - The triangular notch between the two lines is filled.
48 - `Qt.RoundJoin`
49 - A circular arc between the two lines is filled.
50 - `Qt.SvgMiterJoin`
51 - A miter join corresponding to the definition of a miter join in the SVG 1.2 Tiny specification.
52 -
53 - ## [[SVG]]
54 - [StrokeLinecapProperty](https://www.w3.org/TR/SVG2/painting.html#StrokeLinecapProperty)
55 - `butt`
56 - `round`
57 - `square`
58 - [StrokeLinejoinProperty](https://www.w3.org/TR/SVG2/painting.html#StrokeLinejoinProperty)
59 - `miter`
60 - `miter-clip`
61 - `round`
62 - `bevel`
63 - `arcs`