from IPython.display import Image
from matplotlib import pyplot as pltImage(filename="images/q1/cow_render.gif")
Image(filename="images/q1/dolly_zoom.gif")
Number of vertices and face:
from IPython.display import HTML
HTML('''
<div style="display:flex; justify-content:space-around;">
<img src="images/q2/tetrahedron_render.gif" width="200"/>
<img src="images/q2/cube_render.gif" width="200"/>
</div>
''')
color1 = [0.0, 0.8, 0.0], pure green | color2 = [0.0, 0.0, 0.8], pure blue
Image(filename="images/q3/retexture.gif")
fig, axs = plt.subplots(2, 2, figsize=(10, 10))
axs[0, 0].imshow(plt.imread("images/q4/transform_config1.jpg"))
axs[0, 0].set_title("Config 1")
axs[0, 1].imshow(plt.imread("images/q4/transform_config2.jpg"))
axs[0, 1].set_title("Config 2")
axs[1, 0].imshow(plt.imread("images/q4/transform_config3.jpg"))
axs[1, 0].set_title("Config 3")
axs[1, 1].imshow(plt.imread("images/q4/transform_config4.jpg"))
axs[1, 1].set_title("Config 4")
plt.show()
image 1 | image 2 | image 1 + 2
from IPython.display import HTML
HTML('''
<div style="display:flex; justify-content:space-around;">
<img src="images/q5/pcd_render_0.gif" width="200"/>
<img src="images/q5/pcd_render_1.gif" width="200"/>
<img src="images/q5/pcd_render_2.gif" width="200"/>
</div>
''')
We rendered both the sphere and a custom object with point-cloud mode. Each object is rendered with 100 and 1000 points.
from IPython.display import HTML
HTML('''
<div style="display:flex; justify-content:space-around;">
<img src="images/q5/sphere_parametric_100.gif" width="200"/>
<img src="images/q5/sphere_parametric_1000.gif" width="200"/>
</div>
<div style="display:flex; justify-content:space-around;">
<img src="images/q5/custom_parametric_100.gif" width="200"/>
<img src="images/q5/custom_parametric_1000.gif" width="200"/>
</div>
''')
Rendering with implicit v.s. perametric representations
from IPython.display import HTML
HTML('''
<div style="display:flex; justify-content:space-around;">
<img src="images/q5/sphere_implicit_100.gif" width="200"/>
<img src="images/q5/custom_implicit_100.gif" width="200"/>
</div>
''')
I downloaded a model from printables, a 3D printing model website, and rendered it.
from IPython.display import HTML
HTML('''
<div style="display:flex; justify-content:space-around;">
<img src="images/q6/whistle_render.gif" width="200"/>
</div>
''')