facebookresearch / facebookresearch/pytorch3d

Inside/Outside for watertight mesh?

Open
#892 2 comments 0 reactions 1 assignee Claimed by @nikhilaravi View on GitHub
enhancement
Dominant language
Python
Stars
10k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

Hello,

I would like to compute for a point in space it's inside or outside wrt my watertight mesh and then the distance to a face. I see that I can compute the latter by following [this](https://github.com/facebookresearch/pytorch3d/issues/193#issuecomment-627438317). How do I compute the `contains` [function](https://trimsh.org/trimesh.html#trimesh.Trimesh.contains) as in Trimsh? I could in principle do it with Trimsh but there seems to be [an open bug](https://github.com/mikedh/trimesh/issues/242) and I believe doing this in pytorch would be faster. Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.