Hi
When I run my code , I want to bulid a newgroup with my own name, and add the objects to the newgroup, or add the objects to the exist group, how can do it with code? thank you.
Bulid newgroup
Re: Bulid newgroup
Hi
For another problem, how can I traverse all the objects in the DBtree and list the names?
For another problem, how can I traverse all the objects in the DBtree and list the names?
Re: Bulid newgroup
A group is simple a ccHObject:
Then add the entities to this group as children (addChild).
And to access the DB tree objects from a plugin, see the qPCV plugin (qPCV.cpp, line 132). There's no example of how to traverse the whole set of entities, but it shouldn't be too hard to implement.
Code: Select all
ccHObject* group = new ccHObject("Group name");
And to access the DB tree objects from a plugin, see the qPCV plugin (qPCV.cpp, line 132). There's no example of how to traverse the whole set of entities, but it shouldn't be too hard to implement.
Daniel, CloudCompare admin