MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMeshFwd.h
Go to the documentation of this file.
1#pragma once
2
3#include "config.h"
4
6#include "MRPch/MRBindingMacros.h"
7
21#if defined _MSC_VER
22 #if !defined _ITERATOR_DEBUG_LEVEL
23 #define _ITERATOR_DEBUG_LEVEL 0
24 #endif
25 #if !defined MR_ITERATOR_DEBUG_LEVEL
26 #define MR_ITERATOR_DEBUG_LEVEL 0
27 #endif
28 #if _ITERATOR_DEBUG_LEVEL != MR_ITERATOR_DEBUG_LEVEL
29 #error _ITERATOR_DEBUG_LEVEL is inconsistent with MeshLib
30 #endif
31#endif
32
34#ifdef _MSC_VER
35#define MR_CPP_STANDARD_DATE _MSVC_LANG
36#else
37#define MR_CPP_STANDARD_DATE __cplusplus
38#endif
44#if MR_CPP_STANDARD_DATE < 201709 && !defined(__CUDACC__)
45#error Must enable C++20 or newer!
46#endif
53
54
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"
59#endif
60
61#include <array>
62
63#if defined(__GNUC__) && (__GNUC__ >= 13 && __GNUC__ <= 15)
64 #pragma GCC diagnostic pop
65#endif
66
67#include <vector>
68#include <string>
69#include <parallel_hashmap/phmap_fwd_decl.h>
70#include <functional>
71
72#ifdef _WIN32
73# ifdef MRMesh_EXPORTS
74# define MRMESH_API __declspec(dllexport)
75# else
76# define MRMESH_API __declspec(dllimport)
77# endif
78# define MRMESH_CLASS
79#else
80# define MRMESH_API __attribute__((visibility("default")))
84# ifdef __clang__
85# define MRMESH_CLASS __attribute__((type_visibility("default")))
86# else
87# define MRMESH_CLASS __attribute__((visibility("default")))
88# endif
89#endif
90
91namespace MR
92{
95
96
97struct NoInit {};
98inline constexpr NoInit noInit;
99template <typename T> struct MRMESH_CLASS NoDefInit;
100
113
114MR_CANONICAL_TYPEDEFS( (template <typename T> class MRMESH_CLASS), Id,
115 ( EdgeId, Id<EdgeTag> )
116 ( UndirectedEdgeId, Id<UndirectedEdgeTag> )
117 ( FaceId, Id<FaceTag> )
118 ( VertId, Id<VertTag> )
119 ( PixelId, Id<PixelTag> )
120 ( VoxelId, Id<VoxelTag> )
121 ( RegionId, Id<RegionTag> )
122 ( NodeId, Id<NodeTag> )
123 ( ObjId, Id<ObjTag> )
124 ( TextureId, Id<TextureTag> )
125 ( GraphVertId, Id<GraphVertTag> )
126 ( GraphEdgeId, Id<GraphEdgeTag> )
127)
130template <> class MR_BIND_PREFERRED_NAME(MR::EdgeId) Id<EdgeTag>;
131template <> class MR_BIND_PREFERRED_NAME(MR::VoxelId) Id<VoxelTag>;
132
133MR_CANONICAL_TYPEDEFS( (template <typename T> class MRMESH_CLASS), NoInitId,
134 ( NoInitNodeId, NoInitId<NodeTag> )
135)
136
137template <typename T, typename I = size_t> class MRMESH_CLASS Buffer;
139
140class ViewportId;
141class ViewportMask;
142
146
147using EdgePath = std::vector<EdgeId>;
148using EdgeLoop = std::vector<EdgeId>;
149using EdgeLoops = std::vector<EdgeLoop>;
150
152
153MR_CANONICAL_TYPEDEFS( (template <typename I> class MRMESH_CLASS), TypedBitSet,
154 ( FaceBitSet, TypedBitSet<FaceId> )
155 ( VertBitSet, TypedBitSet<VertId> )
156 ( EdgeBitSet, TypedBitSet<EdgeId> )
157 ( UndirectedEdgeBitSet, TypedBitSet<UndirectedEdgeId> )
158 ( PixelBitSet, TypedBitSet<PixelId> )
159 ( VoxelBitSet, TypedBitSet<VoxelId> )
160 ( RegionBitSet, TypedBitSet<RegionId> )
161 ( NodeBitSet, TypedBitSet<NodeId> )
162 ( ObjBitSet, TypedBitSet<ObjId> )
163 ( TextureBitSet, TypedBitSet<TextureId> )
164 ( GraphVertBitSet, TypedBitSet<GraphVertId> )
165 ( GraphEdgeBitSet, TypedBitSet<GraphEdgeId> )
166)
167
168template<typename T>
170
171MR_CANONICAL_TYPEDEFS( (template <typename T> class MRMESH_CLASS), SetBitIteratorT,
172 ( SetBitIterator, SetBitIteratorT<BitSet> )
173 ( FaceSetBitIterator, SetBitIteratorT<FaceBitSet> )
174 ( VertSetBitIterator, SetBitIteratorT<VertBitSet> )
175 ( EdgeSetBitIterator, SetBitIteratorT<EdgeBitSet> )
176 ( UndirectedEdgeSetBitIterator, SetBitIteratorT<UndirectedEdgeBitSet> )
177)
178
180
194#ifdef __APPLE__
195using Int64 = std::ptrdiff_t;
196using Uint64 = std::size_t;
197static_assert(sizeof(Int64) == 8);
198static_assert(sizeof(Uint64) == 8);
199#else
200using Int64 = std::int64_t;
201using Uint64 = std::uint64_t;
202#endif
203
204MR_CANONICAL_TYPEDEFS( (template <typename T> struct), MRMESH_CLASS Vector2,
206 ( Vector2i, Vector2<int> )
207 ( Vector2i64, Vector2<Int64> )
208 ( Vector2f, Vector2<float> )
209 ( Vector2d, Vector2<double> )
210)
214#if !MR_PARSING_FOR_ANY_BINDINGS
215using Vector2ll [[deprecated("Use `Vector2i64` instead.")]] = Vector2<long long>;
216#endif
217
218MR_CANONICAL_TYPEDEFS( (template <typename T> struct), MRMESH_CLASS Vector3,
220 ( Vector3i, Vector3<int> )
221 ( Vector3i64, Vector3<Int64> )
222 ( Vector3f, Vector3<float> )
223 ( Vector3d, Vector3<double> )
224)
225#if !MR_PARSING_FOR_ANY_BINDINGS
226using Vector3ll [[deprecated("Use `Vector3i64` instead.")]] = Vector3<long long>;
227#endif
228
229MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Vector4,
231 ( Vector4i, Vector4<int> )
232 ( Vector4i64, Vector4<Int64> )
233 ( Vector4f, Vector4<float> )
234 ( Vector4d, Vector4<double> )
235)
236#if !MR_PARSING_FOR_ANY_BINDINGS
237using Vector4ll [[deprecated("Use `Vector4i64` instead.")]] = Vector4<long long>;
238#endif
239
240MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Matrix2,
242 ( Matrix2i, Matrix2<int> )
243 ( Matrix2i64, Matrix2<Int64> )
244 ( Matrix2f, Matrix2<float> )
245 ( Matrix2d, Matrix2<double> )
246)
247#if !MR_PARSING_FOR_ANY_BINDINGS
248using Matrix2ll [[deprecated("Use `Matrix2i64` instead.")]] = Matrix2<long long>;
249#endif
250
251MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Matrix3,
253 ( Matrix3i, Matrix3<int> )
254 ( Matrix3i64, Matrix3<Int64> )
255 ( Matrix3f, Matrix3<float> )
256 ( Matrix3d, Matrix3<double> )
257)
258#if !MR_PARSING_FOR_ANY_BINDINGS
259using Matrix3ll [[deprecated("Use `Matrix3i64` instead.")]] = Matrix3<long long>;
260#endif
261
262MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Matrix4,
264 ( Matrix4i, Matrix4<int> )
265 ( Matrix4i64, Matrix4<Int64> )
266 ( Matrix4f, Matrix4<float> )
267 ( Matrix4d, Matrix4<double> )
268)
269#if !MR_PARSING_FOR_ANY_BINDINGS
270using Matrix4ll [[deprecated("Use `Matrix4i64` instead.")]] = Matrix4<long long>;
271#endif
272
273MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SymMatrix2,
275 ( SymMatrix2i, SymMatrix2<int> )
276 ( SymMatrix2i64, SymMatrix2<Int64> )
277 ( SymMatrix2f, SymMatrix2<float> )
278 ( SymMatrix2d, SymMatrix2<double> )
279)
280#if !MR_PARSING_FOR_ANY_BINDINGS
281using SymMatrix2ll [[deprecated("Use `SymMatrix2i64` instead.")]] = SymMatrix2<long long>;
282#endif
283
284MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SymMatrix3,
286 ( SymMatrix3i, SymMatrix3<int> )
287 ( SymMatrix3i64, SymMatrix3<Int64> )
288 ( SymMatrix3f, SymMatrix3<float> )
289 ( SymMatrix3d, SymMatrix3<double> )
290)
291#if !MR_PARSING_FOR_ANY_BINDINGS
292using SymMatrix3ll [[deprecated("Use `SymMatrix3i64` instead.")]] = SymMatrix3<long long>;
293#endif
294
295MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SymMatrix4,
297 ( SymMatrix4i, SymMatrix4<int> )
298 ( SymMatrix4i64, SymMatrix4<Int64> )
299 ( SymMatrix4f, SymMatrix4<float> )
300 ( SymMatrix4d, SymMatrix4<double> )
301)
302#if !MR_PARSING_FOR_ANY_BINDINGS
303using SymMatrix4ll [[deprecated("Use `SymMatrix4i64` instead.")]] = SymMatrix4<long long>;
304#endif
305
306MR_CANONICAL_TYPEDEFS( (template <typename V> struct), AffineXf,
308 ( AffineXf2d, AffineXf<Vector2<double>> )
309 ( AffineXf3f, AffineXf<Vector3<float>> )
310 ( AffineXf3d, AffineXf<Vector3<double>> )
311)
312template <typename T> using AffineXf2 = AffineXf<Vector2<T>>;
313template <typename T> using AffineXf3 = AffineXf<Vector3<T>>;
314
315MR_CANONICAL_TYPEDEFS( (template <typename T> struct), RigidXf3,
316 ( RigidXf3f, RigidXf3<float> )
317 ( RigidXf3d, RigidXf3<double> )
318)
319
322 ( RigidScaleXf3d, RigidScaleXf3<double> )
323)
324
327
328MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Sphere,
330 ( Sphere2d, Sphere<Vector2<double>> )
331 ( Sphere3f, Sphere<Vector3<float>> )
332 ( Sphere3d, Sphere<Vector3<double>> )
333)
334template <typename T> using Sphere2 = Sphere<Vector2<T>>;
335template <typename T> using Sphere3 = Sphere<Vector3<T>>;
336
337MR_CANONICAL_TYPEDEFS( (template <typename V> struct), Line,
338 ( Line2f, Line<Vector2<float>> )
339 ( Line2d, Line<Vector2<double>> )
340 ( Line3f, Line<Vector3<float>> )
341 ( Line3d, Line<Vector3<double>> )
342)
343template <typename T> using Line2 = Line<Vector2<T>>;
344template <typename T> using Line3 = Line<Vector3<T>>;
345
346MR_CANONICAL_TYPEDEFS( (template <typename V> struct), LineSegm,
348 ( LineSegm2d, LineSegm<Vector2<double>> )
349 ( LineSegm3f, LineSegm<Vector3<float>> )
350 ( LineSegm3d, LineSegm<Vector3<double>> )
351)
352template <typename T> using LineSegm2 = LineSegm<Vector2<T>>;
353template <typename T> using LineSegm3 = LineSegm<Vector3<T>>;
354
355MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Parabola,
356 ( Parabolaf, Parabola<float> )
357 ( Parabolad, Parabola<double> )
358)
359
360MR_CANONICAL_TYPEDEFS( (template <typename T> class), BestFitParabola,
362 ( BestFitParabolad, BestFitParabola<double> )
363)
364
365MR_CANONICAL_TYPEDEFS( (template <typename T> class), Cylinder3,
367 ( Cylinder3d, Cylinder3<double> )
368)
369
370MR_CANONICAL_TYPEDEFS( (template <typename T> class), Cone3,
371 ( Cone3f, Cone3<float> )
372 ( Cone3d, Cone3<double> )
373)
374
376template <typename V> using Contour = std::vector<V>;
377template <typename T> using Contour2 = Contour<Vector2<T>>;
378template <typename T> using Contour3 = Contour<Vector3<T>>;
379using Contour2d = Contour2<double>;
380using Contour2f = Contour2<float>;
381using Contour3d = Contour3<double>;
382using Contour3f = Contour3<float>;
383
384template <typename V> using Contours = std::vector<Contour<V>>;
385template <typename T> using Contours2 = Contours<Vector2<T>>;
386template <typename T> using Contours3 = Contours<Vector3<T>>;
387using Contours2d = Contours2<double>;
388using Contours2f = Contours2<float>;
389using Contours3d = Contours3<double>;
390using Contours3f = Contours3<float>;
391
392MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Plane3,
393 ( Plane3f, Plane3<float> )
394 ( Plane3d, Plane3<double> )
395)
396
398 ( Box1i, Box<int> )
399 ( Box1i64, Box<Int64> )
400 ( Box1f, Box<float> )
401 ( Box1d, Box<double> )
402 ( Box2i, Box<Vector2<int>> )
403 ( Box2i64, Box<Vector2<Int64>> )
404 ( Box2f, Box<Vector2<float>> )
405 ( Box2d, Box<Vector2<double>> )
406 ( Box3i, Box<Vector3<int>> )
407 ( Box3i64, Box<Vector3<Int64>> )
408 ( Box3f, Box<Vector3<float>> )
409 ( Box3d, Box<Vector3<double>> )
410)
411#if !MR_PARSING_FOR_ANY_BINDINGS
412using Box1ll [[deprecated("Use `Box1i64` instead.")]] = Box<long long>;
413using Box2ll [[deprecated("Use `Box2i64` instead.")]] = Box<Vector2<long long>>;
414using Box3ll [[deprecated("Use `Box3i64` instead.")]] = Box<Vector3<long long>>;
415#endif
416
417template <typename T> using MinMax = Box<T>;
421
422template <typename T> using Box1 = Box<T>;
423template <typename T> using Box2 = Box<Vector2<T>>;
424template <typename T> using Box3 = Box<Vector3<T>>;
425
426template<typename T, typename I> struct MinArg;
427template<typename T, typename I> struct MaxArg;
428template<typename T, typename I> struct MinMaxArg;
429
430MR_CANONICAL_TYPEDEFS( (template <typename V> struct MRMESH_CLASS), Ball,
431 ( Ball1f, Ball<float> )
432 ( Ball1d, Ball<double> )
433 ( Ball2f, Ball<Vector2<float>> )
434 ( Ball2d, Ball<Vector2<double>> )
435 ( Ball3f, Ball<Vector3<float>> )
436 ( Ball3d, Ball<Vector3<double>> )
437)
438template <typename T> using Ball1 = Ball<T>;
439template <typename T> using Ball2 = Ball<Vector2<T>>;
440template <typename T> using Ball3 = Ball<Vector3<T>>;
441
443 ( CubicBezierCurve2f, CubicBezierCurve<Vector2<float>> )
444 ( CubicBezierCurve2d, CubicBezierCurve<Vector2<double>> )
445 ( CubicBezierCurve3f, CubicBezierCurve<Vector3<float>> )
446 ( CubicBezierCurve3d, CubicBezierCurve<Vector3<double>> )
447)
448template <typename T> using CubicBezierCurve2 = CubicBezierCurve<Vector2<T>>;
449template <typename T> using CubicBezierCurve3 = CubicBezierCurve<Vector3<T>>;
450
453 ( QuadraticForm2d, QuadraticForm<Vector2<double>> )
454 ( QuadraticForm3f, QuadraticForm<Vector3<float>> )
455 ( QuadraticForm3d, QuadraticForm<Vector3<double>> )
456)
457template <typename T> using QuadraticForm2 = QuadraticForm<Vector2<T>>;
458template <typename T> using QuadraticForm3 = QuadraticForm<Vector3<T>>;
459
460MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Quaternion,
462 ( Quaterniond, Quaternion<double> )
463)
464
466template <typename T> using Triangle3 = std::array<Vector3<T>, 3>;
467using Triangle3i = Triangle3<int>;
468using Triangle3f = Triangle3<float>;
469using Triangle3d = Triangle3<double>;
470
471class PointAccumulator;
472
473MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SegmPoint,
475 ( SegmPointd, SegmPoint<double> )
476)
477
481using SurfacePath = std::vector<MeshEdgePoint>;
482using SurfacePaths = std::vector<SurfacePath>;
489class Laplacian;
490
491using VertPair = std::pair<VertId, VertId>;
492using FacePair = std::pair<FaceId, FaceId>;
493using EdgePair = std::pair<EdgeId, EdgeId>;
494using UndirectedEdgePair = std::pair<UndirectedEdgeId, UndirectedEdgeId>;
495
496MR_CANONICAL_TYPEDEFS( (template <typename T> struct), TriPoint,
497 ( TriPointf, TriPoint<float> )
498 ( TriPointd, TriPoint<double> )
499)
500
507template <typename T> struct IntersectionPrecomputes;
508
509template <typename I> struct IteratorRange;
510
513using UVCoord = Vector2f;
514
516using TwoVertIds = std::array<VertId, 2>;
517
519using ThreeVertIds = std::array<VertId, 3>;
520
522using ThreeUVCoords = std::array<UVCoord, 3>;
523
525
526MR_CANONICAL_TYPEDEFS( (template <typename T, typename I> class MRMESH_CLASS), Vector,
528 ( Edges, Vector<TwoVertIds, UndirectedEdgeId> )
529
531 ( Triangulation, Vector<ThreeVertIds, FaceId> )
532
534 ( TriCornerUVCoords, Vector<ThreeUVCoords, FaceId> )
535
536 ( Dipoles, Vector<Dipole, NodeId> )
537
538 ( FaceMap, Vector<FaceId, FaceId> )
539 ( VertMap, Vector<VertId, VertId> )
540 ( EdgeMap, Vector<EdgeId, EdgeId> )
541 ( UndirectedEdgeMap, Vector<UndirectedEdgeId, UndirectedEdgeId> )
542 ( ObjMap, Vector<ObjId, ObjId> )
543
545 ( WholeEdgeMap, Vector<EdgeId, UndirectedEdgeId> )
546 ( UndirectedEdge2RegionMap, Vector<RegionId, UndirectedEdgeId> )
547 ( Face2RegionMap, Vector<RegionId, FaceId> )
548 ( Vert2RegionMap, Vector<RegionId, VertId> )
549
550 ( VertCoords, Vector<Vector3f, VertId> )
551 ( VertCoords2, Vector<Vector2f, VertId> )
552 ( VertNormals, Vector<Vector3f, VertId> )
553 ( VertUVCoords, Vector<UVCoord, VertId> )
554 ( FaceNormals, Vector<Vector3f, FaceId> )
555
556 ( TexturePerFace, Vector<TextureId, FaceId> )
557 ( VertColors, Vector<Color, VertId> )
558 ( FaceColors, Vector<Color, FaceId> )
559 ( EdgeColors, Vector<Color, EdgeId> )
560 ( UndirectedEdgeColors, Vector<Color, UndirectedEdgeId> )
561
562 ( VertScalars, Vector<float, VertId> )
563 ( FaceScalars, Vector<float, FaceId> )
564 ( EdgeScalars, Vector<float, EdgeId> )
565 ( UndirectedEdgeScalars, Vector<float, UndirectedEdgeId> )
566)
567
568using VertPredicate = std::function<bool( VertId )>;
569using FacePredicate = std::function<bool( FaceId )>;
570using EdgePredicate = std::function<bool( EdgeId )>;
571using UndirectedEdgePredicate = std::function<bool( UndirectedEdgeId )>;
572
573using PreCollapseCallback = std::function<bool( EdgeId edgeToCollapse, const Vector3f& newEdgeOrgPos )>;
574using OnEdgeSplit = std::function<void( EdgeId e1, EdgeId e )>;
575
576template <typename T>
577[[nodiscard]] inline bool contains( const std::function<bool( Id<T> )> & pred, Id<T> id )
578{
579 return id.valid() && ( !pred || pred( id ) );
580}
581
582using VertMetric = std::function<float( VertId )>;
583using FaceMetric = std::function<float( FaceId )>;
584using EdgeMetric = std::function<float( EdgeId )>;
585using UndirectedEdgeMetric = std::function<float( UndirectedEdgeId )>;
586
587MR_CANONICAL_TYPEDEFS( (template <typename T, typename I> struct MRMESH_CLASS), BMap,
588 ( FaceBMap, BMap<FaceId, FaceId> )
589 ( VertBMap, BMap<VertId, VertId> )
590 ( EdgeBMap, BMap<EdgeId, EdgeId> )
591 ( UndirectedEdgeBMap, BMap<UndirectedEdgeId, UndirectedEdgeId> )
592 ( WholeEdgeBMap, BMap<EdgeId, UndirectedEdgeId> )
593)
594
595template <typename T, typename Hash = phmap::priv::hash_default_hash<T>, typename Eq = phmap::priv::hash_default_eq<T>>
596using HashSet = phmap::flat_hash_set<T, Hash, Eq>;
597template <typename T, typename Hash = phmap::priv::hash_default_hash<T>, typename Eq = phmap::priv::hash_default_eq<T>>
598using ParallelHashSet = phmap::parallel_flat_hash_set<T, Hash, Eq>;
599
601using FaceHashSet = HashSet<FaceId>;
602using VertHashSet = HashSet<VertId>;
603using EdgeHashSet = HashSet<EdgeId>;
604
605template <typename K, typename V, typename Hash = phmap::priv::hash_default_hash<K>, typename Eq = phmap::priv::hash_default_eq<K>>
606using HashMap = phmap::flat_hash_map<K, V, Hash, Eq>;
607template <typename K, typename V, typename Hash = phmap::priv::hash_default_hash<K>, typename Eq = phmap::priv::hash_default_eq<K>>
608using ParallelHashMap = phmap::parallel_flat_hash_map<K, V, Hash, Eq>;
609
610using FaceHashMap = HashMap<FaceId, FaceId>;
611using VertHashMap = HashMap<VertId, VertId>;
612using EdgeHashMap = HashMap<EdgeId, EdgeId>;
613using UndirectedEdgeHashMap = HashMap<UndirectedEdgeId, UndirectedEdgeId>;
615using WholeEdgeHashMap = HashMap<UndirectedEdgeId, EdgeId>;
616
617template <typename K, typename V>
619
620using FaceMapOrHashMap = MapOrHashMap<FaceId, FaceId>;
621using VertMapOrHashMap = MapOrHashMap<VertId, VertId>;
622using EdgeMapOrHashMap = MapOrHashMap<EdgeId, EdgeId>;
623using UndirectedEdgeMapOrHashMap = MapOrHashMap<UndirectedEdgeId, UndirectedEdgeId>;
625using WholeEdgeMapOrHashMap = MapOrHashMap<UndirectedEdgeId, EdgeId>;
626
627template <typename I> class UnionFind;
628template <typename T, typename I, typename P> class Heap;
629
646
648 ( MeshPart, MeshRegion<FaceTag> )
649 ( MeshVertPart, MeshRegion<VertTag> )
650)
651
652template<typename T> class UniqueThreadSafeOwner;
653template<typename T> class SharedThreadSafeOwner;
654
655class PolylineTopology;
656
657MR_CANONICAL_TYPEDEFS( (template<typename V> struct), Polyline,
658 ( Polyline2, Polyline<Vector2f> )
659 ( Polyline3, Polyline<Vector3f> )
660)
661
664 ( AABBTreePolyline3, AABBTreePolyline<Vector3f> )
665)
666
667template<typename T> struct IntersectionPrecomputes;
668template<typename T> struct IntersectionPrecomputes2;
669
670MR_CANONICAL_TYPEDEFS( (template<typename V> struct [[nodiscard]]), PolylineProjectionResult,
671 ( PolylineProjectionResult2, PolylineProjectionResult<Vector2f> )
672 ( PolylineProjectionResult3, PolylineProjectionResult<Vector3f> )
673)
674
677 ( PolylineProjectionWithOffsetResult3, PolylineProjectionWithOffsetResult<Vector3f> )
678)
679
680class DistanceMap;
683
684using GcodeSource = std::vector<std::string>;
685
686class Object;
687class SceneRootObject;
688class VisualObject;
689class ObjectMeshHolder;
690class ObjectMesh;
694class ObjectPoints;
696class ObjectLines;
698class ObjectLabel;
699class ObjectGcode;
700class PointObject;
701class LineObject;
702class CircleObject;
703class PlaneObject;
704class SphereObject;
705class CylinderObject;
706class ConeObject;
707
709
712
713class HistoryAction;
720class ChangeMeshAction;
728class ChangeXfAction;
730class SwapRootAction;
731
732MR_CANONICAL_TYPEDEFS( (template <typename Tag> class MRMESH_CLASS), ColorMapAggregator,
733 ( VertColorMapAggregator, ColorMapAggregator<VertTag> )
734 ( UndirEdgeColorMapAggregator, ColorMapAggregator<UndirectedEdgeTag> )
735 ( FaceColorMapAggregator, ColorMapAggregator<FaceTag> )
736)
737
738template<typename T>
739class FewSmallest;
740
741class Graph;
742class WatershedGraph;
743
745
747namespace SceneSave { struct Settings; }
748namespace ObjectSave { struct Settings; }
749
753typedef std::function<bool( float )> ProgressCallback;
754
755enum class FilterType : char;
756enum class WrapType : char;
757enum class Reorder : char;
758
759struct TransparencyMode;
760
762template <typename T>
763constexpr inline T sqr( T x ) noexcept { return x * x; }
764
766template <typename T>
767constexpr inline int sgn( T x ) noexcept { return x > 0 ? 1 : ( x < 0 ? -1 : 0 ); }
768
770template <typename T>
771constexpr inline T distance( T x, T y ) noexcept { return x >= y ? x - y : y - x; }
772
774template <typename T>
775constexpr inline T distanceSq( T x, T y ) noexcept { return sqr( x - y ); }
776
778template <typename V, typename T>
779constexpr inline auto lerp( V v0, V v1, T t ) noexcept { return ( 1 - t ) * v0 + t * v1; }
780
781template<typename...>
782inline constexpr bool dependent_false = false;
783
784template<class... Ts>
785struct overloaded : Ts... { using Ts::operator()...; };
786
788template<class... Ts>
789overloaded(Ts...) -> overloaded<Ts...>;
790
793class IPointsProjector;
794
795namespace MeshBuilder
796{
797
798struct BuildSettings;
799struct Triangle;
800struct VertDuplication;
801
802}
803
804namespace Locale
805{
806
808constexpr inline auto translate_noop( const char* str ) noexcept { return str; }
809constexpr inline auto translate_noop( const char* ctx, const char* str ) noexcept { (void)ctx; return str; }
810constexpr inline auto translate_noop( const char* single, const char* plural, Int64 n ) noexcept { return n == 1 ? single : plural; }
811constexpr inline auto translate_noop( const char* ctx, const char* single, const char* plural, Int64 n ) noexcept { (void)ctx; return n == 1 ? single : plural; }
812
813}
814
815}
816
817#ifdef __cpp_lib_unreachable
818# define MR_UNREACHABLE std::unreachable();
819# define MR_UNREACHABLE_NO_RETURN std::unreachable();
820#else
821# ifdef __GNUC__
822# define MR_UNREACHABLE __builtin_unreachable();
823# define MR_UNREACHABLE_NO_RETURN __builtin_unreachable();
824# else
825# include <cassert>
826# define MR_UNREACHABLE { assert( false ); return {}; }
827# define MR_UNREACHABLE_NO_RETURN assert( false );
828# endif
829#endif
830
831#ifndef MR_NO_I18N_MACROS
832#define _t( ... ) MR::Locale::translate_noop( __VA_ARGS__ )
833#endif
#define MR_CANONICAL_TYPEDEFS(type_, name_, aliases_)
Definition MRCanonicalTypedefs.h:23
#define MRMESH_CLASS
Definition MRMeshFwd.h:87
Definition MRAABBTreeObjects.h:22
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:53
accumulates a number of (x,y) points to find the best-least-squares parabola approximating them
Definition MRBestFitParabola.h:15
Definition MRBitSet.h:69
std::vector<V>-like container that is 1) resized without initialization of its elements,...
Definition MRBuffer.h:58
Undo action for ObjectMesh mesh change.
Definition MRChangeMeshAction.h:16
Undo action for ObjectMesh creases.
Definition MRChangeSelectionAction.h:122
Undo action for ObjectMeshData change.
Definition MRChangeMeshDataAction.h:14
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:17
Undo action for ObjectPoints point selection.
Definition MRChangeSelectionAction.h:176
Definition MRChangeSceneAction.h:16
Definition MRChangeXfAction.h:16
Definition MRCircleObject.h:17
Class for aggregate several color map in one Color maps are aggregated according order.
Definition MRColorMapAggregator.h:20
Definition MRCombinedHistoryAction.h:15
Base class for cone parameterization.
Definition MRCone3.h:14
Definition MRConeObject.h:22
Definition MRCylinder3.h:15
Definition MRCylinderObject.h:21
Definition MRDistanceMap.h:24
the class stores some number of smallest elements from a larger number of candidates
Definition MRFewSmallest.h:17
mathematical graph consisting from vertices and undirected edges
Definition MRGraph.h:17
stores map from element id in[0, size) to T;
Definition MRHeap.h:23
Definition MRHistoryAction.h:15
Abstract class for fast approximate computation of generalized winding number for a mesh (using its A...
Definition MRFastWindingNumber.h:15
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 MRPointsToMeshProjector.h:16
stores index of some element, it is made as template class to avoid mixing faces, edges and vertices
Definition MRId.h:19
Definition MRLaplacian.h:24
Definition MRLineObject.h:16
Definition MRMeshOrPoints.h:21
Definition MRMeshTopology.h:23
Variant of Id<T> with omitted initialization by default. Useful for containers.
Definition MRId.h:80
Definition MRObjectDistanceMap.h:16
Definition MRObjectGcode.h:17
Definition MRObjectLabel.h:29
Definition MRObjectLinesHolder.h:30
Definition MRObjectLines.h:14
Definition MRObjectMeshHolder.h:35
Definition MRObjectMesh.h:14
Definition MRObjectPointsHolder.h:24
Definition MRObjectPoints.h:14
named object in the data model
Definition MRObject.h:62
Undo action for efficiently storage of partial change in mesh (e.g. a modification of small region)
Definition MRPartialChangeMeshAction.h:25
Undo action for efficiently storage of partial change in mesh points (e.g. a modification of small re...
Definition MRPartialChangeMeshAction.h:85
Undo action for efficiently storage of partial change in mesh topology (e.g. a modification of small ...
Definition MRPartialChangeMeshAction.h:151
Definition MRPlaneObject.h:15
Class to accumulate points and make best line / plane approximation.
Definition MRBestFit.h:20
Definition MRPointObject.h:17
Definition MRPointToPlaneAligningTransform.h:20
Definition MRPointToPointAligningTransform.h:16
Definition MRPolylineTopology.h:18
Object that is parent of all scene.
Definition MRSceneRoot.h:14
iterator to enumerate all indices with set bits in BitSet class or its derivatives
Definition MRBitSet.h:24
Definition MRSharedThreadSafeOwner.h:19
Definition MRSphereObject.h:18
Definition MRSwapRootAction.h:16
Definition MRBitSet.h:277
Union-find data structure for representing disjoin sets of elements with few very quick operations: 1...
Definition MRUnionFind.h:23
Definition MRUniqueThreadSafeOwner.h:18
std::vector<T>-like container that requires specific indexing type,
Definition MRVector.h:23
Definition MRVersatileChangeMeshAction.h:14
Definition MRViewportId.h:16
stores mask of viewport unique identifiers
Definition MRViewportId.h:42
Visual Object.
Definition MRVisualObject.h:115
graphs representing rain basins on the mesh
Definition MRWatershedGraph.h:15
bool contains(const TypedBitSet< I > *bitset, I id)
Definition MRBitSet.h:392
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:753
CubicBezierCurve< Vector2< T > > CubicBezierCurve2
Definition MRMeshFwd.h:448
std::function< float(VertId)> VertMetric
Definition MRMeshFwd.h:582
phmap::parallel_flat_hash_map< K, V, Hash, Eq > ParallelHashMap
Definition MRMeshFwd.h:608
std::vector< EdgeId > EdgeLoop
Definition MRMeshFwd.h:148
std::vector< std::string > GcodeSource
Definition MRMeshFwd.h:684
RigidXf3f
Definition MRMeshFwd.h:316
WrapType
Definition MREnums.h:18
LineSegm2f
Definition MRMeshFwd.h:347
struct
Definition MRMeshFwd.h:204
Contour
Definition MRObjectLabel.h:20
std::array< VertId, 2 > TwoVertIds
two vertex ids describing an edge with the ends in vertices given by their ids
Definition MRMeshFwd.h:516
MRMESH_CLASS Vector2b
Definition MRMeshFwd.h:205
std::vector< SurfacePath > SurfacePaths
Definition MRMeshFwd.h:482
std::vector< EdgeLoop > EdgeLoops
Definition MRMeshFwd.h:149
Contour3< float > Contour3f
Definition MRMeshFwd.h:382
class MRMESH_CLASS UndirectedEdgeTag
Definition MRMeshFwd.h:102
constexpr T sqr(T x) noexcept
squared value
Definition MRMeshFwd.h:763
Cylinder3f
Definition MRMeshFwd.h:366
AABBTreePolyline2
Definition MRMeshFwd.h:663
LineSegm< Vector3< T > > LineSegm3
Definition MRMeshFwd.h:353
MapOrHashMap< FaceId, FaceId > FaceMapOrHashMap
Definition MRMeshFwd.h:620
class MRMESH_CLASS ObjTag
Definition MRMeshFwd.h:109
CubicBezierCurve< Vector3< T > > CubicBezierCurve3
Definition MRMeshFwd.h:449
Box< T > MinMax
Definition MRMeshFwd.h:417
Edges
Definition MRObjectMeshHolder.h:19
std::function< bool(FaceId)> FacePredicate
Definition MRMeshFwd.h:569
MinMax< float > MinMaxf
Definition MRMeshFwd.h:418
Contour2< double > Contour2d
Definition MRMeshFwd.h:379
struct MRMESH_CLASS Eq
Definition MRMeshFwd.h:595
class MRMESH_CLASS NodeTag
Definition MRMeshFwd.h:108
Box< Vector3< T > > Box3
Definition MRMeshFwd.h:424
HashSet< VertId > VertHashSet
Definition MRMeshFwd.h:602
TriPointf
Definition MRMeshFwd.h:497
std::function< bool(EdgeId)> EdgePredicate
Definition MRMeshFwd.h:570
Contour2< float > Contour2f
Definition MRMeshFwd.h:380
std::array< UVCoord, 3 > ThreeUVCoords
three UV-coordinates describing texturing of a triangle
Definition MRMeshFwd.h:522
SymMatrix2b
Definition MRMeshFwd.h:274
Contours2< double > Contours2d
Definition MRMeshFwd.h:387
Contours3< float > Contours3f
Definition MRMeshFwd.h:390
std::uint64_t Uint64
Definition MRMeshFwd.h:201
std::function< bool(UndirectedEdgeId)> UndirectedEdgePredicate
Definition MRMeshFwd.h:571
Ball< Vector2< T > > Ball2
Definition MRMeshFwd.h:439
MapOrHashMap< VertId, VertId > VertMapOrHashMap
Definition MRMeshFwd.h:621
Contours3< double > Contours3d
Definition MRMeshFwd.h:389
SurfacePaths PlaneSections
Definition MRMeshFwd.h:486
MapOrHashMap< EdgeId, EdgeId > EdgeMapOrHashMap
Definition MRMeshFwd.h:622
HashMap< VertId, VertId > VertHashMap
Definition MRMeshFwd.h:611
QuadraticForm2f
Definition MRMeshFwd.h:452
QuadraticForm< Vector3< T > > QuadraticForm3
Definition MRMeshFwd.h:458
class MRMESH_CLASS VoxelTag
Definition MRMeshFwd.h:106
Ball< T > Ball1
Definition MRMeshFwd.h:438
FilterType
Definition MREnums.h:12
Plane3f
Definition MRMeshFwd.h:393
SurfacePath IsoLine
Definition MRMeshFwd.h:483
Vector2f UVCoord
Definition MRMeshFwd.h:513
Triangle3< int > Triangle3i
Definition MRMeshFwd.h:467
Ball< Vector3< T > > Ball3
Definition MRMeshFwd.h:440
MRMESH_CLASS Vector3b
Definition MRMeshFwd.h:219
Sphere< Vector3< T > > Sphere3
Definition MRMeshFwd.h:335
std::vector< MeshEdgePoint > SurfacePath
Definition MRMeshFwd.h:481
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 MRMeshFwd.h:615
class MRMESH_CLASS FaceTag
Definition MRMeshFwd.h:103
class MRMESH_CLASS TextureTag
Definition MRMeshFwd.h:110
class MRMESH_CLASS I
Definition MRMeshFwd.h:137
class MRMESH_CLASS PixelTag
Definition MRMeshFwd.h:105
Line< Vector3< T > > Line3
Definition MRMeshFwd.h:344
Contours< Vector2< T > > Contours2
Definition MRMeshFwd.h:385
overloaded(Ts...) -> overloaded< Ts... >
explicit deduction guide (not needed as of C++20, but still needed in Clang)
constexpr int sgn(T x) noexcept
sign of given value in { -1, 0, 1 }
Definition MRMeshFwd.h:767
Contours2< float > Contours2f
Definition MRMeshFwd.h:388
RigidScaleXf3f
Definition MRMeshFwd.h:321
std::function< float(EdgeId)> EdgeMetric
Definition MRMeshFwd.h:584
MinMax< double > MinMaxd
Definition MRMeshFwd.h:419
Box< Vector2< T > > Box2
Definition MRMeshFwd.h:423
std::function< bool(EdgeId edgeToCollapse, const Vector3f &newEdgeOrgPos)> PreCollapseCallback
Definition MRMeshFwd.h:573
MinMax< int > MinMaxi
Definition MRMeshFwd.h:420
EdgePoint MeshEdgePoint
Definition MRMeshFwd.h:480
Box< T > Box1
Definition MRMeshFwd.h:422
Contour< Vector2< T > > Contour2
Definition MRMeshFwd.h:377
Contour3< double > Contour3d
Definition MRMeshFwd.h:381
TypedBitSet< Id< T > > TaggedBitSet
Definition MRMeshFwd.h:169
SurfacePath PlaneSection
Definition MRMeshFwd.h:485
HashMap< FaceId, FaceId > FaceHashMap
Definition MRMeshFwd.h:610
std::function< float(FaceId)> FaceMetric
Definition MRMeshFwd.h:583
MapOrHashMap< UndirectedEdgeId, EdgeId > WholeEdgeMapOrHashMap
mapping of whole edges: map[e]->f, map[e.sym()]->f.sym(), where only map[e] for even edges is stored
Definition MRMeshFwd.h:625
Polyline2
Definition MRMeshFwd.h:658
Triangle3< double > Triangle3d
Definition MRMeshFwd.h:469
Box1i
Definition MRMeshFwd.h:398
Contour< Vector3< T > > Contour3
Definition MRMeshFwd.h:378
HashSet< FaceId > FaceHashSet
No canonical typedefs because phmap::... is not under our control.
Definition MRMeshFwd.h:601
std::vector< EdgeId > EdgePath
Definition MRMeshFwd.h:147
std::array< VertId, 3 > ThreeVertIds
three vertex ids describing a triangle with the corners in vertices given by their ids
Definition MRMeshFwd.h:519
Matrix2b
Definition MRMeshFwd.h:241
class MRMESH_CLASS VertTag
Definition MRMeshFwd.h:104
std::pair< FaceId, FaceId > FacePair
Definition MRMeshFwd.h:492
constexpr NoInit noInit
Definition MRMeshFwd.h:98
SymMatrix3b
Definition MRMeshFwd.h:285
HashSet< EdgeId > EdgeHashSet
Definition MRMeshFwd.h:603
std::pair< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgePair
Definition MRMeshFwd.h:494
Cone3f
Definition MRMeshFwd.h:371
BestFitParabolaf
Definition MRMeshFwd.h:361
Quaternionf
Definition MRMeshFwd.h:461
std::pair< EdgeId, EdgeId > EdgePair
Definition MRMeshFwd.h:493
std::int64_t Int64
Definition MRMeshFwd.h:200
std::function< void(EdgeId e1, EdgeId e)> OnEdgeSplit
Definition MRMeshFwd.h:574
std::function< float(UndirectedEdgeId)> UndirectedEdgeMetric
Definition MRMeshFwd.h:585
AffineXf2f
Definition MRMeshFwd.h:307
Line2f
Definition MRMeshFwd.h:338
constexpr auto lerp(V v0, V v1, T t) noexcept
Linear interpolation: returns v0 when t==0 and v1 when t==1.
Definition MRMeshFwd.h:779
constexpr bool dependent_false
Definition MRMeshFwd.h:782
Triangle3< float > Triangle3f
Definition MRMeshFwd.h:468
SurfacePaths IsoLines
Definition MRMeshFwd.h:484
constexpr auto translate_noop(const char *str) noexcept
special no-op inline functions to mark string literal as translatable
Definition MRMeshFwd.h:808
class MRMESH_CLASS EdgeTag
Definition MRMeshFwd.h:101
AffineXf< Vector3< T > > AffineXf3
Definition MRMeshFwd.h:313
Vector4b
Definition MRMeshFwd.h:230
std::vector< Contour< V > > Contours
Definition MRMeshFwd.h:384
Polyline2ProjectionWithOffsetResult
Definition MRMeshFwd.h:676
HashMap< EdgeId, EdgeId > EdgeHashMap
Definition MRMeshFwd.h:612
struct MRMESH_CLASS Hash
Definition MRMeshFwd.h:595
phmap::parallel_flat_hash_set< T, Hash, Eq > ParallelHashSet
Definition MRMeshFwd.h:598
SegmPointf
Definition MRMeshFwd.h:474
Parabolaf
Definition MRMeshFwd.h:356
MapOrHashMap< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgeMapOrHashMap
Definition MRMeshFwd.h:623
std::pair< VertId, VertId > VertPair
Definition MRMeshFwd.h:491
Matrix3b
Definition MRMeshFwd.h:252
HashMap< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgeHashMap
Definition MRMeshFwd.h:613
Contours< Vector3< T > > Contours3
Definition MRMeshFwd.h:386
class MRMESH_CLASS RegionTag
Definition MRMeshFwd.h:107
Sphere2f
Definition MRMeshFwd.h:329
class MRMESH_CLASS GraphVertTag
Definition MRMeshFwd.h:111
phmap::flat_hash_map< K, V, Hash, Eq > HashMap
Definition MRMeshFwd.h:606
class MRMESH_CLASS GraphEdgeTag
Definition MRMeshFwd.h:112
SymMatrix4b
Definition MRMeshFwd.h:296
Matrix4b
Definition MRMeshFwd.h:263
Reorder
determines how points to be ordered
Definition MREnums.h:26
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
Definition MRMeshFwd.h:805
Building topologies by triangles.
Definition MRIdentifyVertices.h:16
Definition MRIOFormatsRegistry.h:361
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRAffineXf.h:26
triangulations for all points, with easy access by VertId
Definition MRLocalTriangulations.h:51
flat map: I -> T
Definition MRBuffer.h:136
a ball = points surrounded by a sphere in arbitrary space with vector type V
Definition MRBall.h:15
Box given by its min- and max- corners.
Definition MRBox.h:27
mapping among elements of source point cloud, from which a part is taken, and target (this) point clo...
Definition MRCloudPartMapping.h:13
Definition MRColor.h:12
Cubic Bezier curve.
Definition MRBezier.h:16
Definition MRDipole.h:14
options determining computation of distance from a point to a mesh
Definition MRDistanceToMeshOptions.h:14
Definition MREdgeLengthMesh.h:16
two edge-points (e.g. representing collision point of two edges)
Definition MREdgePoint.h:53
encodes a point on an edge of mesh or of polyline
Definition MREdgePoint.h:14
Represents a segment on one edge.
Definition MREdgePoint.h:64
Parameters structure for MR::fillHole Structure has some options to control MR::fillHole.
Definition MRMeshFillHole.h:26
Definition MRSurfacePath.h:20
settings defining regular grid, where each quadrangular cell is split on two triangles in one of two ...
Definition MRGridSettings.h:14
Definition MRImage.h:19
Definition MRIntersectionPrecomputes2.h:35
Definition MRIntersectionPrecomputes.h:117
Definition MRIteratorRange.h:13
a segment of straight dimensional line
Definition MRLineSegm.h:15
Definition MRLine.h:16
ObjectMeshData and additional information from mesh importer.
Definition MRLoadedMeshData.h:15
result of loading (e.g. from a file) as a number of objects
Definition MRLoadedObjects.h:36
Definition MRMapOrHashMap.h:19
Definition MRMatrix2.h:24
Definition MRMatrix3.h:24
Definition MRMatrix4.h:25
Definition MRMinMaxArg.h:49
Definition MRMeshIntersect.h:18
an object and its transformation to global space with other objects
Definition MRMeshOrPoints.h:109
Definition MRMeshProject.h:18
Definition MRMeshPart.h:15
Definition MRMeshTexture.h:13
Definition MRMeshTriPoint.h:26
Definition MRMesh.h:23
Definition MRMinMaxArg.h:16
Definition MRMinMaxArg.h:82
this class is similar to T, but does not make default initialization of the fields for best performan...
Definition MRNoDefInit.h:14
Definition MRMeshFwd.h:97
mesh and its per-element attributes for ObjectMeshHolder
Definition MRObjectMeshData.h:17
Definition MRBuffer.h:144
Represents quadratic function f(x) = a*x*x + b*x + c.
Definition MRParabola.h:14
mapping among elements of source mesh, from which a part is taken, and target mesh
Definition MRPartMapping.h:13
Definition MRPlane3.h:21
represents full point cloud (if region is nullptr) or some portion of point cloud (if region pointer ...
Definition MRPointCloudPart.h:13
Definition MRPointCloud.h:17
a point located on some mesh's face
Definition MRPointOnFace.h:16
Definition MRPointOnObject.h:21
Definition MRPointsProject.h:15
Definition MRPolylineProject.h:15
Definition MRPolylineProject.h:73
Definition MRPolyline.h:18
Definition MRQuadraticForm.h:16
Definition MRQuaternion.h:16
Definition MRRigidScaleXf3.h:15
Definition MRRigidXf3.h:16
determines how to save points/lines/mesh
Definition MRSaveSettings.h:20
encodes a point inside a line segment using relative distance in [0,1]
Definition MRSegmPoint.h:17
options determining computation of signed distance from a point to a mesh
Definition MRDistanceToMeshOptions.h:40
describes a number of local triangulations of some points (e.g. assigned to a thread)
Definition MRLocalTriangulations.h:43
Definition MRSphere.h:14
Definition MRSymMatrix2.h:17
Definition MRSymMatrix3.h:18
Definition MRSymMatrix4.h:16
Definition MRTbbTaskArenaAndGroup.h:16
struct to determine transparent rendering mode
Definition MRRenderModelParameters.h:13
Definition MRTriMesh.h:16
encodes a point inside a triangle using barycentric coordinates
Definition MRTriPoint.h:19
Definition MRUnorientedTriangle.h:16
Definition MRVector2.h:29
Definition MRVector3.h:33
Definition MRVector4.h:26
Definition MRMeshFwd.h:785