offset · ·

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

offset/slant-cut-cylinder-grown-by-two · 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 2 with rounded edges: the solid of every point within 2 of it. It is convex, so each face moves out by 2 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 2 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 2 \},\quad K = \{ x^2 + y^2 \le 9,\ -10 \le z \le x\tan 45^\circ \}$$

expectedclosed form
volume1086.655704V₀ + 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 = 2
area563.9116864S₀ + 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.5e-097.0e-088.8e-117.0e-092.1e-162.2e-085.2e-11
area err.6.4e-105.8e-086.8e-111.9e-082.0e-161.5e-084.9e-11
time1.11 s631 ms60 ms845 ms12 ms30 ms73 ms63 ms1.1 ms
CPU time2.36 s630 ms60 ms844 ms12 ms51 ms73 ms74 ms940 µs
memory25.4 MB368.1 MB14.3 MB64.1 MB18.6 MB11.3 MB11.6 MB28.7 MB3.6 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-two.md, the case as written.