Allowed for more complex models than triangles.

Signed-off-by: strandtentje <verkeerslicht@gmail.com>