MeshLib Documentation
Loading...
Searching...
No Matches
MRSelectScreenLasso.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRViewerFwd.h"
4#include "MRMesh/MRVector2.h"
5
6namespace MR
7{
8
14MRVIEWER_API BitSet calculateSelectedPixelsInsidePolygon( const Contour2f & screenPoints );
15
21MRVIEWER_API BitSet calculateSelectedPixelsNearPolygon( const Contour2f & screenPoints, float radiusPix );
22
29MRVIEWER_API FaceBitSet findIncidentFaces( const Viewport& viewport, const BitSet& pixBs, const ObjectMesh& obj,
30 bool onlyVisible = false, bool includeBackfaces = true,
31 const std::vector<ObjectMesh*> * occludingMeshes = nullptr ); // these meshes can influence face visibility in onlyVisible=true mode
32
40MRVIEWER_API void appendGPUVisibleFaces( const Viewport& viewport, const BitSet& pixBs, const std::vector<std::shared_ptr<ObjectMesh>>& objects,
41 std::vector<FaceBitSet>& visibleFaces, bool includeBackfaces = true );
42
49MRVIEWER_API VertBitSet findVertsInViewportArea( const Viewport& viewport, const BitSet& bsVec, const ObjectPoints& obj,
50 bool includeBackfaces = true, bool onlyVisible = false );
51
52}
container of bits
Definition MRMesh/MRBitSet.h:27
Definition MRObjectMesh.h:11
Definition MRObjectPoints.h:11
Definition MRViewport.h:49
Definition MRCameraOrientationPlugin.h:8
MRVIEWER_API FaceBitSet findIncidentFaces(const Viewport &viewport, const BitSet &pixBs, const ObjectMesh &obj, bool onlyVisible=false, bool includeBackfaces=true, const std::vector< ObjectMesh * > *occludingMeshes=nullptr)
Contour2< float > Contour2f
Definition MRMesh/MRMeshFwd.h:275
MRVIEWER_API BitSet calculateSelectedPixelsInsidePolygon(const Contour2f &screenPoints)
MRVIEWER_API VertBitSet findVertsInViewportArea(const Viewport &viewport, const BitSet &bsVec, const ObjectPoints &obj, bool includeBackfaces=true, bool onlyVisible=false)
MRVIEWER_API void appendGPUVisibleFaces(const Viewport &viewport, const BitSet &pixBs, const std::vector< std::shared_ptr< ObjectMesh > > &objects, std::vector< FaceBitSet > &visibleFaces, bool includeBackfaces=true)
MRVIEWER_API BitSet calculateSelectedPixelsNearPolygon(const Contour2f &screenPoints, float radiusPix)