Set compute3Dcentroid last component to 1
Merge pull request #781 from VictorLamoine/master

Set compute3Dcentroid last component to 1