I have several TopoDS_Shape, some of them read from step files, other programaticaly built, and I need to save the drawing as a step file. The problem I have is that the program which will use that file needs a step file containing one shape.
I cannot user TopoDS_Builder::Add(shape1, shape2), because the constructor is protected. I have extended the class TopoDS_Builder with a public constructor, and used it something like this:
TopoDS_Shape shape1 = shape_list->Value(1);
Standard_Integer n = shape_list->Length();
for (Standard_Integer i=2; i TopoDS_Shape aShape = shape_list->Value(i);
status = aWriter.Transfer(shape1, STEPControl_ManifoldSolidBrep);
but at the last line, the processor jumps in 100% and stays there for an indefinite period of time (I left it over a half hour).
I think I've taken the wrong aproach, but I've run out of ideas. Can you give me an advice?