Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Monjisan authored Mar 18, 2020
2 parents c2d5e5d + 3e73507 commit a27113d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion front/app/labeling_tool/pcd_label_tool.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ class PCDLabelTool extends React.Component {
}
const posArray = this._currentPointMesh.geometry.getAttribute('position').array;
let changedLabel = null;
let existIncludePoint = false;
for (let i=0; i<bboxes.length; ++i) {
const bbox = bboxes[i];
let maxZ = -Infinity, minZ = Infinity;
Expand All @@ -325,12 +326,13 @@ class PCDLabelTool extends React.Component {
const x = Math.abs( dx*Math.cos(yaw) + dy*Math.sin(yaw)),
y = Math.abs(-dx*Math.sin(yaw) + dy*Math.cos(yaw));
if (2*x < boxsx && 2*y < boxsy) {
existIncludePoint = true;
const z = posArray[j+2];
maxZ = Math.max(maxZ, z);
minZ = Math.min(minZ, z);
}
}
if (maxZ <= minZ) {
if (!existIncludePoint) {
continue;
}

Expand Down

0 comments on commit a27113d

Please sign in to comment.