added mesh surface arrows
This commit is contained in:
@@ -28,7 +28,7 @@ class MeshRenderWorker(QThread):
|
||||
self._renderer = None
|
||||
self._pending = None
|
||||
|
||||
def submit(self, *, flow, scalar_map, centroid, centroid_found, fnormal) -> None:
|
||||
def submit(self, *, flow, scalar_map, centroid, centroid_found, fnormal, valid_mask=None) -> None:
|
||||
with QMutexLocker(self._mutex):
|
||||
self._pending = {
|
||||
"flow": flow,
|
||||
@@ -36,6 +36,7 @@ class MeshRenderWorker(QThread):
|
||||
"centroid": centroid,
|
||||
"centroid_found": centroid_found,
|
||||
"fnormal": fnormal,
|
||||
"valid_mask": valid_mask,
|
||||
}
|
||||
self._wake = True
|
||||
if not self.isRunning():
|
||||
@@ -66,6 +67,7 @@ class MeshRenderWorker(QThread):
|
||||
centroid=job["centroid"],
|
||||
centroid_found=job["centroid_found"],
|
||||
fnormal=job["fnormal"],
|
||||
valid_mask=job["valid_mask"],
|
||||
)
|
||||
self.rgb_ready.emit(np.ascontiguousarray(rgb))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user