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{
10
11
13{
14public:
17 MRMESH_API void run( const MeshTopology & topology, VertId start, const VertPredicate & pred );
18 MRMESH_API void run( const MeshTopology& topology, const VertBitSet& start, const VertPredicate& pred );
19 MRMESH_API void run( const MeshTopology& topology, const std::vector<MeshTriPoint>& start, const VertPredicate& pred );
20
21private:
22 void run_( const MeshTopology& topology, const VertPredicate& pred );
23 VertBitSet visited_;
24 std::vector<VertId> bd_;
25};
26
29[[nodiscard]] MRMESH_API VertScalars computeSpaceDistances( const Mesh& mesh, const PointOnFace & start, float range );
30
34[[nodiscard]] MRMESH_API VertBitSet findNeighborVerts( const Mesh& mesh, const PointOnFace& start, float rangeSq );
35
37{
38public:
41 MRMESH_API void run( const MeshTopology & topology, VertId start, const FacePredicate & pred );
42
43private:
44 FaceBitSet visited_;
45 std::vector<FaceId> bd_;
46};
47
48
49}
#define MRMESH_API
Definition MRMeshFwd.h:80
Definition MREnumNeighbours.h:37
Definition MREnumNeighbours.h:13
Definition MRMeshTopology.h:23
void run(const MeshTopology &topology, VertId start, const VertPredicate &pred)
std::function< bool(FaceId)> FacePredicate
Definition MRMeshFwd.h:569
void run(const MeshTopology &topology, VertId start, const FacePredicate &pred)
void run(const MeshTopology &topology, const std::vector< MeshTriPoint > &start, const VertPredicate &pred)
VertScalars computeSpaceDistances(const Mesh &mesh, const PointOnFace &start, float range)
void run(const MeshTopology &topology, const VertBitSet &start, const VertPredicate &pred)
VertBitSet findNeighborVerts(const Mesh &mesh, const PointOnFace &start, float rangeSq)
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh.h:23
a point located on some mesh's face
Definition MRPointOnFace.h:16