The point set within a model’s poly data is accessible. The output of the vtkMarchingCubes algorithm is a vtkPolyData. I’m doing something similar. Here is how I loop over the point indices and get the position of each point via Python script:
modelNode = slicer.util.getNode(modelNodeID)
modelPolyData = modelNode.GetPolyData()
numPoints = modelPolyData.GetNumberOfPoints()
for ptId in range(numPoints):
pointPos = [0,0,0]
modelPolyData.GetPoint(ptId, pointPos)
GetPoint fills the three-element list with the position of the point corresponding to index ptId. You can then write these values to files.