Skip to main content

Polygon tables to model Dharahara

Short answer

A polygon is a closed plane figure bounded by straight edges. The vertex table stores (x,y,z) coordinates of each vertex; the edge table stores pairs of vertex identifiers. To model Dharahara, define vertices for a tapered shaft frustum and spire tip, create edges connecting them, and define surfaces as edge loops (e.g., side quadrilaterals and spire triangles) using these tables.

Describe polygon, vertex and edge table. How can these terms be used to construct a model of Dharahara?

Polygon

A polygon is a closed plane figure bounded by straight line segments (edges). Polygons (usually triangles and quadrilaterals) are the basic surface elements used to describe 3D objects.

Vertex table

Stores the coordinates (x, y, z) of each vertex of the object once, with an identifier V1, V2, ...

Edge table

Stores each edge as a pair of vertex identifiers (and optionally the polygons sharing it), e.g. E1: V1 V2.

(The surface/polygon table stores each face as a list of its edges, e.g. S1: E1 E2 E3 E4.)

Modelling Dharahara

Dharahara (Bhimsen Tower) is a tall, tapering tower with a base shaft, a balcony and a pointed top. A simple model: a tapered square shaft (a frustum) with a pyramid-shaped spire on top.

Assumed vertices (units are arbitrary):

  • Base square (z = 0): V1 (−2,−2,0), V2 (2,−2,0), V3 (2,2,0), V4 (−2,2,0)
  • Shaft top (z = 8): V5 (−1,−1,8), V6 (1,−1,8), V7 (1,1,8), V8 (−1,1,8)
  • Spire tip: V9 (0,0,10)
Vertex: V1..V9 with coordinates above
Edge table:
 base:   E1 V1V2   E2 V2V3   E3 V3V4   E4 V4V1
 top:    E5 V5V6   E6 V6V7   E7 V7V8   E8 V8V5
 shaft:  E9 V1V5   E10 V2V6  E11 V3V7  E12 V4V8
 spire:  E13 V5V9  E14 V6V9  E15 V7V9  E16 V8V9
Surface table:
 S1 side:  E1 E10 E5 E9
 S2 side:  E2 E11 E6 E10
 S3 side:  E3 E12 E7 E11
 S4 side:  E4 E9 E8 E12
 S5 spire: E5 E14 E13     S6: E6 E15 E14
 S7 spire: E7 E16 E15     S8: E8 E13 E16
 S9 base:  E1 E2 E3 E4

More detail (balconies, windows, the round dome) is added by more vertices and polygons. The real tower can be refined by adding extra stacked frusta for each storey, and an octagonal or circular cross-section for a better approximation.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computer Graphics chapter 6 questions →