We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93e98ef commit fddd455Copy full SHA for fddd455
1 file changed
include/polyscope/pick.ipp
@@ -24,11 +24,11 @@ inline glm::vec3 indToVec(size_t globalInd) {
24
globalInd = globalInd >> bitsForPickPacking;
25
uint64_t high = globalInd;
26
27
- return 2500.f * glm::vec3{static_cast<double>(low) / factorF, static_cast<double>(med) / factorF,
28
- static_cast<double>(high) / factorF};
+ return glm::vec3{static_cast<double>(low) / factorF, static_cast<double>(med) / factorF,
+ static_cast<double>(high) / factorF};
29
}
30
inline uint64_t vecToInd(glm::vec3 vec) {
31
- vec /= 2500.f;
+
32
uint64_t factor = 1 << bitsForPickPacking;
33
double factorF = factor;
34
0 commit comments