浏览代码

Update BoundingBox3DLabeler.cs

/main
Mohsen Kamalzadeh 4 年前
当前提交
255fc280
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
      com.unity.perception/Runtime/GroundTruth/Labelers/BoundingBox3DLabeler.cs

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


// Apply the transformations on this object until we reach the labeled transform
while (currentTransform != labelTransform)
{
transformedBounds.center = currentTransform.localRotation * transformedBounds.center;
transformedBounds.center += currentTransform.localPosition;
transformedBounds.extents = Vector3.Scale(transformedBounds.extents, currentTransform.localScale);
transformedRotation *= currentTransform.localRotation;

正在加载...
取消
保存