Mercurial > hg > orthanc-stone
comparison Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp @ 1654:39137da83b0b
fix print.js, no need for ua-parser.js anymore
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 17 Nov 2020 09:32:40 +0100 |
parents | d77618883551 |
children | 66e5fcdf5597 |
comparison
equal
deleted
inserted
replaced
1653:2e3b2ed239b9 | 1654:39137da83b0b |
---|---|
2115 void FocusOnPoint(const OrthancStone::Vector& p) | 2115 void FocusOnPoint(const OrthancStone::Vector& p) |
2116 { | 2116 { |
2117 //static const double MAX_DISTANCE = 0.5; // 0.5 cm => TODO parameter? | 2117 //static const double MAX_DISTANCE = 0.5; // 0.5 cm => TODO parameter? |
2118 static const double MAX_DISTANCE = std::numeric_limits<double>::infinity(); | 2118 static const double MAX_DISTANCE = std::numeric_limits<double>::infinity(); |
2119 | 2119 |
2120 OrthancStone::LinearAlgebra::Print(p); | |
2121 size_t frameIndex; | 2120 size_t frameIndex; |
2122 if (cursor_.get() != NULL && | 2121 if (cursor_.get() != NULL && |
2123 frames_.get() != NULL && | 2122 frames_.get() != NULL && |
2124 frames_->FindClosestFrame(frameIndex, p, MAX_DISTANCE)) | 2123 frames_->FindClosestFrame(frameIndex, p, MAX_DISTANCE)) |
2125 { | 2124 { |