JoinForm[type]
is a graphics directive that specifies what type of joins should be used to connect segments of lines, tubes, edges, and related primitives.
JoinForm
JoinForm[type]
is a graphics directive that specifies what type of joins should be used to connect segments of lines, tubes, edges, and related primitives.
Details
- The following types can be used in JoinForm[type]:
-
"Bevel" truncate the corner "Miter" extend the corner toward a point {"Miter",d} extend by at most d times the line width "Round" cover the corner with a disk None equivalent to "Bevel" - JoinForm works in both 2D and 3D.
- In 2D, the default is JoinForm[{"Miter",3.25}]. In 3D, the default is JoinForm["Round"].
- JoinForm[{"Miter",1/Sin[θ/2]}] gives sharp corners for any join angle larger than θ.
- JoinForm can be used inside EdgeForm.
Examples
open all close allBasic Examples (2)
Scope (3)
Specify joining of line segments:
Table[Graphics[{JoinForm[j], Thickness[.2], Line[{{-1, -0.5}, {0, 0.5}, {1, -0.5}}]}, PlotRange -> 1.5, PlotLabel -> j], {j, {"Bevel", "Round", "Miter"}}]Table[Graphics3D[{JoinForm[j], Thickness[.1], Line[{{-1, -1, -1}, {0, 0, 1}, {1, 1, -1}}]}, PlotRange -> 1.5, PlotLabel -> j], {j, {"Bevel", "Round", "Miter"}}]Table[Graphics3D[{JoinForm[j], Tube[{{-1, -1, -1}, {0, 0, 1}, {1, 1, -1}}, 0.2]}, PlotRange -> 1.5, PlotLabel -> j], {j, {"Bevel", "Round", "Miter"}}]Use EdgeForm to control the joins of edge lines:
p2 = Polygon[{{-1, 0}, {0, Sqrt[3]}, {1, 0}}];Table[Graphics[{Pink, EdgeForm[{Thickness[0.05], JoinForm[j]}], p2}, PlotLabel -> j], {j, {"Bevel", "Round", "Miter"}}]Neat Examples (1)
Different line cap and join forms:
With[{points = {{0, 0.3}, {-0.5, 0}, {0.5, 0}, {0.3, 0.3}}}, Graphics[{Thickness[0.1], {Blue, CapForm["Square"], JoinForm["Miter"], Line[points]}, {Green, CapForm["Round"], JoinForm["Round"], Line[points]}, {Red, CapForm["Butt"], JoinForm["Bevel"], Line[points]}}, PlotRange -> 1]]Related Guides
History
Text
Wolfram Research (2008), JoinForm, Wolfram Language function, https://reference.wolfram.com/language/ref/JoinForm.html.
CMS
Wolfram Language. 2008. "JoinForm." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/JoinForm.html.
APA
Wolfram Language. (2008). JoinForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/JoinForm.html
BibTeX
@misc{reference.wolfram_2026_joinform, author="Wolfram Research", title="{JoinForm}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/JoinForm.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_joinform, organization={Wolfram Research}, title={JoinForm}, year={2008}, url={https://reference.wolfram.com/language/ref/JoinForm.html}, note=[Accessed: 12-June-2026]}