Groups
Sign in
Groups
Paper.js
Conversations
About
Send feedback
Help
Algorithm to add a path point, preserving path shape?
46 views
Skip to first unread message
Rick Mohr
unread,
Dec 9, 2022, 5:09:32 PM
12/9/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Paper.js
Please see writeup and sketches
here
. Any thoughts appreciated!
Rick
petejo...@gmail.com
unread,
Dec 10, 2022, 10:15:02 AM
12/10/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Paper.js
Assuming that you have a mousetool that can be used to click on a path then :
let location = hitResult.location;
path.divideAt(location);
Pete
Rick Mohr
unread,
Dec 10, 2022, 10:39:49 AM
12/10/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Paper.js
Thanks Pete, somehow missed that in the doc.
I also found (and implemented, oops) this
description of the algorithm
likely used by divideAt.
Reply all
Reply to author
Forward
0 new messages