March 2017
Intermediate to advanced
480 pages
11h 3m
English
Now that we have some 3D primitives defined, it's time to implement some simple point tests for them. In this chapter, we are going to implement the following point-related test functions:
For each primitive (other than the point) we will implement two test functions. The first function will tell us if a point is located inside or on the surface of a primitive. The second test will tell us what the closest point on the primitive is to a test point.
Read now
Unlock full access