CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 05:44:01 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/facebookresearch/pytorch3d.git
etag: W/"2396e35fea4b83881a6393892d796109"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=4r8F47ERMLF9XasdItJF26mdhbuLvkbq%2FvUr1UbE0Z2sBExYqlhKGLPO1ysaNC2Jkn0u9XtVZd1RMfBcU6ifnYLaeYgyJvHXjFhHr1EU3KSHbDp4otY5cVNPrqV64wCZqzoMaxsBba6n7ZFOmW5JnmkaH3BfOK77A18oLkcBS9ayQ9LL7mC7gvxLMwNEYgC3lOIBAMlVKYTcOh7jV2tBXsdlgkH4uum36hhb0sLh9GDUuOHBGZFNazTYmaiLoCmQEjpvwyzgkWWomQOHrJLhYw%3D%3D--NCpf7W67YcjSqUNN--AdgIDMMtluRAwrSR6Rul0A%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1097683066.1753595040; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 05:44:00 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 05:44:00 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A55E:1C79A4:B1E23C:ECEE90:6885BCA0
CUDA/C++ Rasterizer updates to handle clipped faces · facebookresearch/pytorch3d@340662e · GitHub
Copy file name to clipboardExpand all lines: pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu
Copy file name to clipboardExpand all lines: pytorch3d/csrc/rasterize_meshes/rasterize_meshes.h
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit 340662e
CUDA/C++ Rasterizer updates to handle clipped faces
Summary:
- Updated the C++/CUDA mesh rasterization kernels to handle the clipped faces. In particular this required careful handling of the distance calculation for faces which are cut into a quadrilateral by the image plane and then split into two sub triangles i.e. both sub triangles can't be part of the top K faces.
- Updated `rasterize_meshes.py` to use the utils functions to clip the meshes and convert the fragments back to in terms of the unclipped mesh
- Added end to end tests
Reviewed By: jcjohnson
Differential Revision: D26169685
fbshipit-source-id: d64cd0d656109b965f44a35c301b7c81f451cfa01 parent 838b73d commit 340662eCopy full SHA for 340662e
File tree
Expand file treeCollapse file tree
12 files changed
+733
-46
lines changedFilter options
- pytorch3d
- csrc/rasterize_meshes
- renderer/mesh
- tests
- data
Expand file treeCollapse file tree
12 files changed
+733
-46
lines changedpytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu
Copy file name to clipboardExpand all lines: pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu+87-22Lines changed: 87 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
21 |
| - | |
| 20 | + | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
| |||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
| 114 | + | |
114 | 115 |
| |
115 | 116 |
| |
116 | 117 |
| |
| |||
173 | 174 |
| |
174 | 175 |
| |
175 | 176 |
| |
176 |
| - | |
177 | 177 |
| |
178 | 178 |
| |
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
182 |
| - | |
183 |
| - | |
184 |
| - | |
185 |
| - | |
186 |
| - | |
187 |
| - | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
188 | 218 |
| |
189 |
| - | |
190 |
| - | |
191 |
| - | |
192 |
| - | |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 |
| - | |
197 |
| - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
198 | 238 |
| |
199 | 239 |
| |
200 | 240 |
| |
201 | 241 |
| |
| 242 | + | |
202 | 243 |
| |
203 | 244 |
| |
204 | 245 |
| |
| |||
208 | 249 |
| |
209 | 250 |
| |
210 | 251 |
| |
| 252 | + | |
211 | 253 |
| |
212 | 254 |
| |
213 | 255 |
| |
| |||
265 | 307 |
| |
266 | 308 |
| |
267 | 309 |
| |
| 310 | + | |
268 | 311 |
| |
269 | 312 |
| |
270 | 313 |
| |
| |||
298 | 341 |
| |
299 | 342 |
| |
300 | 343 |
| |
| 344 | + | |
301 | 345 |
| |
302 | 346 |
| |
303 | 347 |
| |
| |||
313 | 357 |
| |
314 | 358 |
| |
315 | 359 |
| |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
316 | 364 |
| |
317 | 365 |
| |
318 | 366 |
| |
| |||
323 | 371 |
| |
324 | 372 |
| |
325 | 373 |
| |
326 |
| - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
327 | 377 |
| |
328 | 378 |
| |
329 | 379 |
| |
330 |
| - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
331 | 384 |
| |
332 | 385 |
| |
333 | 386 |
| |
| |||
358 | 411 |
| |
359 | 412 |
| |
360 | 413 |
| |
| 414 | + | |
361 | 415 |
| |
362 | 416 |
| |
363 | 417 |
| |
| |||
800 | 854 |
| |
801 | 855 |
| |
802 | 856 |
| |
| 857 | + | |
803 | 858 |
| |
804 | 859 |
| |
805 | 860 |
| |
| |||
858 | 913 |
| |
859 | 914 |
| |
860 | 915 |
| |
| 916 | + | |
861 | 917 |
| |
862 | 918 |
| |
863 | 919 |
| |
| |||
867 | 923 |
| |
868 | 924 |
| |
869 | 925 |
| |
| 926 | + | |
870 | 927 |
| |
871 | 928 |
| |
872 | 929 |
| |
| |||
906 | 963 |
| |
907 | 964 |
| |
908 | 965 |
| |
| 966 | + | |
909 | 967 |
| |
910 | 968 |
| |
911 | 969 |
| |
| |||
918 | 976 |
| |
919 | 977 |
| |
920 | 978 |
| |
| 979 | + | |
| 980 | + | |
| 981 | + | |
921 | 982 |
| |
922 | 983 |
| |
923 | 984 |
| |
924 |
| - | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
925 | 988 |
| |
926 |
| - | |
| 989 | + | |
| 990 | + | |
927 | 991 |
| |
928 | 992 |
| |
929 | 993 |
| |
| |||
961 | 1025 |
| |
962 | 1026 |
| |
963 | 1027 |
| |
| 1028 | + | |
964 | 1029 |
| |
965 | 1030 |
| |
966 | 1031 |
| |
|
pytorch3d/csrc/rasterize_meshes/rasterize_meshes.h
Copy file name to clipboardExpand all lines: pytorch3d/csrc/rasterize_meshes/rasterize_meshes.h+29Lines changed: 29 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
18 | 19 |
| |
19 | 20 |
| |
20 | 21 |
| |
| |||
28 | 29 |
| |
29 | 30 |
| |
30 | 31 |
| |
| 32 | + | |
31 | 33 |
| |
32 | 34 |
| |
33 | 35 |
| |
| |||
48 | 50 |
| |
49 | 51 |
| |
50 | 52 |
| |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
51 | 59 |
| |
52 | 60 |
| |
53 | 61 |
| |
| |||
90 | 98 |
| |
91 | 99 |
| |
92 | 100 |
| |
| 101 | + | |
93 | 102 |
| |
94 | 103 |
| |
95 | 104 |
| |
| |||
106 | 115 |
| |
107 | 116 |
| |
108 | 117 |
| |
| 118 | + | |
109 | 119 |
| |
110 | 120 |
| |
111 | 121 |
| |
| |||
120 | 130 |
| |
121 | 131 |
| |
122 | 132 |
| |
| 133 | + | |
123 | 134 |
| |
124 | 135 |
| |
125 | 136 |
| |
| |||
306 | 317 |
| |
307 | 318 |
| |
308 | 319 |
| |
| 320 | + | |
309 | 321 |
| |
310 | 322 |
| |
311 | 323 |
| |
| |||
322 | 334 |
| |
323 | 335 |
| |
324 | 336 |
| |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
325 | 343 |
| |
326 | 344 |
| |
327 | 345 |
| |
| |||
364 | 382 |
| |
365 | 383 |
| |
366 | 384 |
| |
| 385 | + | |
367 | 386 |
| |
368 | 387 |
| |
369 | 388 |
| |
| |||
378 | 397 |
| |
379 | 398 |
| |
380 | 399 |
| |
| 400 | + | |
381 | 401 |
| |
382 | 402 |
| |
383 | 403 |
| |
| |||
411 | 431 |
| |
412 | 432 |
| |
413 | 433 |
| |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
414 | 440 |
| |
415 | 441 |
| |
416 | 442 |
| |
| |||
456 | 482 |
| |
457 | 483 |
| |
458 | 484 |
| |
| 485 | + | |
459 | 486 |
| |
460 | 487 |
| |
461 | 488 |
| |
| |||
477 | 504 |
| |
478 | 505 |
| |
479 | 506 |
| |
| 507 | + | |
480 | 508 |
| |
481 | 509 |
| |
482 | 510 |
| |
| |||
490 | 518 |
| |
491 | 519 |
| |
492 | 520 |
| |
| 521 | + | |
493 | 522 |
| |
494 | 523 |
| |
495 | 524 |
| |
|
You can’t perform that action at this time.
0 commit comments