| 93 | } ); |
| 94 | } |
| 95 | void pythonSelectType( const std::string modelType ) |
| 96 | { |
| 97 | MR::CommandLoop::runCommandFromGUIThread( [modelType] () |
| 98 | { |
| 99 | if ( modelType == "Meshes" ) |
| 100 | { |
| 101 | MR::selectType<MR::ObjectMesh>(); |
| 102 | return; |
| 103 | } |
| 104 | if ( modelType == "Points" ) |
| 105 | { |
| 106 | MR::selectType<MR::ObjectPoints>(); |
| 107 | return; |
| 108 | } |
| 109 | #ifndef MRVIEWER_NO_VOXELS |
| 110 | if ( modelType == "Voxels" ) |
| 111 | { |
| 112 | MR::selectType<MR::ObjectVoxels>(); |
| 113 | return; |
| 114 | } |
| 115 | #endif |
| 116 | MR::unselect(); |
| 117 | } ); |
| 118 | } |
| 119 | |
| 120 | void pythonClearScene() |
| 121 | { |
nothing calls this directly
no test coverage detected