offset · ·

A cylinder cut by a plane at 45° and grown by 4

offset/slant-cut-cylinder-grown-by-four · 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 45° cuts it: the plane crosses the axis at z = 0 and leans at 45° to the bottom, so the top is the ellipse it cuts from the cylinder, with semi-axes 3 and 3/cos 45°.

Grow it by 4 with rounded edges: the solid of every point within 4 of it. It is convex, so each face moves out by 4 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 4 along the ellipse), and the faces stay tangent to one another.

4 is more than the ellipse's least radius of curvature, b²/a = 9/(3/cos 45°) = 2.121320 at the ends of its long axis, so the whole tube of radius 4 about the ellipse would cross itself on the ellipse's inner side. The canal face is only the part of that tube between the top's normal and the side's, on the outer side, where it stays smooth: the solid is convex and the formula below holds for every d.

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 4 \},\quad K = \{ x^2 + y^2 \le 9,\ -10 \le z \le x\tan 45^\circ \}$$

expectedclosed form
volume2605.410728V₀ + 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φ = 36.004515927808, α = 45°, d = 4
area971.5984982S₀ + 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.1.3e-093.7e-081.2e-096.9e-085.2e-163.1e-087.0e-11
area err.1.0e-092.8e-081.0e-098.5e-081.2e-161.8e-086.1e-11
time444 ms640 ms30 ms971 ms14 ms26 ms51 ms64 ms1.2 ms
CPU time1.08 s640 ms30 ms971 ms13 ms49 ms50 ms75 ms1 ms
memory16.6 MB368.3 MB13.7 MB67.8 MB19.1 MB11.9 MB11.3 MB28.7 MB3.5 MB
LOC13259517125194

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

offset/slant-cut-cylinder-grown-by-four.md, the case as written.