Comments (4)
Related: a method to check whether points are inside meshes, see dimforge/ncollide#317
from parry.
Hi! The solid
flags indicates that the projection will be the point itself if it lies on the interior of the shape. But in 3D, our TriMesh
has no interior by definition, therefore the solid
flag is meaningless. It does have a meaning in 2D though (because in 2D triangles have an interior).
The ray-cast based alternative you suggested in dimforge/ncollide#317 remains the best way of doing this. Maybe we could provide it as an inherent method of TriMesh
?
from parry.
That would certainly be useful to me, although my use case may be atypical (generic mesh queries rather than game engine specific). It's made a bit harder by this bug dimforge/ncollide#335 ; it's safest to fire a number of rays in different directions and find the consensus. I also haven't found any references to backfaces in the codebase, although I haven't been able to search too deeply yet.
from parry.
This issue is potentially resolved by oriented trimeshes now doing an actual containment check for contains{_local}_point
, which is great news! Will do a bit more testing on my end before closing.
from parry.
Related Issues (20)
- Documentation and source code inconsistencies
- QBVH `rebalance` still panics at 'attempt to add with overflow' HOT 6
- Export `size_32/size_64` features from `rkyv` HOT 1
- Add method to scale an AABB wrt its center HOT 1
- Contact query giving incorrect result for Frustums HOT 5
- Pathtracer ?
- Large convex hulls produce incorrect contact manifolds HOT 2
- Ray casts which touch a TriMesh edge report intersection with a backface HOT 1
- Point in polygon 2D test failure
- Doc info for VHACD best parameters
- `Aabb::vertices()` returns the vertices in incorrect order
- Entered unreachable code HOT 4
- Implement Debug for TriMesh HOT 1
- Incorrect docs in TriMeshFlags
- `time_of_impact_support_map_support_map` returns `None` when it shouldn't with very specific inputs HOT 2
- Convex decomposition in 2d produces bad shapes HOT 3
- Matrix index out of bounds when using convex decomposition 2d
- Shape casting returns incorrect normals
- project_local_point fails to find the correct projection when the point lies on a triangle edge
- panicked at epa3.rs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parry.