CapForm

CapForm[type]

is a graphics primitive that specifies what type of caps should be used at the ends of lines, tubes, and related primitives.

Details

  • The following types can be used in CapForm[type]:
  • "Butt"truncate at the end point
    "Round"put a half-disk at the end point
    "Square"put a half-square at the end point
    Noneequivalent to "Butt"
  • CapForm works in both 2D and 3D.
  • In 2D, the default is CapForm["Square"]. In 3D, the default is CapForm["Round"].
  • CapForm applies to Line, Tube, Circle, and Arrow.
  • CapForm specifications are ignored where an arrowhead appears.
  • CapForm[None] leaves 3D shapes open at their end points.

Examples

open allclose all

Basic Examples  (2)

A rounded line cap:

A rounded tube cap:

Scope  (3)

2D and 3D line caps:

Specify caps of circular arcs:

Tube caps:

Properties & Relations  (1)

Dashing of any sort overrides the CapForm directive and effectively uses "Butt":

Specify the third argument to Dashing to set a cap form for all dashes:

Neat Examples  (1)

Different line cap and join forms:

Wolfram Research (2008), CapForm, Wolfram Language function, https://reference.wolfram.com/language/ref/CapForm.html.

Text

Wolfram Research (2008), CapForm, Wolfram Language function, https://reference.wolfram.com/language/ref/CapForm.html.

CMS

Wolfram Language. 2008. "CapForm." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CapForm.html.

APA

Wolfram Language. (2008). CapForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CapForm.html

BibTeX

@misc{reference.wolfram_2024_capform, author="Wolfram Research", title="{CapForm}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/CapForm.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_capform, organization={Wolfram Research}, title={CapForm}, year={2008}, url={https://reference.wolfram.com/language/ref/CapForm.html}, note=[Accessed: 21-November-2024 ]}