Triangles and projection
A mesh describes an object's surface, not a volume filled with tiny triangles. Vertex positions locate corners; connectivity specifies which triples form filled triangular patches. Coordinates alone do not say which points belong together. Positions need not lie on integer grid intersections.
Connecting points into a surface
For a wall, choose A=(-1,1,0), B=(1,1,0), C=(1,-1,0), D=(-1,-1,0). Faces ABC and ACD cover the rectangle and share diagonal AC. In an indexed mesh, both faces refer to the same stored A and C vertices. The diagonal is a construction boundary, not necessarily a visible seam. Material and shading can vary throughout each triangle. The Three.js BufferGeometry square example shows this distinction between stored vertices and indices connecting them.
Three non-collinear points uniquely define a flat plane and bounded triangular patch. Four arbitrary 3D points need not be coplanar: lift one corner of a rectangle and a single flat quadrilateral no longer fits. Splitting along a diagonal defines two unambiguous flat patches. Triangles are a convenient, GPU-supported surface representation, not a requirement for all rendering; spheres and other surfaces can be represented differently.
Projecting the surface onto an image
For perspective projection, imagine a transparent pane between your eye and an object. Mark where each sightline from the eye to a corner crosses the pane. Those marks are the 2D projected vertices. Joining them gives the projected triangle. Farther objects occupy a smaller angle and therefore a smaller shape on the pane. The renderer computes this mapping from the camera, then rasterization identifies covered pixel samples; depth information helps resolve overlaps.
For a flat wall, two triangles can cover the entire wall. Millions of shaded pixels can display grain and changing highlights inside those two faces. More geometry is needed when actual shape must change, such as a curved outline or displaced relief, not merely for every visible texture detail. Path tracers can also use triangle meshes; triangles do not distinguish rasterization from path tracing.