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

Function createRootFormObject

source/MRMesh/MRSceneRoot.cpp:124–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124std::shared_ptr<SceneRootObject> createRootFormObject( std::shared_ptr<Object> obj )
125{
126 std::shared_ptr<SceneRootObject> root = std::make_shared<SceneRootObject>();
127 auto children = obj->children();
128 for ( auto child : children )
129 {
130 child->detachFromParent();
131 root->addChild( child );
132 }
133 return root;
134}
135
136}

Callers 1

constructMethod · 0.85

Calls 2

detachFromParentMethod · 0.80
addChildMethod · 0.80

Tested by

no test coverage detected