Thanks a lot!
Thanks method is really good for edge and curve but a bit not sufficient to sample the vertex! --- In svg-developers@yahoogroups.com, Holger Will <[EMAIL PROTECTED]> wrote: > oops , there is a little bug in the code just posted ! > > > > > var len = path.getTotalLength(); > > var d = len/1000; > > var p=path.getPointAtLength(0) > > stp=p.x+","+p.y > > for(var i=1; i<=1000; i++){ <--------------------- changed line > > p=path.getPointAtLength(i*d) > > stp=stp+","+p.x+","+p.y > > } > > polygon.setAttribute("points",stp) > > > > ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/