Image Inspirations
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F91db4c98-957f-4287-ba7e-701de676c4ee%2FUntitled.jpeg?id=88e4dda7-6aca-4683-abed-221380e9445f&table=block)
Results
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F8a5b5f42-d241-4ac0-890a-a7c62421dec4%2FUntitled.png?id=e78819c7-f061-4f2c-85d0-18fb64ef310c&table=block)
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fa6db3420-49fa-433c-b462-6d65bb61a54d%2FUntitled.png?id=da8e5046-781c-448e-910b-a8da14f5ae72&table=block)
Code Description
For both of the images above the same code was implemented. The surface closest point function was used to determine the inputs into the image sampler. This function was passed the area of the panels and the reparametrized lofted surfaces. In order to flip the wall image, the pick and choose function was implemented. This essentially multiplied the points from the surface closest point function by 1 or -1. Choosing -1 would result the image being flipped. I was unable to provide a toggle option for mirroring the images. However, if you switch the original bounds of the x and y bounds on the image sampler it mirrors the image. The code also includes the ability to rotate the image by any degree which at 180 degrees would result in a mirrored image. Although the functions do work, due to run time of images the flipped and mirror images are not shown. This is because a lot of panels were necessary to produce a clear image. For the wall the code also extrudes the panels using a slider that determines the extrude distance. In order to complete this, the vector containing the image in the y-direction was multiplied by the extrude distance. Below are the two code blocks that achieved these tasks.
Wall Image Code:
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fa8a91bdb-e7fd-4566-8dd7-378671fcf4b4%2FUntitled.png?id=28edcb04-edd1-4a72-92fb-c72e7c11ad36&table=block)
Roof Image Code:
![image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F9b8c47f9-6799-4ee3-8dce-49b532621289%2FUntitled.png?id=be234b30-e381-4f8f-85b3-13792ec51a5c&table=block)