FANDOM



TopoDS_EdgeEdit

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<=last;j=j+(last-first)/100) {
gp_Pnt pt = C->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_WireEdit

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

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.