MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / pythonSelectType

Function pythonSelectType

source/mrviewerpy/MRPythonScene.cpp:95–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 } );
94}
95void 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
120void pythonClearScene()
121{

Callers

nothing calls this directly

Calls 1

unselectFunction · 0.85

Tested by

no test coverage detected