From fc4562db070264a59fd2f387d4a7d2d8b675b657 Mon Sep 17 00:00:00 2001 From: fraguada Date: Tue, 26 Nov 2024 14:11:17 +0100 Subject: [PATCH] cleaned up Plane js bindings --- src/bindings/bnd_plane.cpp | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/src/bindings/bnd_plane.cpp b/src/bindings/bnd_plane.cpp index db1c1d27..5a098133 100644 --- a/src/bindings/bnd_plane.cpp +++ b/src/bindings/bnd_plane.cpp @@ -240,21 +240,10 @@ void initPlaneBindings(void*) .field("zAxis", &BND_Plane::m_zaxis); class_("Plane") - - .class_function("worldXY", &BND_Plane::WorldXY) - .class_function("worldYZ", &BND_Plane::WorldYZ) - .class_function("worldZX", &BND_Plane::WorldZX) - .class_function("unset", &BND_Plane::Unset) - .property("origin", &BND_Plane::m_origin) - .property("xAxis", &BND_Plane::m_xaxis) - .property("yAxis", &BND_Plane::m_yaxis) - .property("zAxis", &BND_Plane::m_zaxis) - .function("pointAtUV", &BND_Plane::PointAtUV) - .function("pointAtUVW", &BND_Plane::PointAtUVW) - .function("rotate", &BND_Plane::Rotate) - .function("toJSON", &BND_Plane::toJSON) - .function("encode", &BND_Plane::Encode) - .class_function("decode", &BND_Plane::Decode) + .class_function("worldXY", &BND_PlaneHelper::WorldXY) + .class_function("worldYZ", &BND_PlaneHelper::WorldYZ) + .class_function("worldZX", &BND_PlaneHelper::WorldZX) + .class_function("unset", &BND_PlaneHelper::WorldZX) ; }