//---------------------------------------------------------- void ofPath::moveTo(const ofPoint & p){ if(mode==PATHS){ if(lastPath().size()>0) newSubPath(); lastPath().addCommand(ofSubPath::Command(ofSubPath::Command::lineTo,p)); hasChanged = true; }else{ if(lastPolyline().size()>0) newSubPath(); lastPolyline().addVertex(p); bNeedsTessellation = true; } }
//---------------------------------------------------------- void ofPath::moveTo(const ofPoint & p){ if(mode==COMMANDS){ addCommand(Command(Command::moveTo,p)); }else{ if(lastPolyline().size()>0) newSubPath(); lastPolyline().addVertex(p); } flagShapeChanged(); }
void Context::circle( double dx, double dy, double radius ) { newSubPath(); arc( dx, dy, radius, 0, 2 * 3.14159265 ); }