mac build fix

Summary: Fix for https://github.com/facebookresearch/pytorch3d/issues/1708

Reviewed By: patricklabatut

Differential Revision: D52480756

fbshipit-source-id: 530c0f9413970fba042eec354e28318c96e35f42
This commit is contained in:
Jeremy Reizenstein 2024-01-03 07:46:54 -08:00 committed by Facebook GitHub Bot
parent 3087ab7f62
commit 3621a36494

View File

@ -73,6 +73,13 @@ struct float2 {
struct float3 { struct float3 {
float x, y, z; float x, y, z;
}; };
inline float3 make_float3(const float& x, const float& y, const float& z) {
float3 res;
res.x = x;
res.y = y;
res.z = z;
return res;
}
#endif #endif
namespace py = pybind11; namespace py = pybind11;