How to get 2D plane area?

Dear friends,

The following is my python code for generating the 2D area of a contour by randomly cutting a 3D figure.

I have used vtkCutter and vtkImageReslice functions, but no ideal which function should use to get 2D area of cutting plane contour.

Mass.GetSurfaceArea only gerarate 3D surface area.

Please let me know, many thanks. David.

def my_call_back(pWidget,ev):

if (pWidget):
    print(pWidget.GetClassName(), "Event Id:", ev)
    planeNew = vtk.vtkPlane()
    pWidget.GetPlane(planeNew)
    cliper.SetClipFunction(planeNew)
    planeNew.GetNormal()
    cliper.Update(); 
   
    clipedData = vtk.vtkPolyData()
    clipedData.DeepCopy(cliper.GetOutput())
    
    ####################################
    cutter = vtk.vtkCutter()
    cutter.SetCutFunction(planeNew)
    cutter.SetInputConnection(cliper.GetOutputPort())
    cutter.Update()
    
    reslice = vtk.vtkImageReslice()
    transform = vtk.vtkTransform()
    #transform.Translate(0,0,0)
    #transform.RotateWXYZ(0, 0, 0,0)
    #reslice.SetResliceTransform(transform)
    reslice.SetInputConnection(cutter.GetOutputPort())
    reslice.SetInterpolationModeToLinear()
    ####################################

    Mass = vtk.vtkMassProperties()
    Mass.SetInputData(cliper.GetOutput())
    #Mass.SetInputData(reslice.GetOutput())
    Mass.Update()
    print("Surface = "+str(Mass.GetSurfaceArea()))
    print("Volume  = "+str(Mass.GetVolume()))
    ####################################

    coneMapper = vtk.vtkPolyDataMapper()
    coneMapper.SetInputData(clipedData)
    coneMapper.ScalarVisibilityOff()
    coneSkinActor.SetMapper(coneMapper)
    print("Plane Normal = "+str(planeNew.GetNormal()))
    print("Plane Origin = "+str(planeNew.GetOrigin()))

show(‘D:/nn/s.mhd’)