ReferenceAvailable
Capsule
Create a rounded-ended elongated solid.
Create a rounded-ended elongated solid.
Where to find it
Geometry workspace; System → Geometry
How to use it
Set the capsule dimensions and position, then inspect the end regions at a suitable zoom. Choose Build All Geometry to update Graphics.
Settings and initial values
| Setting | Initial value | Meaning |
|---|---|---|
| Origin | Center | Center uses the entered center coordinates. Corner currently adds Radius in x and y, and Cylinder length / 2 + Radius in z in global coordinates. These offsets are not rotated with a tilted axis; prefer Center and explicit coordinates for tilted placement. |
| Radius | 0.25[m] | Set the shared radius of the straight cylinder and rounded caps. The total length is Cylinder length + 2 × Radius. Use a positive length in metres or compatible units, such as 10[mm]. |
| Cylinder length | 1[m] | Set the straight section between cap centers, not the total length. The total length is Cylinder length + 2 × Radius. Use a positive length in metres or compatible units, such as 10[mm]. |
| Center X | 0[m] | Set the global x coordinate of the capsule center in metres or compatible units. Review Origin because some primitives apply an additional Corner offset. |
| Center Y | 0[m] | Set the global y coordinate of the capsule center in metres or compatible units. Review Origin because some primitives apply an additional Corner offset. |
| Center Z | 0[m] | Set the global z coordinate of the capsule center in metres or compatible units. Review Origin because some primitives apply an additional Corner offset. |
| Axis X | 0 | Set the dimensionless x component of the primitive axis. The three components are normalized, so their magnitude does not change the object size. Use a nonzero vector; a zero vector currently falls back to global +z. |
| Axis Y | 0 | Set the dimensionless y component of the primitive axis. The three components are normalized, so their magnitude does not change the object size. Use a nonzero vector; a zero vector currently falls back to global +z. |
| Axis Z | 1 | Set the dimensionless z component of the primitive axis. The three components are normalized, so their magnitude does not change the object size. Use a nonzero vector; a zero vector currently falls back to global +z. |
Result
Built solids and their selectable entities appear in Graphics.
Troubleshooting
Very small radii relative to the length need enough mesh resolution to represent the curved ends.