CARVIEW |
Select Language
HTTP/2 200
date: Mon, 28 Jul 2025 08:38:28 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/"f6e6deb43e5343843e2018808d9053ae"
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=Vq%2BfNQNx3Ff4TVpq%2FPRXJT8Xxk8hsQgwN%2FdNvirInXCo8a2cm%2FZiClg2CzQTFFQNNv4HSG7Cto7ZLQjUJ65dxajEzQvpemqx6qkCC2Ik4kxoMhlO1IxQU5As4lrcDJOoqrvDUgesIxYeJxHRFCEhWfsJlBT%2FOvslEJaDRx3B2LNR8jgXfF0hiMAZA38mOE%2BSv5%2FFTNd%2FQAIcEr2QnxrrfkXeSrw5yvixQIyUYqAs9378OEAWekjdV0A3dK%2F%2FUfM6%2FBmzd4MjiyNHPdgLt%2FGNLA%3D%3D--ghmJbTvkTkhwAiVN--uBDzNXJ3xgtZ1HfYBL%2Ba9A%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1986303796.1753691907; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 08:38:27 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 08:38:27 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E604:5FFA9:1781AA1:1E63E8B:68873703
Temporary fix for mesh rasterization bug for traingles partially behi… · facebookresearch/pytorch3d@9aaba04 · 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_cpu.cpp
Copy file name to clipboardExpand all lines: pytorch3d/renderer/mesh/rasterize_meshes.py
Copy file name to clipboardExpand all lines: tests/test_rasterize_meshes.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit 9aaba04
Temporary fix for mesh rasterization bug for traingles partially behind the camera
Summary: A triangle is culled if any vertex in a triangle is behind the camera. This fixes incorrect rendering of triangles that are partially behind the camera, where screen coordinate calculations are strange. It doesn't work for triangles that are partially behind the camera but still intersect with the view frustum.
Reviewed By: nikhilaravi
Differential Revision: D22856181
fbshipit-source-id: a9cbaa1327d89601b83d0dfd3e4a04f934a4a2131 parent 57a22e7 commit 9aaba04Copy full SHA for 9aaba04
File tree
Expand file treeCollapse file tree
4 files changed
+39
-8
lines changedFilter options
- pytorch3d
- csrc/rasterize_meshes
- renderer/mesh
- tests
Expand file treeCollapse file tree
4 files changed
+39
-8
lines changedpytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu
Copy file name to clipboardExpand all lines: pytorch3d/csrc/rasterize_meshes/rasterize_meshes.cu+13-4Lines changed: 13 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
93 | 97 |
| |
94 |
| - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
95 | 101 |
| |
96 | 102 |
| |
97 | 103 |
| |
| |||
625 | 631 |
| |
626 | 632 |
| |
627 | 633 |
| |
628 |
| - | |
| 634 | + | |
629 | 635 |
| |
630 |
| - | |
631 |
| - | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
632 | 641 |
| |
633 | 642 |
| |
634 | 643 |
| |
|
pytorch3d/csrc/rasterize_meshes/rasterize_meshes_cpu.cpp
Copy file name to clipboardExpand all lines: pytorch3d/csrc/rasterize_meshes/rasterize_meshes_cpu.cpp+11-4Lines changed: 11 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
71 | 75 |
| |
72 |
| - | |
| 76 | + | |
73 | 77 |
| |
74 | 78 |
| |
75 | 79 |
| |
| |||
468 | 472 |
| |
469 | 473 |
| |
470 | 474 |
| |
471 |
| - | |
| 475 | + | |
472 | 476 |
| |
473 |
| - | |
474 |
| - | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
475 | 482 |
| |
476 | 483 |
| |
477 | 484 |
| |
|
pytorch3d/renderer/mesh/rasterize_meshes.py
Copy file name to clipboardExpand all lines: pytorch3d/renderer/mesh/rasterize_meshes.py+7Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
301 | 301 |
| |
302 | 302 |
| |
303 | 303 |
| |
| 304 | + | |
304 | 305 |
| |
305 | 306 |
| |
306 | 307 |
| |
| |||
351 | 352 |
| |
352 | 353 |
| |
353 | 354 |
| |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
354 | 361 |
| |
355 | 362 |
| |
356 | 363 |
| |
|
tests/test_rasterize_meshes.py
Copy file name to clipboardExpand all lines: tests/test_rasterize_meshes.py+8Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
552 | 552 |
| |
553 | 553 |
| |
554 | 554 |
| |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
555 | 559 |
| |
556 | 560 |
| |
557 | 561 |
| |
| |||
563 | 567 |
| |
564 | 568 |
| |
565 | 569 |
| |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
566 | 574 |
| |
567 | 575 |
| |
568 | 576 |
| |
|
You can’t perform that action at this time.
0 commit comments