def volume ( self ) : volume = abs ( self . primitive . polygon . area * self . primitive . height ) return volume
python volume of grid surface
The volume of the primitive extrusion .
def volume(self):
        """
        The volume of the primitive extrusion.

        Calculated from polygon and height to avoid mesh creation.

        Returns
        ----------
        volume: float, volume of 3D extrusion
        """
        volume = abs(self.primitive.polygon.area *
                     self.primitive.height)
        return volume