Table of Contents

Method b3QueryMesh

Namespace
Box3D.Native
Assembly
Box3D.NET.Native.dll

b3QueryMesh(b3Mesh*, b3AABB, delegate* unmanaged[Cdecl]<Vector3, Vector3, Vector3, int, void*, NativeBool>, void*)

Query a mesh for triangles overlapping a bounding box in local space. May have false positives. Useful for debug draw.

public static extern void b3QueryMesh(b3Mesh* mesh, b3AABB bounds, delegate* unmanaged[Cdecl]<Vector3, Vector3, Vector3, int, void*, NativeBool> fcn, void* context)

Parameters

mesh b3Mesh*

the mesh to query, includes scale

bounds b3AABB

the bounding box in local space

fcn delegate* unmanaged[Cdecl]<Vector3, Vector3, Vector3, int, void*, NativeBool>

a user function to collect triangles

context void*

the context sent to the user function.