71 const float &width,
const float &height,
const float &
depth):
86 float maxSqrDist,
float maxDist,
87 std::vector<Vec> &result);
90 float maxSqrDist,
float maxDist,
91 std::vector<Vec> &result,
92 std::vector<AABB> &boxes, std::vector<Vec> &points);
100 std::vector<AABB> &boxes, std::vector<Vec> &points)
const;
undocument this line if you encounter any issues!
Definition: Any.h:37
#define ICLGeom_API
Definition: CompatMacros.h:179
~RayCastOctreeObject()
destructor
Definition: RayCastOctreeObject.h:79
The OctreeObjects provides a visualizable SceneObject interface for the Octree class.
Definition: OctreeObject.h:129
ICLGeom_API Vec rayCastClosest(const ViewRay &ray, float maxDist=1) const
casts a ray and returns the point closest to the ray-offset
ICLGeom_API std::vector< Vec > rayCastSort(const ViewRay &ray, float maxDist=1) const
as ray cast, but sorts the points by distance to the ray-offset
static void ray_cast_sqr_rec(const Super::Node *n, const ViewRay &ray, float maxSqrDist, float maxDist, std::vector< Vec > &result)
internal worker method for recursive ray cast
OctreeObject< float, 16, 1, Vec, 1024 > Super
Definition: RayCastOctreeObject.h:67
RayCastOctreeObject(const float &minX, const float &minY, const float &minZ, const float &width, const float &height, const float &depth)
creates a QuadTree for the given 2D rectangle
Definition: RayCastOctreeObject.h:70
RayCastOctreeObject(const float &min, const float &len)
creates a QuadTree for the given 2D rectangle
Definition: RayCastOctreeObject.h:75
This is a view-ray's line equation in parameter form.
Definition: ViewRay.h:49
static void ray_cast_sqr_rec_debug(const RayCastOctreeObject::Super::Node *n, const ViewRay &ray, float maxSqrDist, float maxDist, std::vector< Vec > &result, std::vector< AABB > &boxes, std::vector< Vec > &points)
depth
determines the pixel type of an image (8Bit-int or 32Bit-float)
Definition: Types.h:60
Special Octree implemenation that supports to query points close to caste rays.
Definition: RayCastOctreeObject.h:66
ICLGeom_API std::vector< Vec > rayCastDebug(const ViewRay &ray, float maxDist, std::vector< AABB > &boxes, std::vector< Vec > &points) const
casts a ray and returns all points that are closer than given distance to ray
ICLGeom_API std::vector< Vec > rayCast(const ViewRay &ray, float maxDist=1) const
casts a ray and returns all points that are closer than given distance to ray