Sorry I couldn't make it clearer. Consider each triplet of points as forming the top vertices of a triangular prism with a flat bottom and a tilted top. You can break the prism into two solids, one with flat top and bottom and the top part which is a 5-sided solid with a triangular base.
The volume of the bottom part is relatively trivial, i.e., calculate the area of the base and multiply by the height.
The left over solid is more complicated. The general case is that one of the three vertical sides will be a quadrilateral, while the other two vertical sides, the base, and the top are triangular.
I'm guessing the simplest solution is to calculate the area of the quadrilateral and multiply by 1/3 the altitude of the solid referenced to the plane of the quadrilateral.
TTFN