below is the piece of codes I use to export a face for testing purpose. I have inserted into the sample: topologybuilding to export PinkFace in that sample. However it doesn't work. I tried to trace it, but the codes is too much convoluted, I have no idea why it is wrong. Could anyone please tell me how I can export a face to step format?
thanks a lot.
Handle(TopTools_HSequenceOfShape) aSequence = new TopTools_HSequenceOfShape();
for (Standard_Integer i=1;iLength();i++)
status = aWriter.Transfer(aSequence->Value(i), STEPControl_ManifoldSolidBrep);
if ( status != IFSelect_RetDone ) return;
status = aWriter.Write("c:\\tmp\\x.stp");