Yanni Zhao

Original Image
Original Image
image

For this assignment, I continued my work on the dynamo script from last module. I used the roof surface as my main workspace. Then, I subdivided the surface into a UV grid. The number of panels can be easily altered by using the slider to change the number of panels in U and V directions.

After reading the image file, I converted its pixel data information into a list with the same U and V reference points. Then I mapped the image to the surface. Besides, I also used the transpose function to change the arrangement of each element in the list to make sure that the mapped image matches the original one.

Moreover, to provide options of the direction of image on the surface, I created several lists by implementing transpose and reverse functions on the original list. In this way, choosing different list for mapping can flip the image horizontally, vertically or in both directions. Then, I used a code block for the user to choose how they want to change the image.

image
image
Flipped Image 1
Flipped Image 1
image

Flipped Image 2