Bug introduced in 13.0.0 and fixed in 13.0.1 [CASE:4894156]
In version 13, Tube is a recognized region. E.g., RegionQ[Tube[{{0, 0, -h}, {0, 0, h}}, r]] returns True. However, it's not clear what the precise definition of the region is. Comparing with a cylinder, suggests that a Tube region from a single line segment is the surface of a cylinder, but with hemispherical caps:
Graphics3D[{Style[Tube[{{0, 0, -1}, {0, 0, 1}}, 1/2],
Opacity[0.5, Red]], Cylinder[{{0, 0, -1}, {0, 0, 1}}, 1/2]}]
But the area of the tube is not what I expect from that of a cylinder and the caps:
Simplify[Area[Tube[{{0, 0, -h}, {0, 0, h}}, r]], h > 0]
gives
4 \[Pi] (h + r^2)
which adds different physical quantities: a length (h) and an area (r^2).
Compare to the surface area of a cylinder:
Simplify[SurfaceArea[Cylinder[{{0, 0, -h}, {0, 0, h}}, r]], h > 0]
which gives
2 \[Pi] r (2 h + r)
The difference in areas between Tube and Cylinder suggests the tube is not the surface of the cylinder with circular ends replaced by hemispheres.
The area of the tube region also differs from discretizing a graphics:
With[{reg = Tube[{{0, 0, -1}, {0, 0, 1}}, 0.5]},
{Area[reg], SurfaceArea[BoundaryDiscretizeGraphics[reg]]}
]
gives different values for the tube region and discretized graphics:
{15.708, 9.32718}
To find a definition of the Tube region, I tried
RegionConvert[Tube[{{0, 0, -h}, {0, 0, h}}, r], "Implicit"]
but that does not evaluate. In contrast, RegionConvert does work for a cylinder.
Is the difference between Tube and Cylinder just a problem with the evaluation of Area? Or is Tube as a region something different than as it appears as a graphics?
Tubeis a complex object compare toCapsuleShape.Volume[CapsuleShape[{{0, 0, -h}, {0, 0, h}}, r]]– cvgmt Jan 09 '22 at 00:594 \[Pi] (h + r^2)is my new favourite surface area formula, great work Mathematica! – Jojo Jan 09 '22 at 18:12Simplify[SurfaceArea[CapsuleShape[{{0, 0, -h}, {0, 0, h}}, r]], h > 0]gives4 \[Pi] (h + r^2)– tad Jan 19 '22 at 22:34