offset · ·

A cylinder cut by a plane at 30° and grown by 1

offset/cylinder-cut-at-thirty-degrees-grown · offset, grow, ellipse, canal, convex

A cylinder of radius 3 about the z axis, from its flat bottom at z = −10 up to where the plane z = x·tan 30° cuts it: the plane crosses the axis at z = 0 and leans at 30° to the bottom, so the top is the ellipse it cuts from the cylinder, with semi-axes 3 and 3/cos 30°.

Grow it by 1 with rounded edges: the solid of every point within 1 of it. It is convex, so each face moves out by 1 along its normal, the bottom circle's edge becomes a piece of a torus, the elliptic edge where the slanted top meets the side becomes a canal surface (the envelope of the balls of radius 1 along the ellipse), and the faces stay tangent to one another.

By Steiner's formula for a convex body K grown by d, its volume is V₀ + S₀d + Md² + 4πd³/3 and its area S₀ + 2Md + 4πd², where V₀ and S₀ are K's volume and area and M is its integrated mean curvature: the side's 10π (its area 60π times the mean curvature 1/6, the plane's top crossing the axis at z = 0), plus half of each edge's turning angle integrated along it, 3π²/2 for the bottom circle (a right angle along 6π) and J/2 for the ellipse, where the angle between the top's normal and the side's at the point (3 cos φ, 3 sin φ, 3 cos φ·tan α) is arccos(−sin α cos φ) and the ellipse's length element is 3√(1 + tan²α sin²φ) dφ. J has no elementary closed form; the value above is it to twelve places (any quadrature agrees to well under the grade).

As a set:

$$\{ p : \operatorname{dist}(p, K) \le 1 \},\quad K = \{ x^2 + y^2 \le 9,\ -10 \le z \le x\tan 30^\circ \}$$

expectedclosed form
volume598.540836V₀ + S₀d + Md² + 4πd³/3 (Steiner), V₀ = 90π, S₀ = 69π + 9π/cos α, M = 10π + 3π²/2 + J/2, J = ∫₀^{2π} arccos(−sin α cos φ)·3√(1 + tan²α sin²φ) dφ = 31.940184268051, α = 30°, d = 1
area386.3655028S₀ + 2Md + 4πd², with S₀ and M as for the volume

Drawing

Top view
Top
Isometric view
Isometric
Front view
Front
Right view
Right

Third-angle projection, the three views at one scale. Drawn from occt's result, which passed.

Results

cad-kernelocctarriskentronvcadsolidcraftbrepkitpopkernaetherisnext.BREPgeopcadrssmlibspringrepgeomsolveranvilcad
outcomepasspass–pass–pass–––pass–pass–passrefusedrefused
volume err.3.7e-101.7e-088.2e-118.3e-081.9e-163.0e-104.1e-11
area err.4.4e-112.1e-097.2e-114.9e-080.0e+003.3e-104.0e-11
time1.06 s629 ms28 ms756 ms11 ms22 ms40 ms64 ms1.1 ms
CPU time2.28 s628 ms28 ms756 ms10 ms40 ms40 ms75 ms970 µs
memory24.5 MB368.2 MB14.4 MB61.7 MB18.5 MB11.5 MB11.2 MB28.4 MB3.5 MB
LOC13258517125194

† works around a missing feature. Pick an entry to see its solid, its measures and its code.

offset/cylinder-cut-at-thirty-degrees-grown.md, the case as written.