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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
Line Cap- and Join Styles
=========================
DXF
---
The line cap- and join style is not stored in the DXF entities itself!
BricsCAD does not support the ENDCAPS and JOINSTYLE settings and always
uses round caps and round join style.
CTB files define line cap- and join styles:
- END_STYLE_BUTT = 0
- END_STYLE_SQUARE = 1
- END_STYLE_ROUND = 2
- END_STYLE_DIAMOND = 3 ???
- END_STYLE_OBJECT = 4
- JOIN_STYLE_MITER = 0
- JOIN_STYLE_BEVEL = 1
- JOIN_STYLE_ROUND = 2
- JOIN_STYLE_DIAMOND = 3 ???
- JOIN_STYLE_OBJECT = 5
HEADER Section:
https://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-A85E8E67-27CD-4C59-BE61-4DC9FADBE74A
$ENDCAPS: Lineweight endcaps setting for **new** objects:
- 0 = None (butt)
- 1 = Round
- 2 = Angle ???
- 3 = Square
$JOINSTYLE: Lineweight joint setting for **new** objects:
- 0 = None
- 1 = Round
- 2 = Angle (bevel or miter?)
- 3 = Flat (bevel or miter?)
Matplotlib
----------
https://matplotlib.org/stable/api/_as_gen/matplotlib.lines.Line2D.html
https://matplotlib.org/stable/api/_enums_api.html#matplotlib._enums.CapStyle
dash_capstyle:
- 'butt'
- 'projecting' (square)
- 'round'
https://matplotlib.org/stable/api/_enums_api.html#matplotlib._enums.JoinStyle
dash_joinstyle:
- 'miter'
- 'round'
- 'bevel'
PyQt
----
https://doc-snapshots.qt.io/qt6-dev/qt.html#PenCapStyle-enum
Qt.PenCapStyle:
- Qt.FlatCap (butt)
- Qt.SquareCap
- Qt.RoundCap
https://doc-snapshots.qt.io/qt6-dev/qt.html#PenJoinStyle-enum
Qt.PenJoinStyle:
- Qt.MiterJoin: The outer edges of the lines are extended to meet at an angle,
and this area is filled.
- Qt.BevelJoin: The triangular notch between the two lines is filled.
- Qt.RoundJoin: A circular arc between the two lines is filled.
- Qt.SvgMiterJoin: A miter join corresponding to the definition of a miter
join in the SVG 1.2 Tiny specification.
SVG
---
https://www.w3.org/TR/SVG2/painting.html#StrokeLinecapProperty
stroke-linecap:
- 'butt'
- 'round'
- 'square'
https://www.w3.org/TR/SVG2/painting.html#StrokeLinejoinProperty
- 'miter'
- 'miter-clip'
- 'round'
- 'bevel'
- 'arcs'
|