OK. This is updated centroids pull request on same branch. Spacing addressed.
add a centroid calculation using tetrahedral decomposition. tested.
I didn't mean for the other comments to disappear. What I did was re-pull my original branch down. Maybe I did more than that. Anyway ... I'm still learning GIT process.
Add volume calc for a we while we are handling centroid since they ar…
OK ... a bit more fussing around. I really should be in bed.
I wanted to make sure to treat / add volume as discrete method at same time as adding centroid since they are so strongly related. I also notice that my prior commit of centroid was not optimized as it still played with Area the same way Scorpius had his function which was called area_volume. For centroid, area was just ignored ... so for optimizations sake ... I thought it very proactive to get rid of the area expressions since they were effectively code-lint.
B.T.W. If a manifold has negative volume ... it is inside out. Pretty cool/basic use of volume.
Make a fix to centroid contributions.
Dan ... Hope you see this I'm needing to catch a bad arith when volume is ZERO and use fallback scheme.
This is needed for centroid of "FLAT OBJECTS" with zero volume, and oddball case ... but I ran into it. So added the