We need your help! 🔥
Please consider disabling your ad-blocker to support this website! 🔑
We are a free, community-supported website! 🥰
We only display small unobtrusive ads which help us stay online! 💯
Thank you in advance! ❤️
Brep
Curve
Utilities
Vector

Fast Mesh-Ray Intersect

Multi-threaded mesh-ray intersection with bounding box check

Inputs

NameIDDescriptionType
MeshesMMeshes as list. Do not join disjointed meshes if computing bounding boxes for fastest calculations.Mesh
Ray StartPStart point of ray. Each list acts as a bucket calculated on a single thread.Point
Ray DirectionVDirection of ray. Each list acts as a bucket calculated on a single thread.Vector

Outputs

NameIDDescriptionType
HitHBoolean indicating hit or missBoolean
Collision IndexIIndex of mesh which the ray colides withInteger
Ray ParameterTDistance to nearest intersection. -1 on missNumber

Site design © Robin Rodricks.   Sasquatch and associated data © 2024 Scott Overall, SHoP Architects.  
Rhinoceros and Grasshopper are registered trademarks of Robert McNeel & Associates.  Hosted by GitHub

Report an Issue  |  Terms of Service