diff --git a/cpp/open3d/t/geometry/RaycastingScene.cpp b/cpp/open3d/t/geometry/RaycastingScene.cpp index 24103f79920..f9ebbd6219a 100644 --- a/cpp/open3d/t/geometry/RaycastingScene.cpp +++ b/cpp/open3d/t/geometry/RaycastingScene.cpp @@ -1192,13 +1192,7 @@ struct RaycastingScene::CPUImpl : public RaycastingScene::Impl { } }; -RaycastingScene::RaycastingScene(int64_t nthreads -#ifdef BUILD_SYCL_MODULE - , - const core::Device& device -#endif -) { - +RaycastingScene::RaycastingScene(int64_t nthreads, const core::Device& device) { #ifdef BUILD_SYCL_MODULE if (device.IsSYCL()) { impl_ = std::make_unique(); diff --git a/cpp/open3d/t/geometry/RaycastingScene.h b/cpp/open3d/t/geometry/RaycastingScene.h index 3d636ba012c..66d06b207dc 100644 --- a/cpp/open3d/t/geometry/RaycastingScene.h +++ b/cpp/open3d/t/geometry/RaycastingScene.h @@ -30,12 +30,8 @@ namespace geometry { class RaycastingScene { public: /// \brief Default Constructor. - RaycastingScene(int64_t nthreads = 0 -#ifdef BUILD_SYCL_MODULE - , - const core::Device &device = core::Device("CPU:0") -#endif - ); + RaycastingScene(int64_t nthreads = 0, + const core::Device &device = core::Device("CPU:0")); ~RaycastingScene(); diff --git a/cpp/pybind/t/geometry/raycasting_scene.cpp b/cpp/pybind/t/geometry/raycasting_scene.cpp index 732abf6cdd2..1b71ba5bfaf 100644 --- a/cpp/pybind/t/geometry/raycasting_scene.cpp +++ b/cpp/pybind/t/geometry/raycasting_scene.cpp @@ -58,23 +58,14 @@ void pybind_raycasting_scene_definitions(py::module& m) { auto raycasting_scene = static_cast>(m.attr("RaycastingScene")); // Constructors. -#ifdef BUILD_SYCL_MODULE raycasting_scene.def(py::init(), "nthreads"_a = 0, "device"_a = core::Device("CPU:0"), R"doc( Create a RaycastingScene. Args: nthreads (int): The number of threads to use for building the scene. Set to 0 for automatic. - enable_sycl (bool): Enable SYCL for building the scene. Default is False. + device (open3d.core.Device): The device to use. )doc"); -#else - raycasting_scene.def(py::init(), "nthreads"_a = 0, R"doc( -Create a RaycastingScene. - -Args: - nthreads (int): The number of threads to use for building the scene. Set to 0 for automatic. -)doc"); -#endif raycasting_scene.def( "add_triangles",