Page MenuHome

Object.ray_cast() fails with RuntimeError if no faces / 3rd return value insufficient documented
Closed, ArchivedPublic

Description

--- Operating System, Graphics card ---
Windows 7

--- Blender version with error, and version that worked ---
2.66

--- Short description of error ---
ray_cast() fails, should rather return (Vector((0,0,0)), Vector((0,0,0)), -1)

The 3rd return value isn't well explained in docs, -1 = failed, what are possible other values? (2 = successful as it seems, but when will it be 0 and can it be 1 at all?)


--- Steps for others to reproduce the error (preferably based on attached .blend file) ---
See attached .blend for RuntimeError

Event Timeline

codemanx edited a custom field.Apr 5 2013, 5:21 AM

Nevermind my claim for better documentation of the 3rd return value, it's the face index if successful - i should had read the docs with more attention

Ton Roosendaal (ton) changed the task status from Unknown Status to Archived.Apr 5 2013, 11:14 AM

No word on the RuntimeError, Ton?