I've noticed a possible issue with the RegionCentroid function and am hoping someone can help.
The issue came to light while calculating the centroid coordinates for a 3D region comprising the union of seven separate cylinders and is highlighted in the attached notebook.
With reference to the notebook, what I've found is that the y-coordinate of the RegionCentroid for the cylinder region differs quite noticeably when compared to the RegionCentroid y-coordinate for an ostensibly equivalent 2D region comprising the union of seven disks, with each disk having the same centre coordinates and radius as the cylinders.
Any advice/suggestions would be much appreciated.
I should add that the centroid of the 2D region looks correct, but the centroid of the 3D region seems to lack precision in the y-coordinate (the x- and z-centroid values appear to be OK).
Attachments: