Nikhila Ravi
23279c5f1d
Utils for clipping mesh faces partially behind the image plane
...
Summary:
Instead of culling faces behind the camera, partially clip them if they intersect with the image plane.
This diff implements the utils functions for clipping.
There are 4 cases for the mesh faces which are all handled:
```
Case 1: the triangle is completely in front of the clipping plane (it is left
unchanged)
Case 2: the triangle is completely behind the clipping plane (it is culled)
Case 3: the triangle has exactly two vertices behind the clipping plane (it is
clipped into a smaller triangle)
Case 4: the triangle has exactly one vertex behind the clipping plane (it is clipped
into a smaller quadrilateral and divided into two triangular faces)
```
Reviewed By: jcjohnson
Differential Revision: D23108673
fbshipit-source-id: 550a8b6a982d06065dff10aba10d47e8b144ae52
2021-02-05 18:30:15 -08:00
..
2020-12-18 07:25:50 -08:00
2020-11-10 21:27:01 -08:00
2020-01-23 11:53:46 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-12-18 07:25:50 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2021-01-05 03:39:24 -08:00
2020-11-03 13:06:35 -08:00
2020-12-09 09:18:11 -08:00
2020-12-15 14:15:32 -08:00
2021-01-05 03:59:20 -08:00
2021-01-20 13:08:35 -08:00
2021-01-06 06:23:48 -08:00
2021-01-06 06:23:48 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2021-02-03 18:24:27 -08:00
2020-10-14 20:22:09 -07:00
2020-11-10 09:38:05 -08:00
2021-01-22 07:33:31 -08:00
2021-02-03 18:24:27 -08:00
2020-12-24 10:16:03 -08:00
2020-05-04 09:56:44 -07:00
2020-04-17 07:44:16 -07:00
2020-04-24 09:11:04 -07:00
2020-05-05 11:09:45 -07:00
2020-04-24 09:11:04 -07:00
2020-08-07 01:59:58 -07:00
2020-07-29 16:11:23 -07:00
2020-07-02 16:09:05 -07:00
2020-07-29 05:01:07 -07:00
2020-12-18 07:25:50 -08:00
2020-03-29 14:51:02 -07:00
2020-03-29 14:51:02 -07:00
2020-11-30 11:38:04 -08:00
2020-03-29 14:51:02 -07:00
2021-01-27 17:32:16 -08:00
2020-03-29 14:51:02 -07:00
2021-01-22 07:33:31 -08:00
2021-01-07 15:40:11 -08:00
2020-04-06 06:41:00 -07:00
2020-04-24 09:11:04 -07:00
2020-07-16 10:19:43 -07:00
2021-01-07 15:40:11 -08:00
2020-06-15 10:11:26 -07:00
2021-01-22 07:33:31 -08:00
2021-02-03 18:24:27 -08:00
2020-11-10 21:27:01 -08:00
2021-01-06 04:23:26 -08:00
2020-08-21 20:42:17 -07:00
2020-12-09 09:18:11 -08:00
2020-12-15 14:15:32 -08:00
2020-12-15 14:15:32 -08:00
2020-08-20 22:22:06 -07:00
2021-01-05 03:59:20 -08:00
2021-01-06 04:01:29 -08:00
2021-01-06 06:23:48 -08:00
2021-02-05 18:30:15 -08:00
2020-12-17 04:10:56 -08:00
2020-12-14 15:28:04 -08:00
2020-11-03 13:06:35 -08:00
2021-01-06 06:23:48 -08:00
2020-03-29 14:51:02 -07:00
2020-10-21 06:23:28 -07:00
2020-10-06 09:17:58 -07:00
2020-08-21 20:42:17 -07:00
2020-05-10 13:15:37 -07:00
2021-01-04 09:42:52 -08:00
2020-03-29 14:51:02 -07:00
2021-01-25 06:09:56 -08:00
2021-01-21 04:58:40 -08:00
2020-04-17 10:39:43 -07:00
2021-01-05 03:39:24 -08:00
2020-01-23 11:53:46 -08:00