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 );
19private:
20 void run_( const MeshTopology& topology, const VertPredicate& pred );
21 VertBitSet visited_;
22 std::vector<VertId> bd_;
23};
24
27[[nodiscard]] MRMESH_API VertScalars computeSpaceDistances( const Mesh& mesh, const PointOnFace & start, float range );
28
32[[nodiscard]] MRMESH_API VertBitSet findNeighborVerts( const Mesh& mesh, const PointOnFace& start, float rangeSq );
33
35{
36public:
39 MRMESH_API void run( const MeshTopology & topology, VertId start, const FacePredicate & pred );
40
41private:
42 FaceBitSet visited_;
43 std::vector<FaceId> bd_;
44};
45
46
47}
Definition MREnumNeighbours.h:35
Definition MREnumNeighbours.h:13
Definition MRMeshTopology.h:22
MRMESH_API void run(const MeshTopology &topology, const VertBitSet &start, const VertPredicate &pred)
MRMESH_API void run(const MeshTopology &topology, VertId start, const FacePredicate &pred)
MRMESH_API VertScalars computeSpaceDistances(const Mesh &mesh, const PointOnFace &start, float range)
MRMESH_API void run(const MeshTopology &topology, VertId start, const VertPredicate &pred)
MRMESH_API 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