offset · ·

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

offset/slant-cut-cylinder-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 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 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 45^\circ \}$$

expectedclosed form
volume607.9105597V₀ + 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 = 1
area397.7673924S₀ + 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.2.4e-103.4e-083.4e-105.6e-081.9e-161.6e-085.8e-12
area err.2.3e-104.2e-083.5e-103.1e-081.4e-161.4e-086.0e-12
time1.11 s652 ms31 ms830 ms12 ms27 ms87 ms64 ms1.3 ms
CPU time2.40 s652 ms30 ms826 ms11 ms48 ms87 ms75 ms1.1 ms
memory24.6 MB368.3 MB13.9 MB63.7 MB18.6 MB11.6 MB13.6 MB29 MB3.6 MB
LOC132591117125194

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

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