Hi! I'm trying to apply an interpolated vector function (outputs and inputs in two dimensions) to transform a region. I'm running into an issue where instead of applying the transformation, mathematica seems to just ouput exactly what I wrote in the code. I think this happens when the headers of the objects input aren't correct, but I don't think there's anything wrong with my input--the interpolated function is a function exactly as the TransformedRegion[] function requires. I've tried defining functions from the interpolated data many many different ways, but none have worked. Here's the snippet of the code that isn't working.
i=4
data = Table[{groupedCellCentroidListPre[[j]][[1]],
groupedCellCentroidListPre[[j]][[2]],
groupedCellCentroidListPost[[j]]}, {j, indeces}];
stretchFunction = Interpolation[data, InterpolationOrder -> All]
stretchFunction[560, 777]
TransformedRegion[groupedCellRegionListPre[[i]], stretchFunction]
All the lists are valid lists of vector data points. Here's the output to that code:
If anyone knows how to help with this it would be greatly appreciated! Thank you!
Attachments: