Volume of one bounded convex cell in cubic metres, from its own half-spaces,
or null when the cell is unbounded or degenerate.
Every triple of planes is solved for its corner, corners outside any other
half-space are discarded, and the survivors are the cell's vertices. Each
face is then the hull of the vertices lying on one plane, and the volume is
the sum of the cones from the vertices' mean, an interior point of the
convex cell, to those faces.
null covers fewer than four vertices and a face set whose area-weighted
normals do not cancel, which is how a cell open on one side is caught even
when it has enough corners: a column bounded on four sides and open at the
top would otherwise report zero, and a wedge with two capping planes would
report a wrong number. Planes repeated exactly or as a scaled copy are
counted once, so a repeated half-space adds no second cone.
Volume of one bounded convex cell in cubic metres, from its own half-spaces, or
nullwhen the cell is unbounded or degenerate.Every triple of planes is solved for its corner, corners outside any other half-space are discarded, and the survivors are the cell's vertices. Each face is then the hull of the vertices lying on one plane, and the volume is the sum of the cones from the vertices' mean, an interior point of the convex cell, to those faces.
nullcovers fewer than four vertices and a face set whose area-weighted normals do not cancel, which is how a cell open on one side is caught even when it has enough corners: a column bounded on four sides and open at the top would otherwise report zero, and a wedge with two capping planes would report a wrong number. Planes repeated exactly or as a scaled copy are counted once, so a repeated half-space adds no second cone.