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

Function selectName

source/mrviewerpy/MRPythonScene.cpp:29–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27{
28
29bool selectName( const std::string& modelName )
30{
31 auto selected = getAllObjectsInTree<VisualObject>( &SceneRoot::get(), ObjectSelectivityType::Any );
32 for ( auto& obj : selected )
33 {
34 if ( modelName == obj->name() )
35 {
36 obj->select( true );
37 }
38 else
39 {
40 obj->select( false );
41 }
42 }
43 return true;
44}
45
46template <typename T>
47bool selectType()

Callers 1

pythonSelectNameFunction · 0.85

Calls 3

getFunction · 0.50
nameMethod · 0.45
selectMethod · 0.45

Tested by

no test coverage detected