Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions cuBQL/queries/pointData/findClosest.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace cuBQL {
/*! square of the maximum query distance in which
this query is to look for candidates. note
this is the SQUARE distance */
float squareOfMaxQueryDistance=INFINITY);
float squareOfMaxQueryDistance=PosInfTy());

/*! given a (W-wide) bvh build over a set of float<N> points,
perform a closest-point query that returns the index of the
Expand Down Expand Up @@ -77,7 +77,7 @@ namespace cuBQL {
/*! square of the maximum query distance in which
this query is to look for candidates. note
this is the SQUARE distance */
float squareOfMaxQueryDistance=INFINITY);
float squareOfMaxQueryDistance=PosInfTy());


template<typename T, int D>
Expand All @@ -95,7 +95,7 @@ namespace cuBQL {
/*! square of the maximum query distance in which
this query is to look for candidates. note
this is the SQUARE distance */
float squareOfMaxQueryDistance=INFINITY);
float squareOfMaxQueryDistance=PosInfTy());

template<typename T, int D>
/*! same as regular points::closestPoint, but excluding all data
Expand All @@ -112,7 +112,7 @@ namespace cuBQL {
/*! square of the maximum query distance in which
this query is to look for candidates. note
this is the SQUARE distance */
float squareOfMaxQueryDistance=INFINITY);
float squareOfMaxQueryDistance=PosInfTy());

#ifdef __CUDACC__
// ******************************************************************
Expand All @@ -128,7 +128,7 @@ namespace cuBQL {
/*! square of the maximum query distance in which
this query is to look for candidates. note
this is the SQUARE distance */
float squareOfMaxQueryDistance=INFINITY);
float squareOfMaxQueryDistance=PosInfTy());

// ******************************************************************
/*! variant of cuBQL::point::findClosest() that's specialized for
Expand All @@ -143,7 +143,7 @@ namespace cuBQL {
/*! square of the maximum query distance in which
this query is to look for candidates. note
this is the SQUARE distance */
float squareOfMaxQueryDistance=INFINITY);
float squareOfMaxQueryDistance=PosInfTy());

// ******************************************************************
/*! variant of cuBQL::point::findClosest() that's specialized for
Expand All @@ -158,7 +158,7 @@ namespace cuBQL {
/*! square of the maximum query distance in which
this query is to look for candidates. note
this is the SQUARE distance */
float squareOfMaxQueryDistance=INFINITY);
float squareOfMaxQueryDistance=PosInfTy());
#endif

// ******************************************************************
Expand All @@ -179,7 +179,7 @@ namespace cuBQL {
/*! square of the maximum query distance in which
this query is to look for candidates. note
this is the SQUARE distance */
float squareOfMaxQueryDistance=INFINITY)
float squareOfMaxQueryDistance=PosInfTy())
{
int closestID = -1;
float closestSqrDist = squareOfMaxQueryDistance;
Expand Down Expand Up @@ -227,7 +227,7 @@ namespace cuBQL {
/*! square of the maximum query distance in which
this query is to look for candidates. note
this is the SQUARE distance */
float squareOfMaxQueryDistance=INFINITY)
float squareOfMaxQueryDistance=PosInfTy())
{
int closestID = -1;
float closestSqrDist = squareOfMaxQueryDistance;
Expand Down
2 changes: 1 addition & 1 deletion cuBQL/queries/pointData/knn.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ namespace cuBQL {
/*! square of the maximum query distance in which
this query is to look for candidates. note
this is the SQUARE distance */
float squareOfMaxQueryDistance=INFINITY);
float squareOfMaxQueryDistance=PosInfTy());


// ******************************************************************
Expand Down
2 changes: 1 addition & 1 deletion cuBQL/queries/triangleData/math/boxTriangleIntersections.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ namespace cuBQL {
entirely within that slab (iff lower_k <= a_k <= upper_k),
or entirely outside */
if (a_k > upper_k || a_k < lower_k) {
t0 = INFINITY; t1 = -INFINITY;
t0 = PosInfTy(); t1 = -PosInfTy();
}
} else {
/* line segment is not parallel to the slab planes, so we can
Expand Down
2 changes: 1 addition & 1 deletion cuBQL/queries/triangleData/math/pointToTriangleDistance.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace cuBQL {

struct PointToTriangleTestResult {
/*! (square!) distance between query point and closest point on triangle.*/
float sqrDist = INFINITY;
float sqrDist = PosInfTy();
/*! the actual 3D point that's closest on the triangle */
vec3f P;
};
Expand Down
Loading