Split compound object

Hi every body,
I have an compound object that contains some objects(only open or closed curve).
How can I gain to the access of these objects separately.
Thanks for any help.

Rob Bachrach's picture

You should be able to explore your compound for edges with TopExp_Explorer. Then, for each edge, you can get the curve with BRep_Tool::Curve.