- 2069 Asar · 10 marks
Visibility of triangle ABC from (5,5,5)
Short answer
Compute normal N=(1,1,1) and viewer vector V=(4,5,5). Dot product is 14 >0, so the face is a front face and visible from (5,5,5).
Given a triangular object ABC having A(1,0,0), B(0,1,0) and C(0,0,1), if the observer is at point (5,5,5), is the face ABC visible?
Vertices A(1,0,0), B(0,1,0), C(0,0,1); observer at P(5,5,5).
Step 1: normal of ABC (vertex order A → B → C, so the normal points away from the origin)
AB = B − A = (−1, 1, 0), AC = C − A = (−1, 0, 1)
N = AB × AC = (1·1 − 0·0, 0·(−1) − (−1)·1, (−1)·0 − 1·(−1)) = (1, 1, 1)
Step 2: plane equation
x + y + z + D = 0; at A: 1 + D = 0, so D = −1. Plane: x + y + z − 1 = 0 (A = B = C = 1).
Step 3: vector to the observer
V = P − A = (5−1, 5−0, 5−0) = (4, 5, 5)
Step 4: test
V · N = 4·1 + 5·1 + 5·1 = 14 > 0
Since V · N > 0, the face points towards the observer, so it is a front face and is visible.
Check using the plane: substituting the observer's position gives 5 + 5 + 5 − 1 = 14 > 0, so the eye is on the outside (positive) side of the plane, and the face is visible.
Answer: face ABC is visible from (5, 5, 5).
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Back-face visibility of BED and ABCD · Computer Graphics, chapter 7
- Scan-line method of visible surface · Computer Graphics, chapter 7 · asked 3×
- Back-face detection algorithm · Computer Graphics, chapter 7 · asked 8×
- Image space versus object space methods · Computer Graphics, chapter 7 · asked 9×
- Reflect triangle about 3X-4Y+8=0 · Computer Graphics, chapter 3 · asked 2×
- Rotate triangle 45° about (3,3) · Computer Graphics, chapter 3
- Suspension bridge triangle ABC; span AB · Surveying I, chapter 7
- Resection point O inside triangle N, P, G · Surveying II, chapter 5
- Horizontal angles from field notes, triangle ABC · Surveying I, chapter 7
- Singleton class and visibility types · Object Oriented Analysis and Design, chapter 3