Question: Algorithm 6 : [ 4 pts ] Create a function that deforms an input curve by point handles. Use the basic form of the distortion

Algorithm 6: [4 pts] Create a function that deforms an input curve by point handles. Use the basic form of the distortion energy term without compensating for rotation or scaling (Slide 14). The input/output are:
INPUT:
curve: a polyline to be deformed (it could be either an open or closed curve).
vinds: indices of vertices that are "handles"
tgts: target locations of the handle vertices (i.e., the vertex in curve with index vinds[[i]] should move to location tgts[[i]])
w: the balancing weight for the distortion energy (see Slide 51 of the lecture).
OUTPUT: a polyline with the deformed vertex locations.
deformLaplace[curve_, vinds_, tgts_, w_] :=

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!