mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 20:02:49 +08:00
Remove structured binding
Summary: Couldn't build p3d on devfair because C++17 is unsupported. Two structured bindings sneaked in. Reviewed By: bottler Differential Revision: D40280967 fbshipit-source-id: 9627f3f9f76247a6cefbeac067fdead67c6f4e14
This commit is contained in:
parent
f55d37f07d
commit
17bc043a0c
@ -508,7 +508,8 @@ inline bool IsCoplanarTriTri(
|
|||||||
|
|
||||||
// Compute most distant points
|
// Compute most distant points
|
||||||
auto argvs = ArgMaxVerts(tri1, tri2);
|
auto argvs = ArgMaxVerts(tri1, tri2);
|
||||||
const auto [v1m, v2m] = argvs;
|
const auto v1m = std::get<0>(argvs);
|
||||||
|
const auto v2m = std::get<1>(argvs);
|
||||||
|
|
||||||
vec3<float> n12m = v1m - v2m;
|
vec3<float> n12m = v1m - v2m;
|
||||||
n12m = n12m / std::fmaxf(norm(n12m), kEpsilon);
|
n12m = n12m / std::fmaxf(norm(n12m), kEpsilon);
|
||||||
@ -542,7 +543,8 @@ inline bool IsCoplanarTriPlane(
|
|||||||
|
|
||||||
// Compute most distant points
|
// Compute most distant points
|
||||||
auto argvs = ArgMaxVerts(tri, plane);
|
auto argvs = ArgMaxVerts(tri, plane);
|
||||||
const auto [v1m, v2m] = argvs;
|
const auto v1m = std::get<0>(argvs);
|
||||||
|
const auto v2m = std::get<1>(argvs);
|
||||||
|
|
||||||
vec3<float> n12m = v1m - v2m;
|
vec3<float> n12m = v1m - v2m;
|
||||||
n12m = n12m / std::fmaxf(norm(n12m), kEpsilon);
|
n12m = n12m / std::fmaxf(norm(n12m), kEpsilon);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user