MeshLib
 
Loading...
Searching...
No Matches
MREnumNeighbours.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRBitSet.h"
5
6namespace MR
7{
8
10{
11public:
14 MRMESH_API void run( const MeshTopology & topology, VertId start, const VertPredicate & pred );
15
16private:
17 VertBitSet visited_;
18 std::vector<VertId> bd_;
19};
20
23[[nodiscard]] MRMESH_API VertScalars computeSpaceDistances( const Mesh& mesh, const PointOnFace & start, float range );
24
27[[nodiscard]] MRMESH_API VertBitSet findNeighborVerts( const Mesh& mesh, const PointOnFace& start, float range );
28
29
31{
32public:
35 MRMESH_API void run( const MeshTopology & topology, VertId start, const FacePredicate & pred );
36
37private:
38 FaceBitSet visited_;
39 std::vector<FaceId> bd_;
40};
41
42
43} //namespace MR
int VertId
Definition MRDotNet/MRMeshFwd.h:51
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRDotNet/MRBitSet.h:39
Definition MREnumNeighbours.h:31
MRMESH_API void run(const MeshTopology &topology, VertId start, const FacePredicate &pred)
Definition MREnumNeighbours.h:10
MRMESH_API void run(const MeshTopology &topology, VertId start, const VertPredicate &pred)
Definition MRMesh/MRMeshTopology.h:18
Definition MRCameraOrientationPlugin.h:7
std::function< bool(FaceId)> FacePredicate
Definition MRMesh/MRMeshFwd.h:413
MRMESH_API VertBitSet findNeighborVerts(const Mesh &mesh, const PointOnFace &start, float range)
MRMESH_API VertScalars computeSpaceDistances(const Mesh &mesh, const PointOnFace &start, float range)
Definition MRMesh/MRMesh.h:23
Definition MRPointOnFace.h:11