MeshLib Documentation
Loading...
Searching...
No Matches
MRPickHoleBorderElement.h
Go to the documentation of this file.
1#pragma once
2#include "MRMesh/MRMeshFwd.h"
3#include "MRMesh/MRId.h"
5#include "exports.h"
6
7namespace MR
8{
9
15
20MRVIEWER_API HoleEdgePoint findClosestToMouseHoleEdge( const Vector2i& mousePos, const std::shared_ptr<ObjectMeshHolder>& objMesh,
21 const std::vector<EdgeId>& holeRepresentativeEdges,
22 float accuracy = 5.5f, bool attractToVert = false, float cornerAccuracy = 10.5f );
23
28MRVIEWER_API HoleEdgePoint findClosestToMouseEdge( const Vector2i& mousePos, const std::vector<std::shared_ptr<ObjectLinesHolder>>& objsLines,
29 float accuracy = 5.5f );
30inline HoleEdgePoint findClosestToMouseEdge( const Vector2i& mousePos, const std::vector<std::shared_ptr<ObjectLines>>& objsLines,
31 float accuracy = 5.5f )
32{
33 std::vector<std::shared_ptr<ObjectLinesHolder>> objs(objsLines.size());
34 for ( int i = 0; i < objsLines.size(); ++i )
35 objs[i] = std::dynamic_pointer_cast<ObjectLinesHolder>( objsLines[i] );
36 return findClosestToMouseEdge( mousePos, objs, accuracy );
37}
38
39}
Definition MRCameraOrientationPlugin.h:8
MRVIEWER_API HoleEdgePoint findClosestToMouseHoleEdge(const Vector2i &mousePos, const std::shared_ptr< ObjectMeshHolder > &objMesh, const std::vector< EdgeId > &holeRepresentativeEdges, float accuracy=5.5f, bool attractToVert=false, float cornerAccuracy=10.5f)
MRVIEWER_API HoleEdgePoint findClosestToMouseEdge(const Vector2i &mousePos, const std::vector< std::shared_ptr< ObjectLinesHolder > > &objsLines, float accuracy=5.5f)
encodes a point on an edge of mesh or of polyline
Definition MREdgePoint.h:11
Definition MRPickHoleBorderElement.h:11
int holeIdx
hole index
Definition MRPickHoleBorderElement.h:12
MeshEdgePoint edgePoint
Definition MRPickHoleBorderElement.h:13