---
title: "Spatial orientation and polygon tables"
subject: "Computer Graphics"
chapter: 6
key: "semester_5/computer_graphics:spatial-orientation-surface-significance"
source: https://www.bctengineer.com/q/semester_5/computer_graphics/spatial-orientation-surface-significance
site: BCT Engineering
---

# Spatial orientation and polygon tables

Computer Graphics · Chapter 6: Surface Modeling

- Asked in: 2072 Kartik, 8 marks
- Video: [Polygon Surfaces: 3D Object Representations](https://www.youtube.com/watch?v=NY53ihpQ2HM) — Prof. Brinal Colaco
- Answer checked by Claude Opus 5.5 (high effort) on 2026-10-14
- Page: https://www.bctengineer.com/q/semester_5/computer_graphics/spatial-orientation-surface-significance
- Whole chapter: https://www.bctengineer.com/md/semester_5/computer_graphics/chapter-6

## Question

Explain the significance of spatial orientation of a surface and polygon tables. Explain with example.

## Short answer

Spatial orientation of a surface is given by its plane equation Ax+By+Cz+D=0, with normal N=(A,B,C). It is significant for inside/outside tests, back-face culling, shading (N·L), clipping, and collision detection. Polygon tables store precomputed A,B,C,D for each face, computed from vertices, to support these operations efficiently.

## Answer

#### Spatial orientation of a surface
The orientation of a polygon surface in space is described by its plane equation Ax + By + Cz + D = 0, where the normal vector N = (A, B, C) is perpendicular to the surface. For three vertices taken in counter-clockwise order, N = (V2 − V1) × (V3 − V1) and D = −N · V1.

**Significance**
1. **Inside/outside test:** a point (x, y, z) is in front of the surface if Ax + By + Cz + D > 0 and behind it if < 0.
2. **Visible-surface detection:** back faces are found from the sign of V·N (V = viewing vector).
3. **Shading:** the angle between N and the light direction decides the diffuse intensity (cosθ = N·L).
4. **Clipping and collision tests:** which side of a plane a point lies on.
5. **Rendering:** normals are interpolated for Gouraud and Phong shading.

#### Polygon tables
Polygon tables (vertex, edge and surface tables) store the geometry in a form that is easy to process. The plane coefficients A, B, C, D of each surface are computed once from the vertex table and stored in the surface table, so they are available for visibility and shading.

**Example:** triangle P1(1,0,0), P2(0,1,0), P3(0,0,1)

```text
Vertex: V1 (1,0,0)  V2 (0,1,0)  V3 (0,0,1)
Edge:   E1 V1V2  E2 V2V3  E3 V3V1
Surface S1: E1 E2 E3,  N = (1,1,1), D = -1
```

N = (V2 − V1) × (V3 − V1) = (−1,1,0) × (−1,0,1) = (1,1,1). For the eye at (5,5,5): 5 + 5 + 5 − 1 = 14 > 0, so the front face is visible.

## Check yourself

The answer's key points as multiple-choice questions, with the correct option and why.

1. For counter-clockwise vertices, N equals:
   A. V1 + V2 + V3
   B. (V2 - V1) . (V3 - V1)
   C. (V2 - V1) x (V3 - V1)
   D. V1 - V3
   Answer: C. The cross product gives the normal; D = -N.V1. (Key point: Normal calc)

2. A point with Ax+By+Cz+D > 0 is:
   A. In front of (outside) the surface
   B. Behind the surface
   C. On the surface
   D. Not defined
   Answer: A. Positive means in front. (Key point: Inside/outside)

3. Diffuse intensity depends on:
   A. Surface area
   B. Number of vertices
   C. Edge lengths
   D. The angle between N and the light direction (cos theta = N.L)
   Answer: D. Lambert's law. (Key point: Shading)

4. For P1(1,0,0), P2(0,1,0), P3(0,0,1), the normal is:
   A. (1,1,1)
   B. (1,-1,0)
   C. (-1,1,0)
   D. (0,0,1)
   Answer: A. (-1,1,0) x (-1,0,1) = (1,1,1). (Key point: Example)

## Related in Computer Graphics

- [Spatial orientation / normal of a polygon](https://www.bctengineer.com/question.md?key=semester_5%2Fcomputer_graphics%3Aspatial-orientation-polygon-calculation) — Computer Graphics, chapter 6, asked 5×
- [Polygon tables to model Dharahara](https://www.bctengineer.com/question.md?key=semester_5%2Fcomputer_graphics%3Apolygon-vertex-edge-table-dharahara) — Computer Graphics, chapter 6
