For solids like cylinders, cones, and cuboids, a plane cut can produce shapes that change depending on the orientation:
circles, ellipses, rectangles, trapezoids, or more general polygons. Some special cases have simple formulas
(for example, a cylinder cut by a plane perpendicular to its axis gives a circle of area \(\pi r^2\)), but a fully general
“any plane, any solid” closed-form solution is not always convenient to implement in a single interactive tool.
This calculator therefore uses a fast sampling method for non-sphere cases (and you can increase the grid for
higher accuracy). The idea is to build a 2D coordinate system \((s,t)\) on the cutting plane using two orthonormal directions
\(u\) and \(v\) that lie in the plane. Then points on the plane are represented as
\[
x(s,t)=P_0 + su + tv,
\]
where \(P_0\) is a point on the plane. The tool samples many \((s,t)\) points on a square window, checks whether each corresponding
3D point lies inside the solid, and estimates the area by counting how many samples are inside. With a sufficiently fine grid,
this produces an accurate approximation and also provides a boundary outline for visualization.
In practice, you should increase the grid resolution when the cross-section boundary is highly curved (oblique cuts on cones/cylinders)
or when the cross-section is small compared to the solid. The 3D visualization is meant to help you verify that the plane is positioned
where you expect and that the intersection curve looks reasonable.