EmptyCopy function

Hello Guys,
I have found this kind of function - EmptyCopy.
From a description - Replace <me> by a new Shape with the same Orientation and Location and a new TShape with the same geometry and no sub-shapes.

To be honest, I do not understand the meaning of function.
For Edge sub-shapes are Vertices. And what does it mean - no sub-shapes?

Thanks.
With respects, Eugene.

Mikhail Sazonov's picture

Empty copy creates a new shape on the same geometry. It can be used, e.g., for splitting an edge. You create two copies and add in them new vertices to create two splits of the previous edge.

Eugene Zaliznyak's picture

But what is the difference to BRepBuilderAPI_Copy ?

Mikhail Sazonov's picture

This is a high level class that parses all the shape hierarchy and makes a new shape with all new subshapes.

Eugene Zaliznyak's picture

To be honest, I did not understand, what are subshapes. EmptyCopy will reset sub-shapes, but BRepBuilderAPI_Copy not. Could you describe some short case for both functions?

With respects, Eugene.