Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Matena <lukasmatena@seznam.cz>2019-09-17 11:47:01 +0300
committerLukas Matena <lukasmatena@seznam.cz>2019-09-17 15:57:49 +0300
commit3694bf3da97fbbcbabe0ec15607eda8236a8ca39 (patch)
treebfe34a29ba0c8ca37ad90b66e156942065df2aed /src/slic3r/GUI/MeshUtils.hpp
parentb6292247e88c7ace1a7c406c0d560e954a448373 (diff)
Added functions get_hit_pos, get_hit_normal, ready to implement intersect_ray
Diffstat (limited to 'src/slic3r/GUI/MeshUtils.hpp')
-rw-r--r--src/slic3r/GUI/MeshUtils.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slic3r/GUI/MeshUtils.hpp b/src/slic3r/GUI/MeshUtils.hpp
index cadc821dd..5c11053ab 100644
--- a/src/slic3r/GUI/MeshUtils.hpp
+++ b/src/slic3r/GUI/MeshUtils.hpp
@@ -100,14 +100,14 @@ public:
bool unproject_on_mesh(const Vec2d& mouse_pos, const Transform3d& trafo, const Camera& camera,
std::vector<Vec3f>* positions = nullptr, std::vector<Vec3f>* normals = nullptr) const;
+ std::vector<size_t> get_unobscured_idxs(const Transform3d& trafo, const Camera& camera,
+ const std::vector<Vec3f>& points) const;
+
private:
// PIMPL wrapper around igl::AABB so I don't have to include the header-only IGL here
class AABBWrapper;
AABBWrapper* m_AABB_wrapper;
-
const TriangleMesh* m_mesh = nullptr;
-
-
};