Closed tomforge closed 3 years ago
Thanks for proposing this issue. It seems there is some issue with my package version management (I have uploaded an older version of BboxTools). To fix this, add function into MeshMemoryMap.py (already modified in this repo):
def box_include_2d(self_box, other):
return np.logical_and(np.logical_and(self_box.bbox[0][0] <= other[:, 0], other[:, 0] < self_box.bbox[0][1]),
np.logical_and(self_box.bbox[1][0] <= other[:, 1], other[:, 1] < self_box.bbox[1][1]))
And change line 60 as:
if_visible = np.logical_and(if_visible, box_include_2d(box_ori, points_2d))
https://github.com/Angtian/NeMo/blob/11fe2101d35ab9eac2a2f813f33d95d616dc5d02/code/lib/MeshMemoryMap.py#L60
BBox2D.include
in BboxTools 1.0.2 seems to only accept single points or a Bbox2D object (code pasted below).points_2d
is a numpy array of points, which causes an error at the line above, sogenerate3Dpascal3D.py
is failing to generate any annotations.