({{, (RefLink[JoinForm, paclet:ref/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.}})

OpenersNotesSection(Spacer1)Details

The following types can be used in (RefLink[JoinForm, paclet:ref/JoinForm])[type]:

(RefLink[JoinForm, paclet:ref/JoinForm]) works in both 2D and 3D.

In 2D, the default is (RefLink[JoinForm, paclet:ref/JoinForm])[{"Miter",3.25}]. In 3D, the default is (RefLink[JoinForm, paclet:ref/JoinForm])["Round"].

(RefLink[JoinForm, paclet:ref/JoinForm])[{"Miter",1/(RefLink[Sin, paclet:ref/Sin])[θ/2]}] gives sharp corners for any join angle larger than θ.

(RefLink[JoinForm, paclet:ref/JoinForm]) can be used inside (RefLink[EdgeForm, paclet:ref/EdgeForm]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (6)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

A rounded line join:

Graphics[{JoinForm["Round"],Thickness[.2],Line[{{-1,-0.5},{0,0.5},{1,-0.5}}]},PlotRange->1.5]

A rounded tube join:

Graphics3D[{JoinForm["Round"],Tube[{{-1,-1,-1},{0,0,1},{1,1,-1}},0.2]}]

OpenersExampleSection1(Spacer1)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"}}]

Specify joining of tubes:

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 (RefLink[EdgeForm, paclet:ref/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"}}]

OpenersExampleSection3(Spacer1)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]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[CapForm, paclet:ref/CapForm])  ▪  (RefLink[EdgeForm, paclet:ref/EdgeForm])  ▪  (RefLink[Line, paclet:ref/Line])  ▪  (RefLink[Polygon, paclet:ref/Polygon])  ▪  (RefLink[Thickness, paclet:ref/Thickness])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Graphics Directives, paclet:guide/GraphicsDirectives])}})}})