Line 31 should be minmaxPoint.max[1] - minmaxPoint.min[1];
Line 35 should be var offsetY = height / 2 + minmaxPoint.min[1];
Line 40, 41 should be minmaxPoint.min[2] and minmaxPoint.max[2]
Line 62 should be + offsetY / tileHeight * latitudeExtent;
Line 64 should be + offsetY / tileHeight * latitudeExtent; (use plus sign instead of minus sign)
https://github.com/PrincessGod/objTo3d-tiles/blob/0e0d32fa3a8cca0a07bd782945cc333690f433e8/lib/obj2Tileset.js#L31
the indice of Height and Y are wrong.
Line 31 should be
minmaxPoint.max[1] - minmaxPoint.min[1];
Line 35 should bevar offsetY = height / 2 + minmaxPoint.min[1];
Line 40, 41 should beminmaxPoint.min[2]
andminmaxPoint.max[2]
https://github.com/PrincessGod/objTo3d-tiles/blob/0e0d32fa3a8cca0a07bd782945cc333690f433e8/lib/createSingleTileset.js#L62
Line 62 should be
+ offsetY / tileHeight * latitudeExtent;
Line 64 should be+ offsetY / tileHeight * latitudeExtent;
(use plus sign instead of minus sign)