浏览代码

Update BoundingBox3DLabeler.cs

/pyrception-integration
GitHub 3 年前
当前提交
96df0234
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.perception/Runtime/GroundTruth/Labelers/BoundingBox3DLabeler.cs

2
com.unity.perception/Runtime/GroundTruth/Labelers/BoundingBox3DLabeler.cs


var forward = box.rotation * Vector3.forward;
var s = box.size * 0.5f;
var bbl = CalculateRotatedPoint (cam, t,right, up, forward,-s.x,-s.y, -s.z);
var bbl = CalculateRotatedPoint(cam, t,right, up, forward,-s.x,-s.y, -s.z);
var btl = CalculateRotatedPoint(cam, t,right, up, forward,-s.x, s.y, -s.z);
var btr = CalculateRotatedPoint(cam, t,right, up, forward,s.x, s.y, -s.z);
var bbr = CalculateRotatedPoint(cam, t,right, up, forward,s.x, -s.y, -s.z);

正在加载...
取消
保存