Name: Tashvik Dhamija



Vertices: 4 | Faces: 4

Vertices: 8 | Faces: 12

color1 = [0, 0, 1] (blue) is assigned to the front of the cow (smallest z), and color2 = [1, 0, 0] (red) to the back (largest z), linearly interpolated per vertex by z-coordinate.


R_relative = [[0,1,0],[-1,0,0],[0,0,1]], T_relative = [0,0,0].
A pure roll: the camera rotates 90° about its own viewing axis (z), so the cow appears rotated within the image plane. No translation needed.

R_relative = [[0,0,1],[0,1,0],[-1,0,0]], T_relative = [-3,0,3].
The camera yaws 90° about the y-axis to look from the side, and T_relative moves the camera to a new position beside the cow so it stays centered and in front of the lens. Pure rotation alone would put the cow out of the camera's view frustum.

R_relative = identity, T_relative = [0,0,2].
Pure translation along the camera's viewing axis. The camera moves farther from the cow, so it appears smaller (zoomed out). No rotation.

R_relative = identity, T_relative = [0.5,-0.5,0].
Pure lateral translation. The camera shifts sideways and vertically, changing the framing without any rotation or change in distance.








| Basis | Mesh (implicit surface) | Point Cloud (parametric) |
|---|---|---|
| Rendering speed | Slower to build. Requires voxelizing a full 3D grid and running marching cubes, cost scales with voxel_size³. | Fast. Points come directly from evaluating a parametric equation on a 2D grid, no voxelization step. |
| Rendering quality | Continuous, smoothly shaded surface since triangles interpolate normals across their area. Looks solid even at moderate resolution. | No true surface. Gaps show through at low sample density and there is only per-point color, no continuous shading. |
| Ease of use | More setup: define an implicit function, choose a bounding box and voxel resolution, run marching cubes, then build the mesh. | Simpler: define the parametric equations and sample directly, no extra extraction step. |
| Memory usage | Face count depends on marching cubes resolution and can grow quickly (voxel_size³), even for simple shapes. | Memory scales directly and predictably with the number of points sampled. |






Points are sampled via area-weighted face selection (torch.multinomial over per-face triangle area) followed by a uniform random barycentric coordinate on the chosen face, so larger triangles receive proportionally more samples.