Skip to content

Commit

Permalink
fix: proper bounding box size in export script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy-Gaillard committed Oct 23, 2018
1 parent 53580ba commit 65d6f67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py3dtiles/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ def to_tileset(self, transform):
def to_tileset_r(self, error):
(c1, c2) = (self.box.min, self.box.max)
center = [(c1[i] + c2[i]) / 2 for i in range(0, 3)]
xAxis = [c2[0] - c1[0], 0, 0]
yAxis = [0, c2[1] - c1[1], 0]
zAxis = [0, 0, c2[2] - c1[2]]
xAxis = [(c2[0] - c1[0]) / 2, 0, 0]
yAxis = [0, (c2[1] - c1[1]) / 2, 0]
zAxis = [0, 0, (c2[2] - c1[2]) / 2]
box = [round(x, 3) for x in center + xAxis + yAxis + zAxis]
tile = {
"boundingVolume": {
Expand Down

0 comments on commit 65d6f67

Please sign in to comment.