CS 3451 Project 04:
Morphing Between Polyloops
Download Project
Or
View Project
Background
Preview of project 3 This project computes the smooth trajectories of the control points of a specified number of polyloops. The intermediate smooth frames of the trajectories may be viewed or an animation can be played that will cycle through the frames one at a time.The four-point subdivision algorithm was used (as required) to compute the smooth trajectories.
How the Four-Point Subdivision Algorithm works
The four-point subdivision algorithm is a smoothing algorithm that works by finding the midpoint between every edge of a polyloop and bulging that midpoint outwards by a certain displacement. This algorithm leaves the original vertices where they are, but because of the inserted mid-points, it will end up doubling the number of verticies of the polyloop everytime.The algorithm gets its name because it takes four points, or vertices, to calculate the location and displacement of a mid-edge point by displacing the mid-point away from the average of its neighbors.
For example, for vertices A, B, C, and D of a polyloop, for edge AB and DC, you would extend B and D by a certain factor, in our case by 9/8, then find the midpoint of the line that connects the newly displaced points.
