warp.MeshQueryPoint#

class warp.MeshQueryPoint[source]#

Output for the mesh query point functions.

result#

Whether a point is found within the given constraints.

Type:

bool

sign#

A value < 0 if query point is inside the mesh, >=0 otherwise. Note that mesh must be watertight for this to be robust

Type:

float32

face#

Index of the closest face.

Type:

int32

u#

Barycentric u coordinate of the closest point.

Type:

float32

v#

Barycentric v coordinate of the closest point.

Type:

float32

__init__()#

Methods

Attributes

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