Skip to content

Commit

Permalink
update transform: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yfeng95 committed Jul 18, 2018
1 parent c50021d commit a70f2f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions face3d/mesh/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def lookat_camera(vertices, eye, at = None, up = None):
return transformed_vertices

## --------- 3d-2d project. from camera space to image plane
# generally, image plane only keeps x,y channels, here reserve z channel for calculating z-buffer.
def orthographic_project(vertices):
''' scaled orthographic projection(just delete z)
assumes: variations in depth over the object is small relative to the mean distance from camera to object
Expand Down

0 comments on commit a70f2f2

Please sign in to comment.