Skip to content

Commit

Permalink
merge 1.0.2 from main
Browse files Browse the repository at this point in the history
  • Loading branch information
nv-jdeligiannis committed Aug 4, 2023
2 parents fdb6a91 + ff2fa5c commit b81bd37
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion omm-sdk/include/omm.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ license agreement from NVIDIA CORPORATION is strictly prohibited.

#define OMM_VERSION_MAJOR 1
#define OMM_VERSION_MINOR 0
#define OMM_VERSION_BUILD 1
#define OMM_VERSION_BUILD 2

#define OMM_MAX_TRANSIENT_POOL_BUFFERS 8

Expand Down
2 changes: 1 addition & 1 deletion omm-sdk/scripts/omm_header_c.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ license agreement from NVIDIA CORPORATION is strictly prohibited.

#define OMM_VERSION_MAJOR 1
#define OMM_VERSION_MINOR 0
#define OMM_VERSION_BUILD 1
#define OMM_VERSION_BUILD 2

#define OMM_MAX_TRANSIENT_POOL_BUFFERS 8

Expand Down
6 changes: 3 additions & 3 deletions omm-sdk/src/bake_kernels_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,16 @@ struct LevelLineIntersectionKernel
}

bool IsPointOnEdge(const float2& p) const {
return IsZero(length(p - _p0) + length(p - _p1) - _length);
const float l = length(p - _p0) + length(p - _p1) - _length;
return IsZero(l, 1e-5f);
}
private:
const float2 _p0;
const float2 _p1;
const float _length;
};

static bool IsZero(float value) {
constexpr float kEpsilon = 1e-6f;
static bool IsZero(float value, float kEpsilon = 1e-6f) {
return std::abs(value) < kEpsilon;
};

Expand Down
2 changes: 1 addition & 1 deletion omm-sdk/src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ license agreement from NVIDIA CORPORATION is strictly prohibited.

#define VERSION_MAJOR 1
#define VERSION_MINOR 0
#define VERSION_BUILD 1
#define VERSION_BUILD 2
#define VERSION_REVISION 0

#define VERSION_STRING STR(VERSION_MAJOR.VERSION_MINOR.VERSION_BUILD.VERSION_REVISION)

0 comments on commit b81bd37

Please sign in to comment.