From 3621a36494db27336a89503dded7ca896bb059d7 Mon Sep 17 00:00:00 2001 From: Jeremy Reizenstein Date: Wed, 3 Jan 2024 07:46:54 -0800 Subject: [PATCH] mac build fix Summary: Fix for https://github.com/facebookresearch/pytorch3d/issues/1708 Reviewed By: patricklabatut Differential Revision: D52480756 fbshipit-source-id: 530c0f9413970fba042eec354e28318c96e35f42 --- pytorch3d/csrc/pulsar/global.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pytorch3d/csrc/pulsar/global.h b/pytorch3d/csrc/pulsar/global.h index b92afba3..3cea957e 100644 --- a/pytorch3d/csrc/pulsar/global.h +++ b/pytorch3d/csrc/pulsar/global.h @@ -73,6 +73,13 @@ struct float2 { struct float3 { 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 namespace py = pybind11;