Commit 3621a364 authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

mac build fix

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

Reviewed By: patricklabatut

Differential Revision: D52480756

fbshipit-source-id: 530c0f9413970fba042eec354e28318c96e35f42
parent 3087ab7f
...@@ -73,6 +73,13 @@ struct float2 { ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment