dhart.raytracer.ResultStruct

class dhart.raytracer.ResultStruct

A struct of results containing distance, and meshid

If the ray didn’t hit anything, both distance and MeshID will be set to 0

[0] = distance to the hitpoint or 0 if no geometry was hit
[1] = The ID of the geometry hit, or 0 if no geometry was hit
__init__(*args, **kwargs)

Methods

Attributes

distance

Structure/Union member

meshid

Structure/Union member