Skip to content

Commit

Permalink
feat(pointcloud): Switch PointCloud needs to change side&back view
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin-L committed Aug 30, 2022
1 parent 3ef28b7 commit 4dbfff5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ class PointCloud2dOperation extends PolygonOperation {
this.setSelectedIDs([nextSelectedResult.id]);
}
this.render();

return [nextSelectedResult.id];
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const useSingleBox = () => {
selectedIDs,
selectedID,
mainViewInstance,
setSelectedIDs,
} = useContext(PointCloudContext);

/** Returns { info: selected box, index: selected box index } */
Expand Down Expand Up @@ -52,7 +53,8 @@ export const useSingleBox = () => {

const { pointCloud2dOperation } = topViewInstance;

pointCloud2dOperation.switchToNextPolygon(sort);
const newSelectedIDs = pointCloud2dOperation.switchToNextPolygon(sort);
setSelectedIDs(newSelectedIDs);
},
[topViewInstance],
);
Expand Down

0 comments on commit 4dbfff5

Please sign in to comment.