kopia lustrzana https://github.com/OpenDroneMap/ODM
Cleanup
rodzic
9f17e8451a
commit
64544f3c41
|
@ -24,7 +24,6 @@
|
|||
|
||||
import rasterio
|
||||
import numpy as np
|
||||
#from PIL import Image, ImageDraw
|
||||
import math
|
||||
|
||||
# Based off of the great writeup, demo and code at:
|
||||
|
@ -204,7 +203,7 @@ def pack(obj, background=(0,0,0,0), format="PNG", extents=None):
|
|||
|
||||
# using filename so we can pass back UV info without storing it in image
|
||||
blocks.append(Block(w, h, data=(filename, mat, changes)))
|
||||
|
||||
use_3dmesh
|
||||
# sort by width, descending (widest first)
|
||||
blocks.sort(key=lambda block: -block.w)
|
||||
|
||||
|
|
|
@ -29,8 +29,6 @@ class AABB():
|
|||
self.max_x = max_x
|
||||
self.max_y = max_y
|
||||
|
||||
self.to_tile = False # TODO: remove?
|
||||
|
||||
def add(self, x,y):
|
||||
self.min_x = min(self.min_x, x) if self.min_x is not None else x
|
||||
self.min_y = min(self.min_y, y) if self.min_y is not None else y
|
||||
|
|
Ładowanie…
Reference in New Issue