MeshLib C++ Docs
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 MRMESH_API void run( const MeshTopology& topology, const VertBitSet& start, const VertPredicate& pred );
16private:
17 void run_( const MeshTopology& topology, const VertPredicate& pred );
18 VertBitSet visited_;
19 std::vector<VertId> bd_;
20};
21
24[[nodiscard]] MRMESH_API VertScalars computeSpaceDistances( const Mesh& mesh, const PointOnFace & start, float range );
25
29[[nodiscard]] MRMESH_API VertBitSet findNeighborVerts( const Mesh& mesh, const PointOnFace& start, float rangeSq );
30
32{
33public:
36 MRMESH_API void run( const MeshTopology & topology, VertId start, const FacePredicate & pred );
37
38private:
39 FaceBitSet visited_;
40 std::vector<FaceId> bd_;
41};
42
43
44} //namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:79
Definition MREnumNeighbours.h:32
MRMESH_API void run(const MeshTopology &topology, VertId start, const FacePredicate &pred)
Definition MREnumNeighbours.h:10
MRMESH_API void run(const MeshTopology &topology, const VertBitSet &start, const VertPredicate &pred)
MRMESH_API void run(const MeshTopology &topology, VertId start, const VertPredicate &pred)
Definition MRMesh/MRMeshTopology.h:18
Definition MRCameraOrientationPlugin.h:8
std::function< bool(FaceId)> FacePredicate
Definition MRMesh/MRMeshFwd.h:491
MRMESH_API VertScalars computeSpaceDistances(const Mesh &mesh, const PointOnFace &start, float range)
MRMESH_API VertBitSet findNeighborVerts(const Mesh &mesh, const PointOnFace &start, float rangeSq)
Definition MRMesh/MRMesh.h:22
a point located on some mesh's face
Definition MRMesh/MRPointOnFace.h:11