@@ -40,6 +40,18 @@ PYBIND11_MODULE(slm, m) {
4040 )pbdoc" ;
4141
4242
43+ py::enum_<slm::LaserMode>(m, " LaserMode" )
44+ .value (" Default" , LaserMode::PULSE)
45+ .value (" CW" , LaserMode::CW)
46+ .value (" Pulse" , LaserMode::PULSE)
47+ .export_values ();
48+
49+ py::enum_<slm::ScanMode>(m, " ScanMode" )
50+ .value (" Default" , ScanMode::NONE)
51+ .value (" ContourFirst" , ScanMode::CONTOUR_FIRST)
52+ .value (" HatchFirst" , ScanMode::HATCH_FIRST)
53+ .export_values ();
54+
4355 py::class_<slm::LayerGeometry, std::shared_ptr<slm::LayerGeometry>> layerGeomPyType (m, " LayerGeometry" , py::dynamic_attr ());
4456
4557 layerGeomPyType.def (py::init ())
@@ -294,18 +306,6 @@ PYBIND11_MODULE(slm, m) {
294306 }
295307 ));
296308
297- py::enum_<slm::LaserMode>(m, " LaserMode" )
298- .value (" Default" , LaserMode::PULSE)
299- .value (" CW" , LaserMode::CW)
300- .value (" Pulse" , LaserMode::PULSE)
301- .export_values ();
302-
303- py::enum_<slm::ScanMode>(m, " ScanMode" )
304- .value (" Default" , ScanMode::NONE)
305- .value (" ContourFirst" , ScanMode::CONTOUR_FIRST)
306- .value (" HatchFirst" , ScanMode::HATCH_FIRST)
307- .export_values ();
308-
309309 py::class_<slm::Layer, std::shared_ptr<slm::Layer>>(m, " Layer" , py::dynamic_attr ())
310310 .def (py::init ())
311311 .def (py::init<uint64_t , uint64_t >(), py::arg (" id" ), py::arg (" z" ))
0 commit comments