remove computeCentroids due to three.js upgrade