CamCodeSnippetsC++OCC

TopoDS_Edge
Get info about a TopoDS_Edge: http://code.google.com/p/cam-occ/source/browse/trunk/src/shapeInfo.cpp?r=30#148

Get points from TopoDS_Edge E: http://code.google.com/p/cam-occ/source/browse/trunk/src/rs274emc.cpp?r=17#56
 * Handle(Geom_Curve) C = BRep_Tool::Curve(E,loc,first,last);
 * for (Standard_Real j=first;j&lt;=last;j=j+(last-first)/100) {
 * gp_Pnt pt = C-&gt;Value(j);
 * fprintf(outG,"G01 X%f Y%f Z%f (curve %i parm %f)\n",pt.X,pt.Y,pt.Z,i,j);
 * }

TopoDS_Wire
A TopoDS_Wire contains zero or more TopoDS_Edges. I think there may be zero or one break in the loop (i.e. doesn't have to be closed, but only one discontinuity is allowed)?

Offset from a TopoDS_Wire: http://code.google.com/p/cam-occ/source/browse/trunk/src/pathAlgo.cpp?r=17#197