Hi Robert, 

The codes looks like this: 
```
root = GroupOfSwitch(); 
viewer->setSceneData(root);
while (!viewer->done()) {
    root->removeChild(0); // Remove the point cloud 
    pc = sensor.Capture();  // Get the point cloud
    geo = CreateGeometryNode(pc);
    root->addChild(geo); // Add the pointcloud 
    viewer->frame();
}
```

Thanks, 

Hui

On Monday, May 25, 2020 at 6:33:59 PM UTC+8, OpenSceneGraph Users wrote:
>
> Hi??
>
> There is nothing we can advice as you say nothing how you are managing 
> your scene graph.  All we know is you are doing something with a point 
> dataset and memory keeps growing.
>
> You need to provide some source of how to you are setting up your scene 
> graphs and how you are updating it.  Once we know what you are doing we'll 
> be able recommend  a better way to do it without memory growth.
>
> Robert.
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/fb930ca9-ea99-401a-93eb-3d0d823670a6%40googlegroups.com.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to