6#include "MRPch/MRBindingMacros.h"
22 #if !defined _ITERATOR_DEBUG_LEVEL
23 #define _ITERATOR_DEBUG_LEVEL 0
25 #if !defined MR_ITERATOR_DEBUG_LEVEL
26 #define MR_ITERATOR_DEBUG_LEVEL 0
28 #if _ITERATOR_DEBUG_LEVEL != MR_ITERATOR_DEBUG_LEVEL
29 #error _ITERATOR_DEBUG_LEVEL is inconsistent with MeshLib
35#define MR_CPP_STANDARD_DATE _MSVC_LANG
37#define MR_CPP_STANDARD_DATE __cplusplus
44#if MR_CPP_STANDARD_DATE < 201709 && !defined(__CUDACC__)
45#error Must enable C++20 or newer!
55#if defined(__GNUC__) && (__GNUC__ >= 13 && __GNUC__ <= 15)
56 #pragma GCC diagnostic push
57 #pragma GCC diagnostic ignored "-Warray-bounds"
58 #pragma GCC diagnostic ignored "-Wstringop-overflow"
63#if defined(__GNUC__) && (__GNUC__ >= 13 && __GNUC__ <= 15)
64 #pragma GCC diagnostic pop
69#include <parallel_hashmap/phmap_fwd_decl.h>
74# define MRMESH_API __declspec(dllexport)
76# define MRMESH_API __declspec(dllimport)
80# define MRMESH_API __attribute__((visibility("default")))
84# define MRMESH_CLASS __attribute__((visibility("default")))
127 ( NoInitNodeId, NoInitId<NodeTag> )
147 ( FaceBitSet, TypedBitSet<FaceId> )
148 ( VertBitSet, TypedBitSet<VertId> )
149 ( EdgeBitSet, TypedBitSet<EdgeId> )
150 ( UndirectedEdgeBitSet, TypedBitSet<UndirectedEdgeId> )
151 ( PixelBitSet, TypedBitSet<PixelId> )
152 ( VoxelBitSet, TypedBitSet<VoxelId> )
153 ( RegionBitSet, TypedBitSet<RegionId> )
154 ( NodeBitSet, TypedBitSet<NodeId> )
155 ( ObjBitSet, TypedBitSet<ObjId> )
156 ( TextureBitSet, TypedBitSet<TextureId> )
157 ( GraphVertBitSet, TypedBitSet<GraphVertId> )
158 ( GraphEdgeBitSet, TypedBitSet<GraphEdgeId> )
165 ( SetBitIterator, SetBitIteratorT<BitSet> )
166 ( FaceSetBitIterator, SetBitIteratorT<FaceBitSet> )
167 ( VertSetBitIterator, SetBitIteratorT<VertBitSet> )
168 ( EdgeSetBitIterator, SetBitIteratorT<EdgeBitSet> )
169 ( UndirectedEdgeSetBitIterator, SetBitIteratorT<UndirectedEdgeBitSet> )
188using
Int64 = std::ptrdiff_t;
189using
Uint64 = std::size_t;
190static_assert(sizeof(Int64) == 8);
191static_assert(sizeof(Uint64) == 8);
198 ( Vector2b, Vector2<bool> )
199 ( Vector2i, Vector2<int> )
200 ( Vector2i64, Vector2<Int64> )
201 ( Vector2f, Vector2<float> )
202 ( Vector2d, Vector2<double> )
207#if !MR_PARSING_FOR_ANY_BINDINGS
208using Vector2ll [[deprecated("Use `Vector2i64` instead.")]] =
Vector2<long long>;
212 ( Vector3b, Vector3<bool> )
213 ( Vector3i, Vector3<int> )
214 ( Vector3i64, Vector3<Int64> )
215 ( Vector3f, Vector3<float> )
216 ( Vector3d, Vector3<double> )
218#if !MR_PARSING_FOR_ANY_BINDINGS
219using Vector3ll [[deprecated("Use `Vector3i64` instead.")]] =
Vector3<long long>;
223 ( Vector4b, Vector4<bool> )
224 ( Vector4i, Vector4<int> )
225 ( Vector4i64, Vector4<Int64> )
226 ( Vector4f, Vector4<float> )
227 ( Vector4d, Vector4<double> )
229#if !MR_PARSING_FOR_ANY_BINDINGS
230using Vector4ll [[deprecated("Use `Vector4i64` instead.")]] =
Vector4<long long>;
234 ( Matrix2b, Matrix2<bool> )
235 ( Matrix2i, Matrix2<int> )
236 ( Matrix2i64, Matrix2<Int64> )
237 ( Matrix2f, Matrix2<float> )
238 ( Matrix2d, Matrix2<double> )
240#if !MR_PARSING_FOR_ANY_BINDINGS
241using Matrix2ll [[deprecated("Use `Matrix2i64` instead.")]] =
Matrix2<long long>;
245 ( Matrix3b, Matrix3<bool> )
246 ( Matrix3i, Matrix3<int> )
247 ( Matrix3i64, Matrix3<Int64> )
248 ( Matrix3f, Matrix3<float> )
249 ( Matrix3d, Matrix3<double> )
251#if !MR_PARSING_FOR_ANY_BINDINGS
252using Matrix3ll [[deprecated("Use `Matrix3i64` instead.")]] =
Matrix3<long long>;
256 ( Matrix4b, Matrix4<bool> )
257 ( Matrix4i, Matrix4<int> )
258 ( Matrix4i64, Matrix4<Int64> )
259 ( Matrix4f, Matrix4<float> )
260 ( Matrix4d, Matrix4<double> )
262#if !MR_PARSING_FOR_ANY_BINDINGS
263using Matrix4ll [[deprecated("Use `Matrix4i64` instead.")]] =
Matrix4<long long>;
267 ( SymMatrix2b, SymMatrix2<bool> )
268 ( SymMatrix2i, SymMatrix2<int> )
269 ( SymMatrix2i64, SymMatrix2<Int64> )
270 ( SymMatrix2f, SymMatrix2<float> )
271 ( SymMatrix2d, SymMatrix2<double> )
273#if !MR_PARSING_FOR_ANY_BINDINGS
274using SymMatrix2ll [[deprecated("Use `SymMatrix2i64` instead.")]] =
SymMatrix2<long long>;
278 ( SymMatrix3b, SymMatrix3<bool> )
279 ( SymMatrix3i, SymMatrix3<int> )
280 ( SymMatrix3i64, SymMatrix3<Int64> )
281 ( SymMatrix3f, SymMatrix3<float> )
282 ( SymMatrix3d, SymMatrix3<double> )
284#if !MR_PARSING_FOR_ANY_BINDINGS
285using SymMatrix3ll [[deprecated("Use `SymMatrix3i64` instead.")]] =
SymMatrix3<long long>;
289 ( SymMatrix4b, SymMatrix4<bool> )
290 ( SymMatrix4i, SymMatrix4<int> )
291 ( SymMatrix4i64, SymMatrix4<Int64> )
292 ( SymMatrix4f, SymMatrix4<float> )
293 ( SymMatrix4d, SymMatrix4<double> )
295#if !MR_PARSING_FOR_ANY_BINDINGS
296using SymMatrix4ll [[deprecated("Use `SymMatrix4i64` instead.")]] =
SymMatrix4<long long>;
300 ( AffineXf2f, AffineXf<Vector2<float>> )
301 ( AffineXf2d, AffineXf<Vector2<double>> )
302 ( AffineXf3f, AffineXf<Vector3<float>> )
303 ( AffineXf3d, AffineXf<Vector3<double>> )
305template <typename T> using AffineXf2 =
AffineXf<Vector2<T>>;
309 ( RigidXf3f, RigidXf3<float> )
310 ( RigidXf3d, RigidXf3<double> )
314 ( RigidScaleXf3f, RigidScaleXf3<float> )
315 ( RigidScaleXf3d, RigidScaleXf3<double> )
322 ( Sphere2f, Sphere<Vector2<float>> )
323 ( Sphere2d, Sphere<Vector2<double>> )
324 ( Sphere3f, Sphere<Vector3<float>> )
325 ( Sphere3d, Sphere<Vector3<double>> )
327template <typename T> using Sphere2 =
Sphere<Vector2<T>>;
331 ( Line2f, Line<Vector2<float>> )
332 ( Line2d, Line<Vector2<double>> )
333 ( Line3f, Line<Vector3<float>> )
334 ( Line3d, Line<Vector3<double>> )
336template <typename T> using Line2 =
Line<Vector2<T>>;
340 ( LineSegm2f, LineSegm<Vector2<float>> )
341 ( LineSegm2d, LineSegm<Vector2<double>> )
342 ( LineSegm3f, LineSegm<Vector3<float>> )
343 ( LineSegm3d, LineSegm<Vector3<double>> )
345template <typename T> using LineSegm2 =
LineSegm<Vector2<T>>;
349 ( Parabolaf, Parabola<float> )
350 ( Parabolad, Parabola<double> )
354 ( BestFitParabolaf, BestFitParabola<float> )
355 ( BestFitParabolad, BestFitParabola<double> )
359 ( Cylinder3f, Cylinder3<float> )
360 ( Cylinder3d, Cylinder3<double> )
364 ( Cone3f, Cone3<float> )
365 ( Cone3d, Cone3<double> )
369template <typename V> using
Contour = std::vector<V>;
377template <typename V> using
Contours = std::vector<Contour<V>>;
386 ( Plane3f, Plane3<float> )
387 ( Plane3d, Plane3<double> )
392 ( Box1i64, Box<Int64> )
393 ( Box1f, Box<float> )
394 ( Box1d, Box<double> )
395 ( Box2i, Box<Vector2<int>> )
396 ( Box2i64, Box<Vector2<Int64>> )
397 ( Box2f, Box<Vector2<float>> )
398 ( Box2d, Box<Vector2<double>> )
399 ( Box3i, Box<Vector3<int>> )
400 ( Box3i64, Box<Vector3<Int64>> )
401 ( Box3f, Box<Vector3<float>> )
402 ( Box3d, Box<Vector3<double>> )
404#if !MR_PARSING_FOR_ANY_BINDINGS
405using Box1ll [[deprecated("Use `Box1i64` instead.")]] =
Box<long long>;
406using Box2ll [[deprecated("Use `Box2i64` instead.")]] =
Box<Vector2<long long>>;
407using Box3ll [[deprecated("Use `Box3i64` instead.")]] =
Box<Vector3<long long>>;
416template <typename T> using
Box2 =
Box<Vector2<T>>;
417template <typename T> using
Box3 =
Box<Vector3<T>>;
419template<typename T, typename I> struct
MinArg;
420template<typename T, typename I> struct
MaxArg;
421template<typename T, typename I> struct
MinMaxArg;
424 ( Ball1f, Ball<float> )
425 ( Ball1d, Ball<double> )
426 ( Ball2f, Ball<Vector2<float>> )
427 ( Ball2d, Ball<Vector2<double>> )
428 ( Ball3f, Ball<Vector3<float>> )
429 ( Ball3d, Ball<Vector3<double>> )
431template <typename T> using Ball1 =
Ball<T>;
436 ( CubicBezierCurve2f, CubicBezierCurve<Vector2<float>> )
437 ( CubicBezierCurve2d, CubicBezierCurve<Vector2<double>> )
438 ( CubicBezierCurve3f, CubicBezierCurve<Vector3<float>> )
439 ( CubicBezierCurve3d, CubicBezierCurve<Vector3<double>> )
441template <typename T> using CubicBezierCurve2 =
CubicBezierCurve<Vector2<T>>;
445 ( QuadraticForm2f, QuadraticForm<Vector2<float>> )
446 ( QuadraticForm2d, QuadraticForm<Vector2<double>> )
447 ( QuadraticForm3f, QuadraticForm<Vector3<float>> )
448 ( QuadraticForm3d, QuadraticForm<Vector3<double>> )
450template <typename T> using QuadraticForm2 =
QuadraticForm<Vector2<T>>;
454 ( Quaternionf, Quaternion<float> )
455 ( Quaterniond, Quaternion<double> )
459template <typename T> using Triangle3 = std::array<Vector3<T>, 3>;
467 ( SegmPointf, SegmPoint<float> )
468 ( SegmPointd, SegmPoint<double> )
489 ( TriPointf, TriPoint<float> )
490 ( TriPointd, TriPoint<double> )
517 ( Edges, Vector<TwoVertIds, UndirectedEdgeId> )
520 ( Triangulation, Vector<ThreeVertIds, FaceId> )
522 ( Dipoles, Vector<Dipole, NodeId> )
524 ( FaceMap, Vector<FaceId, FaceId> )
525 ( VertMap, Vector<VertId, VertId> )
526 ( EdgeMap, Vector<EdgeId, EdgeId> )
527 ( UndirectedEdgeMap, Vector<UndirectedEdgeId, UndirectedEdgeId> )
528 ( ObjMap, Vector<ObjId, ObjId> )
531 ( WholeEdgeMap, Vector<EdgeId, UndirectedEdgeId> )
532 ( UndirectedEdge2RegionMap, Vector<RegionId, UndirectedEdgeId> )
533 ( Face2RegionMap, Vector<RegionId, FaceId> )
534 ( Vert2RegionMap, Vector<RegionId, VertId> )
536 ( VertCoords, Vector<Vector3f, VertId> )
537 ( VertCoords2, Vector<Vector2f, VertId> )
538 ( VertNormals, Vector<Vector3f, VertId> )
539 ( VertUVCoords, Vector<UVCoord, VertId> )
540 ( FaceNormals, Vector<Vector3f, FaceId> )
542 ( TexturePerFace, Vector<TextureId, FaceId> )
543 ( VertColors, Vector<Color, VertId> )
544 ( FaceColors, Vector<Color, FaceId> )
545 ( EdgeColors, Vector<Color, EdgeId> )
546 ( UndirectedEdgeColors, Vector<Color, UndirectedEdgeId> )
548 ( VertScalars, Vector<float, VertId> )
549 ( FaceScalars, Vector<float, FaceId> )
550 ( EdgeScalars, Vector<float, EdgeId> )
551 ( UndirectedEdgeScalars, Vector<float, UndirectedEdgeId> )
554using VertPredicate = std::function<bool( VertId )>;
563[[nodiscard]] inline bool
contains( const std::function<bool( Id<T> )> & pred, Id<T> id )
565 return id.valid() && ( !pred || pred(
id ) );
581template <typename T, typename
Hash = phmap::priv::hash_default_hash<T>, typename
Eq = phmap::priv::hash_default_eq<T>>
582using HashSet = phmap::flat_hash_set<T,
Hash,
Eq>;
583template <typename T, typename
Hash = phmap::priv::hash_default_hash<T>, typename
Eq = phmap::priv::hash_default_eq<T>>
591template <typename K, typename V, typename
Hash = phmap::priv::hash_default_hash<K>, typename
Eq = phmap::priv::hash_default_eq<K>>
593template <typename K, typename V, typename
Hash = phmap::priv::hash_default_hash<K>, typename
Eq = phmap::priv::hash_default_eq<K>>
603template <typename K, typename V>
614template <typename T, typename
I, typename P> class
Heap;
753constexpr inline T
sqr( T x )
noexcept {
return x * x; }
757constexpr inline int sgn( T x )
noexcept {
return x > 0 ? 1 : ( x < 0 ? -1 : 0 ); }
761constexpr inline T
distance( T x, T y )
noexcept {
return x >= y ? x - y : y - x; }
768template <
typename V,
typename T>
769constexpr inline auto lerp( V v0, V v1, T t )
noexcept {
return ( 1 - t ) * v0 + t * v1; }
790struct VertDuplication;
796#ifdef __cpp_lib_unreachable
797# define MR_UNREACHABLE std::unreachable();
798# define MR_UNREACHABLE_NO_RETURN std::unreachable();
801# define MR_UNREACHABLE __builtin_unreachable();
802# define MR_UNREACHABLE_NO_RETURN __builtin_unreachable();
805# define MR_UNREACHABLE { assert( false ); return {}; }
806# define MR_UNREACHABLE_NO_RETURN assert( false );
#define MR_CANONICAL_TYPEDEFS(type_, name_, aliases_)
Definition MRCanonicalTypedefs.h:23
#define MRMESH_CLASS
Definition MRMesh/MRMeshFwd.h:84
Contour
Definition MRObjectLabel.h:16
Definition MRAABBTreeObjects.h:19
bounding volume hierarchy for point cloud structure
Definition MRAABBTreePoints.h:16
bounding volume hierarchy for line segments
Definition MRAABBTreePolyline.h:30
Definition MRAABBTree.h:16
Definition MRVisualObject.h:57
Definition MRMesh/MRBitSet.h:28
std::vector<V>-like container that is 1) resized without initialization of its elements,...
Definition MRBuffer.h:54
Undo action for ObjectMesh mesh change.
Definition MRChangeMeshAction.h:16
Undo action for ObjectMesh creases.
Definition MRChangeSelectionAction.h:122
Undo action for ObjectMesh edge selection.
Definition MRChangeSelectionAction.h:68
Undo action for ObjectMesh face selection.
Definition MRChangeSelectionAction.h:14
Undo action for ObjectMesh points only (not topology) change.
Definition MRChangeMeshAction.h:190
Undo action for ObjectMesh topology only (not points) change.
Definition MRChangeMeshAction.h:254
Definition MRChangeObjectAction.h:14
Undo action for ObjectPoints point selection.
Definition MRChangeSelectionAction.h:176
Definition MRChangeSceneAction.h:13
Definition MRChangeXfAction.h:13
Definition MRCircleObject.h:17
Class for aggregate several color map in one Color maps are aggregated according order.
Definition MRColorMapAggregator.h:17
Definition MRCombinedHistoryAction.h:12
Definition MRConeObject.h:19
Definition MRCylinderObject.h:18
Definition MRDistanceMap.h:24
the class stores some number of smallest elements from a larger number of candidates
Definition MRFewSmallest.h:14
mathematical graph consisting from vertices and undirected edges
Definition MRGraph.h:14
stores map from element id in[0, size) to T;
Definition MRMesh/MRMeshFwd.h:614
Definition MRHistoryAction.h:12
Abstract class for fast approximate computation of generalized winding number for a mesh (using its A...
Definition MRFastWindingNumber.h:12
abstract class for computing the closest points of point clouds
Definition MRPointsProject.h:93
Abstract class, computes the closest point on mesh to each of given points. Pure virtual functions mu...
Definition MRMesh/MRPointsToMeshProjector.h:13
Definition MRMesh/MRId.h:15
Definition MRMesh/MRLaplacian.h:34
Definition MRLineObject.h:13
Definition MRMesh/MRMeshOrPoints.h:18
Definition MRMesh/MRMeshTopology.h:19
Definition MRObjectDistanceMap.h:13
Definition MRObjectGcode.h:14
Definition MRObjectLabel.h:25
Definition MRObjectLinesHolder.h:19
Definition MRObjectLines.h:11
Definition MRObjectMeshHolder.h:32
Definition MRObjectMesh.h:11
Definition MRObjectPointsHolder.h:21
Definition MRObjectPoints.h:11
named object in the data model
Definition MRObject.h:62
Definition MRPlaneObject.h:12
Class to accumulate points and make best line / plane approximation.
Definition MRBestFit.h:20
Definition MRPointObject.h:13
Definition MRPolylineTopology.h:15
Object that is parent of all scene.
Definition MRSceneRoot.h:11
Definition MRSharedThreadSafeOwner.h:19
Definition MRSphereObject.h:15
Definition MRSwapRootAction.h:13
Definition MRMesh/MRBitSet.h:141
Union-find data structure for representing disjoin sets of elements with few very quick operations: 1...
Definition MRUnionFind.h:20
Definition MRUniqueThreadSafeOwner.h:18
Definition MRViewportId.h:16
stores mask of viewport unique identifiers
Definition MRViewportId.h:42
Visual Object.
Definition MRVisualObject.h:122
graphs representing rain basins on the mesh
Definition MRWatershedGraph.h:12
bool contains(const TypedBitSet< I > *bitset, I id)
Definition MRMesh/MRBitSet.h:254
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:728
std::optional< T > distanceSq(const Plane3< T > &plane1, const Plane3< T > &plane2, T errorLimit=std::numeric_limits< T >::epsilon() *T(20))
Definition MRIntersection.h:90
std::optional< T > distance(const Plane3< T > &plane1, const Plane3< T > &plane2, T errorLimit=std::numeric_limits< T >::epsilon() *T(20))
Definition MRIntersection.h:104
@ None
special value not to limit path in one slice
Definition MRVoxelPath.h:33
Definition MRCameraOrientationPlugin.h:8
std::function< float(VertId)> VertMetric
Definition MRMesh/MRMeshFwd.h:568
phmap::parallel_flat_hash_map< K, V, Hash, Eq > ParallelHashMap
Definition MRMesh/MRMeshFwd.h:594
std::vector< EdgeId > EdgeLoop
Definition MRMesh/MRMeshFwd.h:141
std::vector< std::string > GcodeSource
Definition MRMesh/MRMeshFwd.h:669
WrapType
Definition MRMesh/MRMeshFwd.h:737
std::array< VertId, 2 > TwoVertIds
two vertex ids describing an edge with the ends in vertices given by their ids
Definition MRMesh/MRMeshFwd.h:508
std::vector< SurfacePath > SurfacePaths
Definition MRMesh/MRMeshFwd.h:475
std::vector< EdgeLoop > EdgeLoops
Definition MRMesh/MRMeshFwd.h:142
Contour3< float > Contour3f
Definition MRMesh/MRMeshFwd.h:375
class MRMESH_CLASS UndirectedEdgeTag
Definition MRMesh/MRMeshFwd.h:95
constexpr T sqr(T x) noexcept
squared value
Definition MRMesh/MRMeshFwd.h:753
MR_CANONICAL_TYPEDEFS((template< typename T > class MRMESH_CLASS), Id,(EdgeId, Id< EdgeTag >)(UndirectedEdgeId, Id< UndirectedEdgeTag >)(FaceId, Id< FaceTag >)(VertId, Id< VertTag >)(PixelId, Id< PixelTag >)(VoxelId, Id< VoxelTag >)(RegionId, Id< RegionTag >)(NodeId, Id< NodeTag >)(ObjId, Id< ObjTag >)(TextureId, Id< TextureTag >)(GraphVertId, Id< GraphVertTag >)(GraphEdgeId, Id< GraphEdgeTag >)) template<> class MR_BIND_PREFERRED_NAME(MR class MR_BIND_PREFERRED_NAME(MR::VoxelId) Id< VoxelTag >
AABBTreePolyline2
Definition MRMesh/MRMeshFwd.h:648
class MRMESH_CLASS ObjTag
Definition MRMesh/MRMeshFwd.h:102
Eq
Definition MRMesh/MRMeshFwd.h:581
std::function< bool(FaceId)> FacePredicate
Definition MRMesh/MRMeshFwd.h:555
Contour2< double > Contour2d
Definition MRMesh/MRMeshFwd.h:372
class MRMESH_CLASS NodeTag
Definition MRMesh/MRMeshFwd.h:101
HashSet< VertId > VertHashSet
Definition MRMesh/MRMeshFwd.h:588
std::function< bool(EdgeId)> EdgePredicate
Definition MRMesh/MRMeshFwd.h:556
Hash
Definition MRMesh/MRMeshFwd.h:581
Contour2< float > Contour2f
Definition MRMesh/MRMeshFwd.h:373
Contours2< double > Contours2d
Definition MRMesh/MRMeshFwd.h:380
Contours3< float > Contours3f
Definition MRMesh/MRMeshFwd.h:383
std::uint64_t Uint64
Definition MRMesh/MRMeshFwd.h:194
std::function< bool(UndirectedEdgeId)> UndirectedEdgePredicate
Definition MRMesh/MRMeshFwd.h:557
Contours3< double > Contours3d
Definition MRMesh/MRMeshFwd.h:382
SurfacePaths PlaneSections
Definition MRMesh/MRMeshFwd.h:479
HashMap< VertId, VertId > VertHashMap
Definition MRMesh/MRMeshFwd.h:597
class MRMESH_CLASS VoxelTag
Definition MRMesh/MRMeshFwd.h:99
FilterType
Definition MRMesh/MRMeshFwd.h:731
SurfacePath IsoLine
Definition MRMesh/MRMeshFwd.h:476
Vector2f UVCoord
Definition MRMesh/MRMeshFwd.h:505
Triangle3< int > Triangle3i
Definition MRMesh/MRMeshFwd.h:460
std::vector< MeshEdgePoint > SurfacePath
Definition MRMesh/MRMeshFwd.h:474
HashMap< UndirectedEdgeId, EdgeId > WholeEdgeHashMap
mapping of whole edges: map[e]->f, map[e.sym()]->f.sym(), where only map[e] for even edges is stored
Definition MRMesh/MRMeshFwd.h:601
class MRMESH_CLASS FaceTag
Definition MRMesh/MRMeshFwd.h:96
class MRMESH_CLASS TextureTag
Definition MRMesh/MRMeshFwd.h:103
class MRMESH_CLASS PixelTag
Definition MRMesh/MRMeshFwd.h:98
Contours< Vector2< T > > Contours2
Definition MRMesh/MRMeshFwd.h:378
overloaded(Ts...) -> overloaded< Ts... >
constexpr int sgn(T x) noexcept
sign of given value in { -1, 0, 1 }
Definition MRMesh/MRMeshFwd.h:757
Contours2< float > Contours2f
Definition MRMesh/MRMeshFwd.h:381
std::function< float(EdgeId)> EdgeMetric
Definition MRMesh/MRMeshFwd.h:570
std::function< bool(EdgeId edgeToCollapse, const Vector3f &newEdgeOrgPos)> PreCollapseCallback
Definition MRMesh/MRMeshFwd.h:559
Contour< Vector2< T > > Contour2
Definition MRMesh/MRMeshFwd.h:370
Contour3< double > Contour3d
Definition MRMesh/MRMeshFwd.h:374
SurfacePath PlaneSection
Definition MRMesh/MRMeshFwd.h:478
HashMap< FaceId, FaceId > FaceHashMap
Definition MRMesh/MRMeshFwd.h:596
std::function< float(FaceId)> FaceMetric
Definition MRMesh/MRMeshFwd.h:569
Triangle3< double > Triangle3d
Definition MRMesh/MRMeshFwd.h:462
Contour< Vector3< T > > Contour3
Definition MRMesh/MRMeshFwd.h:371
HashSet< FaceId > FaceHashSet
Definition MRMesh/MRMeshFwd.h:587
std::vector< EdgeId > EdgePath
Definition MRMesh/MRMeshFwd.h:140
std::array< VertId, 3 > ThreeVertIds
three vertex ids describing a triangle with the corners in vertices given by their ids
Definition MRMesh/MRMeshFwd.h:511
class MRMESH_CLASS VertTag
Definition MRMesh/MRMeshFwd.h:97
std::pair< FaceId, FaceId > FacePair
Definition MRMesh/MRMeshFwd.h:484
constexpr NoInit noInit
Definition MRMesh/MRMeshFwd.h:91
HashSet< EdgeId > EdgeHashSet
Definition MRMesh/MRMeshFwd.h:589
std::pair< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgePair
Definition MRMesh/MRMeshFwd.h:486
I
Definition MRMesh/MRMeshFwd.h:130
std::pair< EdgeId, EdgeId > EdgePair
Definition MRMesh/MRMeshFwd.h:485
std::int64_t Int64
Definition MRMesh/MRMeshFwd.h:193
std::function< void(EdgeId e1, EdgeId e)> OnEdgeSplit
Definition MRMesh/MRMeshFwd.h:560
std::function< float(UndirectedEdgeId)> UndirectedEdgeMetric
Definition MRMesh/MRMeshFwd.h:571
constexpr auto lerp(V v0, V v1, T t) noexcept
Linear interpolation: returns v0 when t==0 and v1 when t==1.
Definition MRMesh/MRMeshFwd.h:769
constexpr bool dependent_false
Definition MRMesh/MRMeshFwd.h:772
Triangle3< float > Triangle3f
Definition MRMesh/MRMeshFwd.h:461
SurfacePaths IsoLines
Definition MRMesh/MRMeshFwd.h:477
class MRMESH_CLASS EdgeTag
Definition MRMesh/MRMeshFwd.h:94
std::vector< Contour< V > > Contours
Definition MRMesh/MRMeshFwd.h:377
Polyline2ProjectionWithOffsetResult
Definition MRMesh/MRMeshFwd.h:661
HashMap< EdgeId, EdgeId > EdgeHashMap
Definition MRMesh/MRMeshFwd.h:598
phmap::parallel_flat_hash_set< T, Hash, Eq > ParallelHashSet
Definition MRMesh/MRMeshFwd.h:584
std::pair< VertId, VertId > VertPair
Definition MRMesh/MRMeshFwd.h:483
HashMap< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgeHashMap
Definition MRMesh/MRMeshFwd.h:599
Contours< Vector3< T > > Contours3
Definition MRMesh/MRMeshFwd.h:379
class MRMESH_CLASS RegionTag
Definition MRMesh/MRMeshFwd.h:100
class MRMESH_CLASS GraphVertTag
Definition MRMesh/MRMeshFwd.h:104
phmap::flat_hash_map< K, V, Hash, Eq > HashMap
Definition MRMesh/MRMeshFwd.h:592
class MRMESH_CLASS GraphEdgeTag
Definition MRMesh/MRMeshFwd.h:105
Reorder
determines how points to be ordered
Definition MRMesh/MRMeshFwd.h:745
@ Lexicographically
the order is determined by lexicographical sorting by coordinates (optimal for uniform sampling)
Definition MRMesh/MRAffineXf.h:21
triangulations for all points, with easy access by VertId
Definition MRLocalTriangulations.h:48
flat map: I -> T
Definition MRBuffer.h:143
a ball = points surrounded by a sphere in arbitrary space with vector type V
Definition MRBall.h:12
Box given by its min- and max- corners.
Definition MRMesh/MRBox.h:26
Definition MRCloudPartMapping.h:10
Definition MRMesh/MRColor.h:9
Cubic Bezier curve.
Definition MRBezier.h:13
options determining computation of distance from a point to a mesh
Definition MRDistanceToMeshOptions.h:11
Definition MREdgeLengthMesh.h:13
two edge-points (e.g. representing collision point of two edges)
Definition MREdgePoint.h:50
encodes a point on an edge of mesh or of polyline
Definition MREdgePoint.h:11
Represents a segment on one edge.
Definition MREdgePoint.h:61
settings defining regular grid, where each quadrangular cell is split on two triangles in one of two ...
Definition MRGridSettings.h:11
Definition MRMesh/MRMeshFwd.h:653
Definition MRMesh/MRMeshFwd.h:499
Definition MRMesh/MRMeshFwd.h:501
Definition MRLineSegm.h:11
result of loading (e.g. from a file) as a number of objects
Definition MRLoadedObjects.h:28
Definition MRMesh/MRMeshFwd.h:604
Definition MRMatrix2.h:19
Definition MRMesh/MRMatrix3.h:19
Definition MRMatrix4.h:20
Definition MRMinMaxArg.h:46
Definition MRMeshIntersect.h:18
an object and its transformation to global space with other objects
Definition MRMesh/MRMeshOrPoints.h:101
Definition MRMesh/MRMeshProject.h:18
Definition MRMesh/MRMeshPart.h:12
Definition MRMeshTexture.h:13
Definition MRMesh/MRMeshTriPoint.h:23
Definition MRMesh/MRMesh.h:23
Definition MRMinMaxArg.h:13
Definition MRMinMaxArg.h:79
Definition MRNoDefInit.h:11
Definition MRMesh/MRMeshFwd.h:90
mesh and its per-element attributes for ObjectMeshHolder
Definition MRObjectMeshData.h:14
Definition MRBuffer.h:151
mapping among elements of source mesh, from which a part is taken, and target mesh
Definition MRPartMapping.h:11
represents full point cloud (if region is nullptr) or some portion of point cloud (if region pointer ...
Definition MRPointCloudPart.h:10
Definition MRMesh/MRPointCloud.h:17
a point located on some mesh's face
Definition MRMesh/MRPointOnFace.h:11
Definition MRPointOnObject.h:18
Definition MRPointsProject.h:15
Definition MRPolylineProject.h:15
Definition MRPolylineProject.h:73
Definition MRPolyline.h:18
options determining computation of signed distance from a point to a mesh
Definition MRDistanceToMeshOptions.h:37
describes a number of local triangulations of some points (e.g. assigned to a thread)
Definition MRLocalTriangulations.h:40
Definition MRSymMatrix2.h:14
Definition MRSymMatrix3.h:15
Definition MRSymMatrix4.h:13
Definition MRTbbTaskArenaAndGroup.h:13
Definition MRTriMesh.h:13
Definition MRUnorientedTriangle.h:13
Definition MRVector2.h:27
Definition MRMesh/MRVector3.h:28
Definition MRVector4.h:22
Definition MRMesh/MRMeshFwd.h:775