Skip to content

Commit

Permalink
small
Browse files Browse the repository at this point in the history
  • Loading branch information
nobuyuki83 committed Jul 1, 2024
1 parent f18a673 commit 3621b7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion task09/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,14 @@ The program will output `out.png`. Rename it to `out_default.png` then it replac

![problem1](out_default.png)

This code only move the position of fixed vertex. Let's deform other vertices to make hte deformation smooth!


## Problem 2 (smooth deformation with Laplacian)

Write a few lines of code around line #134 to implement smooth mesh deformation using Laplacian.

The program will output `output.png`. Rename it to `out_laplacian.png` then it replaces the image below.
The program will output `out.png`. Rename it to `out_laplacian.png` then it replaces the image below.

![problem1](out_laplacian.png)

Expand Down
2 changes: 1 addition & 1 deletion task09/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def render(self, time, frame_time):
if rgb.shape[0] == 1000:
rgb = rgb[::2, ::2, :].copy('C')
rgb = Image.fromarray(rgb)
ImageOps.flip(rgb).save("output.png")
ImageOps.flip(rgb).save("out.png")


def main():
Expand Down

0 comments on commit 3621b7b

Please sign in to comment.