warp.MeshQueryRay#

class warp.MeshQueryRay[source]#

Output for the mesh query ray functions.

result#

Whether a hit is found within the given constraints.

Type:

bool

sign#

A value > 0 if the ray hit in front of the face, returns < 0 otherwise.

Type:

float32

face#

Index of the closest face.

Type:

int32

t#

Distance of the closest hit along the ray.

Type:

float32

u#

Barycentric u coordinate of the closest hit.

Type:

float32

v#

Barycentric v coordinate of the closest hit.

Type:

float32

normal#

Face normal.

Type:

vec3f

See also

mesh_query_ray().

__init__()#

Methods

Attributes

vars: ClassVar[dict[str, _Var]] = {'face': <warp._src.codegen.Var object>, 'normal': <warp._src.codegen.Var object>, 'result': <warp._src.codegen.Var object>, 'sign': <warp._src.codegen.Var object>, 't': <warp._src.codegen.Var object>, 'u': <warp._src.codegen.Var object>, 'v': <warp._src.codegen.Var object>}#