CapForm
CapForm[type]
是一个图形基元,指定线、管和相关基元两端的形状.
范例
打开所有单元 关闭所有单元基本范例 (2)
范围 (3)
Table[Graphics[{CapForm[cap], Thickness[.2], Line[{{-1, -1}, {1, 1}}]}, PlotRange -> 1.5, PlotLabel -> cap], {cap, {"Butt", "Round", "Square"}}]Table[Graphics3D[{CapForm[cap], Thickness[.1], Line[{{-1, -1, -1}, {1, 1, 1}}]}, PlotRange -> 1.5, PlotLabel -> cap], {cap, {"Butt", "Round", "Square"}}]Table[Graphics[{CapForm[cap], Thickness[.2], Circle[{0, -1}, 1, {Pi / 6, 5Pi / 6}]}, PlotRange -> 1.5, PlotLabel -> cap], {cap, {"Butt", "Round", "Square"}}]Table[Graphics3D[{CapForm[cap], Tube[{{-1, -1, -1}, {1, 1, 1}}, 0.2]}, PlotRange -> 1.5, PlotLabel -> Row[{cap}]], {cap, {None, "Butt", "Round", "Square"}}]属性和关系 (1)
巧妙范例 (1)
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]]相关指南
-
▪
- 图形指令
文本
Wolfram Research (2008),CapForm,Wolfram 语言函数,https://reference.wolfram.com/language/ref/CapForm.html.
CMS
Wolfram 语言. 2008. "CapForm." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/CapForm.html.
APA
Wolfram 语言. (2008). CapForm. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/CapForm.html 年
BibTeX
@misc{reference.wolfram_2026_capform, author="Wolfram Research", title="{CapForm}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/CapForm.html}", note=[Accessed: 16-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_capform, organization={Wolfram Research}, title={CapForm}, year={2008}, url={https://reference.wolfram.com/language/ref/CapForm.html}, note=[Accessed: 16-September-2026]}