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
5#include "MRMesh/MRMacros.h"
7#include "MRPch/MRBindingMacros.h"
8
22#if defined _MSC_VER
23 #if !defined _ITERATOR_DEBUG_LEVEL
24 #define _ITERATOR_DEBUG_LEVEL 0
25 #endif
26 #if !defined MR_ITERATOR_DEBUG_LEVEL
27 #define MR_ITERATOR_DEBUG_LEVEL 0
28 #endif
29 #if _ITERATOR_DEBUG_LEVEL != MR_ITERATOR_DEBUG_LEVEL
30 #error _ITERATOR_DEBUG_LEVEL is inconsistent with MeshLib
31 #endif
32#endif
33
35#ifdef _MSC_VER
36#define MR_CPP_STANDARD_DATE _MSVC_LANG
37#else
38#define MR_CPP_STANDARD_DATE __cplusplus
39#endif
45#if MR_CPP_STANDARD_DATE < 201709 && !defined(__CUDACC__)
46#error Must enable C++20 or newer!
47#endif
54
55
56#if defined(__GNUC__) && (__GNUC__ >= 13 && __GNUC__ <= 15)
57 #pragma GCC diagnostic push
58 #pragma GCC diagnostic ignored "-Warray-bounds"
59 #pragma GCC diagnostic ignored "-Wstringop-overflow"
60#endif
61
62#include <array>
63
64#if defined(__GNUC__) && (__GNUC__ >= 13 && __GNUC__ <= 15)
65 #pragma GCC diagnostic pop
66#endif
67
68#include <vector>
69#include <string>
70#include <parallel_hashmap/phmap_fwd_decl.h>
71#include <functional>
72#include <cstdint>
73
74#ifdef _WIN32
75# ifdef MRMesh_EXPORTS
76# define MRMESH_API __declspec(dllexport)
77# else
78# define MRMESH_API __declspec(dllimport)
79# endif
80# define MRMESH_CLASS
81#else
82# define MRMESH_API __attribute__((visibility("default")))
86# ifdef __clang__
87# define MRMESH_CLASS __attribute__((type_visibility("default")))
88# else
89# define MRMESH_CLASS __attribute__((visibility("default")))
90# endif
91#endif
92
93namespace MR
94{
97
98
99struct NoInit {};
100inline constexpr NoInit noInit;
101template <typename T> struct MRMESH_CLASS NoDefInit;
102
116
117MR_CANONICAL_TYPEDEFS( (template <typename T> class MRMESH_CLASS), Id,
118 ( EdgeId, Id<EdgeTag> )
119 ( UndirectedEdgeId, Id<UndirectedEdgeTag> )
120 ( FaceId, Id<FaceTag> )
121 ( VertId, Id<VertTag> )
122 ( PixelId, Id<PixelTag> )
123 ( VoxelId, Id<VoxelTag> )
124 ( RegionId, Id<RegionTag> )
125 ( NodeId, Id<NodeTag> )
126 ( ObjId, Id<ObjTag> )
127 ( TextureId, Id<TextureTag> )
128 ( GraphVertId, Id<GraphVertTag> )
129 ( GraphEdgeId, Id<GraphEdgeTag> )
130 ( LocaleDomainId, Id<LocaleDomainTag> )
131)
134template <> class MR_BIND_PREFERRED_NAME(MR::EdgeId) Id<EdgeTag>;
135template <> class MR_BIND_PREFERRED_NAME(MR::VoxelId) Id<VoxelTag>;
136
137MR_CANONICAL_TYPEDEFS( (template <typename T> class MRMESH_CLASS), NoInitId,
138 ( NoInitNodeId, NoInitId<NodeTag> )
139)
140
141template <typename T, typename I = size_t> class MRMESH_CLASS Buffer;
143
144class ViewportId;
145class ViewportMask;
146template<typename T> class ViewportProperty;
147
151
152using EdgePath = std::vector<EdgeId>;
153using EdgeLoop = std::vector<EdgeId>;
154using EdgeLoops = std::vector<EdgeLoop>;
155
157
158MR_CANONICAL_TYPEDEFS( (template <typename I> class MRMESH_CLASS), TypedBitSet,
159 ( FaceBitSet, TypedBitSet<FaceId> )
160 ( VertBitSet, TypedBitSet<VertId> )
161 ( EdgeBitSet, TypedBitSet<EdgeId> )
162 ( UndirectedEdgeBitSet, TypedBitSet<UndirectedEdgeId> )
163 ( PixelBitSet, TypedBitSet<PixelId> )
164 ( VoxelBitSet, TypedBitSet<VoxelId> )
165 ( RegionBitSet, TypedBitSet<RegionId> )
166 ( NodeBitSet, TypedBitSet<NodeId> )
167 ( ObjBitSet, TypedBitSet<ObjId> )
168 ( TextureBitSet, TypedBitSet<TextureId> )
169 ( GraphVertBitSet, TypedBitSet<GraphVertId> )
170 ( GraphEdgeBitSet, TypedBitSet<GraphEdgeId> )
171)
172
173template<typename T>
175
176MR_CANONICAL_TYPEDEFS( (template <typename T> class MRMESH_CLASS), SetBitIteratorT,
177 ( SetBitIterator, SetBitIteratorT<BitSet> )
178 ( FaceSetBitIterator, SetBitIteratorT<FaceBitSet> )
179 ( VertSetBitIterator, SetBitIteratorT<VertBitSet> )
180 ( EdgeSetBitIterator, SetBitIteratorT<EdgeBitSet> )
181 ( UndirectedEdgeSetBitIterator, SetBitIteratorT<UndirectedEdgeBitSet> )
182)
183
185
186MR_CANONICAL_TYPEDEFS( (template <typename T> struct), MRMESH_CLASS Vector2,
187 ( Vector2b, Vector2<bool> )
188 ( Vector2i, Vector2<int> )
189 ( Vector2i64, Vector2<std::int64_t> )
190 ( Vector2f, Vector2<float> )
191 ( Vector2d, Vector2<double> )
192)
193
194MR_CANONICAL_TYPEDEFS( (template <typename T> struct), MRMESH_CLASS Vector3,
195 ( Vector3b, Vector3<bool> )
196 ( Vector3i, Vector3<int> )
197 ( Vector3i64, Vector3<std::int64_t> )
198 ( Vector3f, Vector3<float> )
199 ( Vector3d, Vector3<double> )
200)
201
202MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Vector4,
203 ( Vector4b, Vector4<bool> )
204 ( Vector4i, Vector4<int> )
205 ( Vector4i64, Vector4<std::int64_t> )
206 ( Vector4f, Vector4<float> )
207 ( Vector4d, Vector4<double> )
208)
209#if !MR_PARSING_FOR_ANY_BINDINGS
210using Vector4ll [[deprecated("Use `Vector4i64` instead.")]] = Vector4<long long>;
211#endif
212
213MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Matrix2,
214 ( Matrix2b, Matrix2<bool> )
215 ( Matrix2i, Matrix2<int> )
216 ( Matrix2i64, Matrix2<std::int64_t> )
217 ( Matrix2f, Matrix2<float> )
218 ( Matrix2d, Matrix2<double> )
219)
220#if !MR_PARSING_FOR_ANY_BINDINGS
221using Matrix2ll [[deprecated("Use `Matrix2i64` instead.")]] = Matrix2<long long>;
222#endif
223
224MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Matrix3,
225 ( Matrix3b, Matrix3<bool> )
226 ( Matrix3i, Matrix3<int> )
227 ( Matrix3i64, Matrix3<std::int64_t> )
228 ( Matrix3f, Matrix3<float> )
229 ( Matrix3d, Matrix3<double> )
230)
231#if !MR_PARSING_FOR_ANY_BINDINGS
232using Matrix3ll [[deprecated("Use `Matrix3i64` instead.")]] = Matrix3<long long>;
233#endif
234
235MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Matrix4,
236 ( Matrix4b, Matrix4<bool> )
237 ( Matrix4i, Matrix4<int> )
238 ( Matrix4i64, Matrix4<std::int64_t> )
239 ( Matrix4f, Matrix4<float> )
240 ( Matrix4d, Matrix4<double> )
241)
242#if !MR_PARSING_FOR_ANY_BINDINGS
243using Matrix4ll [[deprecated("Use `Matrix4i64` instead.")]] = Matrix4<long long>;
244#endif
245
246MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SymMatrix2,
247 ( SymMatrix2b, SymMatrix2<bool> )
248 ( SymMatrix2i, SymMatrix2<int> )
249 ( SymMatrix2i64, SymMatrix2<std::int64_t> )
250 ( SymMatrix2f, SymMatrix2<float> )
251 ( SymMatrix2d, SymMatrix2<double> )
252)
253#if !MR_PARSING_FOR_ANY_BINDINGS
254using SymMatrix2ll [[deprecated("Use `SymMatrix2i64` instead.")]] = SymMatrix2<long long>;
255#endif
256
257MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SymMatrix3,
258 ( SymMatrix3b, SymMatrix3<bool> )
259 ( SymMatrix3i, SymMatrix3<int> )
260 ( SymMatrix3i64, SymMatrix3<std::int64_t> )
261 ( SymMatrix3f, SymMatrix3<float> )
262 ( SymMatrix3d, SymMatrix3<double> )
263)
264#if !MR_PARSING_FOR_ANY_BINDINGS
265using SymMatrix3ll [[deprecated("Use `SymMatrix3i64` instead.")]] = SymMatrix3<long long>;
266#endif
267
268MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SymMatrix4,
269 ( SymMatrix4b, SymMatrix4<bool> )
270 ( SymMatrix4i, SymMatrix4<int> )
271 ( SymMatrix4i64, SymMatrix4<std::int64_t> )
272 ( SymMatrix4f, SymMatrix4<float> )
273 ( SymMatrix4d, SymMatrix4<double> )
274)
275#if !MR_PARSING_FOR_ANY_BINDINGS
276using SymMatrix4ll [[deprecated("Use `SymMatrix4i64` instead.")]] = SymMatrix4<long long>;
277#endif
278
280{
281 template <typename T>
282 struct VectorElemType {};
283 template <template <typename> typename T, typename U>
284 struct VectorElemType<T<U>> { using type = U; };
285
286 template <typename T>
287 static constexpr bool IsValidTemplateArg = std::is_floating_point_v<typename VectorElemType<T>::type>;
288}
289
290MR_CANONICAL_TYPEDEFS( (template <typename V> MR_REQUIRES_IF_SUPPORTED( detail::AffineXf3f::IsValidTemplateArg<V> ) struct), AffineXf,
292 ( AffineXf2d, AffineXf<Vector2<double>> )
293 ( AffineXf3f, AffineXf<Vector3<float>> )
294 ( AffineXf3d, AffineXf<Vector3<double>> )
295)
296template <typename T> using AffineXf2 = AffineXf<Vector2<T>>;
297template <typename T> using AffineXf3 = AffineXf<Vector3<T>>;
298
299namespace detail::AffineXf3f
300{
301 template <typename T, typename = void> struct TypeOrPlaceholder { using type = std::nullptr_t; };
302 template <typename T> struct TypeOrPlaceholder<T, std::enable_if_t<IsValidTemplateArg<T>>> { using type = AffineXf<T>; };
303}
304
307
308MR_CANONICAL_TYPEDEFS( (template <typename T> struct), RigidXf3,
310 ( RigidXf3d, RigidXf3<double> )
311)
312
315 ( RigidScaleXf3d, RigidScaleXf3<double> )
316)
317
320
321MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Sphere,
323 ( Sphere2d, Sphere<Vector2<double>> )
324 ( Sphere3f, Sphere<Vector3<float>> )
325 ( Sphere3d, Sphere<Vector3<double>> )
326)
327template <typename T> using Sphere2 = Sphere<Vector2<T>>;
328template <typename T> using Sphere3 = Sphere<Vector3<T>>;
329
330MR_CANONICAL_TYPEDEFS( (template <typename V> struct), Line,
331 ( Line2f, Line<Vector2<float>> )
332 ( Line2d, Line<Vector2<double>> )
333 ( Line3f, Line<Vector3<float>> )
334 ( Line3d, Line<Vector3<double>> )
335)
336template <typename T> using Line2 = Line<Vector2<T>>;
337template <typename T> using Line3 = Line<Vector3<T>>;
338
339MR_CANONICAL_TYPEDEFS( (template <typename V> struct), LineSegm,
341 ( LineSegm2d, LineSegm<Vector2<double>> )
342 ( LineSegm3f, LineSegm<Vector3<float>> )
343 ( LineSegm3d, LineSegm<Vector3<double>> )
344)
345template <typename T> using LineSegm2 = LineSegm<Vector2<T>>;
346template <typename T> using LineSegm3 = LineSegm<Vector3<T>>;
347
348MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Parabola,
349 ( Parabolaf, Parabola<float> )
350 ( Parabolad, Parabola<double> )
351)
352
353MR_CANONICAL_TYPEDEFS( (template <typename T> class), BestFitParabola,
355 ( BestFitParabolad, BestFitParabola<double> )
356)
357
358MR_CANONICAL_TYPEDEFS( (template <typename T> class), Cylinder3,
360 ( Cylinder3d, Cylinder3<double> )
361)
362
363MR_CANONICAL_TYPEDEFS( (template <typename T> class), Cone3,
364 ( Cone3f, Cone3<float> )
365 ( Cone3d, Cone3<double> )
366)
367
369template <typename V> using Contour = std::vector<V>;
370template <typename T> using Contour2 = Contour<Vector2<T>>;
371template <typename T> using Contour3 = Contour<Vector3<T>>;
372using Contour2d = Contour2<double>;
373using Contour2f = Contour2<float>;
374using Contour3d = Contour3<double>;
375using Contour3f = Contour3<float>;
376
378
379template <typename V> using Contours = std::vector<Contour<V>>;
380template <typename T> using Contours2 = Contours<Vector2<T>>;
381template <typename T> using Contours3 = Contours<Vector3<T>>;
382using Contours2d = Contours2<double>;
383using Contours2f = Contours2<float>;
384using Contours3d = Contours3<double>;
385using Contours3f = Contours3<float>;
386
387MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Plane3,
388 ( Plane3f, Plane3<float> )
389 ( Plane3d, Plane3<double> )
390)
391
393 ( Box1i, Box<int> )
394 ( Box1i64, Box<std::int64_t> )
395 ( Box1f, Box<float> )
396 ( Box1d, Box<double> )
397 ( Box2i, Box<Vector2<int>> )
398 ( Box2i64, Box<Vector2<std::int64_t>> )
399 ( Box2f, Box<Vector2<float>> )
400 ( Box2d, Box<Vector2<double>> )
401 ( Box3i, Box<Vector3<int>> )
402 ( Box3i64, Box<Vector3<std::int64_t>> )
403 ( Box3f, Box<Vector3<float>> )
404 ( Box3d, Box<Vector3<double>> )
405)
406#if !MR_PARSING_FOR_ANY_BINDINGS
407using Box1ll [[deprecated("Use `Box1i64` instead.")]] = Box<long long>;
408using Box2ll [[deprecated("Use `Box2i64` instead.")]] = Box<Vector2<long long>>;
409using Box3ll [[deprecated("Use `Box3i64` instead.")]] = Box<Vector3<long long>>;
410#endif
411
412template <typename T> using MinMax = Box<T>;
416
417template <typename T> using Box1 = Box<T>;
418template <typename T> using Box2 = Box<Vector2<T>>;
419template <typename T> using Box3 = Box<Vector3<T>>;
420
421template<typename T, typename I> struct MinArg;
422template<typename T, typename I> struct MaxArg;
423template<typename T, typename I> struct MinMaxArg;
424
425MR_CANONICAL_TYPEDEFS( (template <typename V> struct MRMESH_CLASS), Ball,
426 ( Ball1f, Ball<float> )
427 ( Ball1d, Ball<double> )
428 ( Ball2f, Ball<Vector2<float>> )
429 ( Ball2d, Ball<Vector2<double>> )
430 ( Ball3f, Ball<Vector3<float>> )
431 ( Ball3d, Ball<Vector3<double>> )
432)
433template <typename T> using Ball1 = Ball<T>;
434template <typename T> using Ball2 = Ball<Vector2<T>>;
435template <typename T> using Ball3 = Ball<Vector3<T>>;
436
438 ( CubicBezierCurve2f, CubicBezierCurve<Vector2<float>> )
439 ( CubicBezierCurve2d, CubicBezierCurve<Vector2<double>> )
440 ( CubicBezierCurve3f, CubicBezierCurve<Vector3<float>> )
441 ( CubicBezierCurve3d, CubicBezierCurve<Vector3<double>> )
442)
443template <typename T> using CubicBezierCurve2 = CubicBezierCurve<Vector2<T>>;
444template <typename T> using CubicBezierCurve3 = CubicBezierCurve<Vector3<T>>;
445
448 ( QuadraticForm2d, QuadraticForm<Vector2<double>> )
449 ( QuadraticForm3f, QuadraticForm<Vector3<float>> )
450 ( QuadraticForm3d, QuadraticForm<Vector3<double>> )
451)
452template <typename T> using QuadraticForm2 = QuadraticForm<Vector2<T>>;
453template <typename T> using QuadraticForm3 = QuadraticForm<Vector3<T>>;
454
455MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Quaternion,
457 ( Quaterniond, Quaternion<double> )
458)
459
461template <typename T> using Triangle3 = std::array<Vector3<T>, 3>;
462using Triangle3i = Triangle3<int>;
463using Triangle3f = Triangle3<float>;
464using Triangle3d = Triangle3<double>;
465
466class PointAccumulator;
467
468MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SegmPoint,
470 ( SegmPointd, SegmPoint<double> )
471)
472
476using SurfacePath = std::vector<MeshEdgePoint>;
477using SurfacePaths = std::vector<SurfacePath>;
484class Laplacian;
485
486using VertPair = std::pair<VertId, VertId>;
487using FacePair = std::pair<FaceId, FaceId>;
488using EdgePair = std::pair<EdgeId, EdgeId>;
489using UndirectedEdgePair = std::pair<UndirectedEdgeId, UndirectedEdgeId>;
490
491MR_CANONICAL_TYPEDEFS( (template <typename T> struct), TriPoint,
492 ( TriPointf, TriPoint<float> )
493 ( TriPointd, TriPoint<double> )
494)
495
504template <typename T> struct IntersectionPrecomputes;
505
506template <typename I> struct IteratorRange;
507
510using UVCoord = Vector2f;
511
513using TwoVertIds = std::array<VertId, 2>;
514
516using ThreeVertIds = std::array<VertId, 3>;
517
519using ThreeUVCoords = std::array<UVCoord, 3>;
520
522
523MR_CANONICAL_TYPEDEFS( (template <typename T, typename I> class MRMESH_CLASS), Vector,
525 ( Edges, Vector<TwoVertIds, UndirectedEdgeId> )
526
528 ( Triangulation, Vector<ThreeVertIds, FaceId> )
529
531 ( TriCornerUVCoords, Vector<ThreeUVCoords, FaceId> )
532
533 ( Dipoles, Vector<Dipole, NodeId> )
534
535 ( FaceMap, Vector<FaceId, FaceId> )
536 ( VertMap, Vector<VertId, VertId> )
537 ( EdgeMap, Vector<EdgeId, EdgeId> )
538 ( UndirectedEdgeMap, Vector<UndirectedEdgeId, UndirectedEdgeId> )
539 ( ObjMap, Vector<ObjId, ObjId> )
540
542 ( WholeEdgeMap, Vector<EdgeId, UndirectedEdgeId> )
543 ( UndirectedEdge2RegionMap, Vector<RegionId, UndirectedEdgeId> )
544 ( Face2RegionMap, Vector<RegionId, FaceId> )
545 ( Vert2RegionMap, Vector<RegionId, VertId> )
546
547 ( VertCoords, Vector<Vector3f, VertId> )
548 ( VertCoords2, Vector<Vector2f, VertId> )
549 ( VertNormals, Vector<Vector3f, VertId> )
550 ( VertUVCoords, Vector<UVCoord, VertId> )
551 ( FaceNormals, Vector<Vector3f, FaceId> )
552
553 ( TexturePerFace, Vector<TextureId, FaceId> )
554 ( VertColors, Vector<Color, VertId> )
555 ( FaceColors, Vector<Color, FaceId> )
556 ( EdgeColors, Vector<Color, EdgeId> )
557 ( UndirectedEdgeColors, Vector<Color, UndirectedEdgeId> )
558
559 ( VertScalars, Vector<float, VertId> )
560 ( FaceScalars, Vector<float, FaceId> )
561 ( EdgeScalars, Vector<float, EdgeId> )
562 ( UndirectedEdgeScalars, Vector<float, UndirectedEdgeId> )
563)
564
565using VertPredicate = std::function<bool( VertId )>;
566using FacePredicate = std::function<bool( FaceId )>;
567using EdgePredicate = std::function<bool( EdgeId )>;
568using UndirectedEdgePredicate = std::function<bool( UndirectedEdgeId )>;
569
570using PreCollapseCallback = std::function<bool( EdgeId edgeToCollapse, const Vector3f& newEdgeOrgPos )>;
571using OnEdgeSplit = std::function<void( EdgeId e1, EdgeId e )>;
572
573template <typename T>
574[[nodiscard]] inline bool contains( const std::function<bool( Id<T> )> & pred, Id<T> id )
575{
576 return id.valid() && ( !pred || pred( id ) );
577}
578
579using VertMetric = std::function<float( VertId )>;
580using FaceMetric = std::function<float( FaceId )>;
581using EdgeMetric = std::function<float( EdgeId )>;
582using UndirectedEdgeMetric = std::function<float( UndirectedEdgeId )>;
583
584MR_CANONICAL_TYPEDEFS( (template <typename T, typename I> struct MRMESH_CLASS), BMap,
585 ( FaceBMap, BMap<FaceId, FaceId> )
586 ( VertBMap, BMap<VertId, VertId> )
587 ( EdgeBMap, BMap<EdgeId, EdgeId> )
588 ( UndirectedEdgeBMap, BMap<UndirectedEdgeId, UndirectedEdgeId> )
589 ( WholeEdgeBMap, BMap<EdgeId, UndirectedEdgeId> )
590)
591
592template <typename T, typename Hash = phmap::priv::hash_default_hash<T>, typename Eq = phmap::priv::hash_default_eq<T>>
593using HashSet = phmap::flat_hash_set<T, Hash, Eq>;
594template <typename T, typename Hash = phmap::priv::hash_default_hash<T>, typename Eq = phmap::priv::hash_default_eq<T>>
595using ParallelHashSet = phmap::parallel_flat_hash_set<T, Hash, Eq>;
596
598using FaceHashSet = HashSet<FaceId>;
599using VertHashSet = HashSet<VertId>;
600using EdgeHashSet = HashSet<EdgeId>;
601
602template <typename K, typename V, typename Hash = phmap::priv::hash_default_hash<K>, typename Eq = phmap::priv::hash_default_eq<K>>
603using HashMap = phmap::flat_hash_map<K, V, Hash, Eq>;
604template <typename K, typename V, typename Hash = phmap::priv::hash_default_hash<K>, typename Eq = phmap::priv::hash_default_eq<K>>
605using ParallelHashMap = phmap::parallel_flat_hash_map<K, V, Hash, Eq>;
606
607using FaceHashMap = HashMap<FaceId, FaceId>;
608using VertHashMap = HashMap<VertId, VertId>;
609using EdgeHashMap = HashMap<EdgeId, EdgeId>;
610using UndirectedEdgeHashMap = HashMap<UndirectedEdgeId, UndirectedEdgeId>;
612using WholeEdgeHashMap = HashMap<UndirectedEdgeId, EdgeId>;
613
614template <typename K, typename V>
616
617using FaceMapOrHashMap = MapOrHashMap<FaceId, FaceId>;
618using VertMapOrHashMap = MapOrHashMap<VertId, VertId>;
619using EdgeMapOrHashMap = MapOrHashMap<EdgeId, EdgeId>;
620using UndirectedEdgeMapOrHashMap = MapOrHashMap<UndirectedEdgeId, UndirectedEdgeId>;
622using WholeEdgeMapOrHashMap = MapOrHashMap<UndirectedEdgeId, EdgeId>;
623
624template <typename I> class UnionFind;
625template <typename T, typename I, typename P> class Heap;
626
644
646 ( MeshPart, MeshRegion<FaceTag> )
647 ( MeshVertPart, MeshRegion<VertTag> )
648)
649
650template<typename T> class UniqueThreadSafeOwner;
651template<typename T> class SharedThreadSafeOwner;
652
653class PolylineTopology;
654
655MR_CANONICAL_TYPEDEFS( (template<typename V> struct), Polyline,
656 ( Polyline2, Polyline<Vector2f> )
657 ( Polyline3, Polyline<Vector3f> )
658)
659
662 ( AABBTreePolyline3, AABBTreePolyline<Vector3f> )
663)
664
665template<typename T> struct IntersectionPrecomputes;
666template<typename T> struct IntersectionPrecomputes2;
667
668MR_CANONICAL_TYPEDEFS( (template<typename V> struct [[nodiscard]]), PolylineProjectionResult,
669 ( PolylineProjectionResult2, PolylineProjectionResult<Vector2f> )
670 ( PolylineProjectionResult3, PolylineProjectionResult<Vector3f> )
671)
672
675 ( PolylineProjectionWithOffsetResult3, PolylineProjectionWithOffsetResult<Vector3f> )
676)
677
678class DistanceMap;
681
682using GcodeSource = std::vector<std::string>;
683
684class Object;
685class SceneRootObject;
686class VisualObject;
687class ObjectMeshHolder;
688class ObjectMesh;
692class ObjectPoints;
694class ObjectLines;
696class ObjectLabel;
697class ObjectGcode;
698class PointObject;
699class LineObject;
700class CircleObject;
701class PlaneObject;
702class SphereObject;
703class CylinderObject;
704class ConeObject;
705
707
710
711class HistoryAction;
718class ChangeMeshAction;
726class ChangeXfAction;
728class SwapRootAction;
729
730MR_CANONICAL_TYPEDEFS( (template <typename Tag> class MRMESH_CLASS), ColorMapAggregator,
731 ( VertColorMapAggregator, ColorMapAggregator<VertTag> )
732 ( UndirEdgeColorMapAggregator, ColorMapAggregator<UndirectedEdgeTag> )
733 ( FaceColorMapAggregator, ColorMapAggregator<FaceTag> )
734)
735
736template<typename T>
737class FewSmallest;
738
739class Graph;
740class WatershedGraph;
741
743
745namespace SceneSave { struct Settings; }
746namespace ObjectSave { struct Settings; }
747
751typedef std::function<bool( float )> ProgressCallback;
752
753enum class FilterType : char;
754enum class WrapType : char;
755enum class Reorder : char;
756
757struct TransparencyMode;
758
760template <typename T>
761constexpr inline T sqr( T x ) noexcept { return x * x; }
762
764template <typename T>
765constexpr inline int sgn( T x ) noexcept { return x > 0 ? 1 : ( x < 0 ? -1 : 0 ); }
766
768template <typename T>
769constexpr inline T distance( T x, T y ) noexcept { return x >= y ? x - y : y - x; }
770
772template <typename T>
773constexpr inline T distanceSq( T x, T y ) noexcept { return sqr( x - y ); }
774
776template <typename V, typename T>
777constexpr inline auto lerp( V v0, V v1, T t ) noexcept { return ( 1 - t ) * v0 + t * v1; }
778
779template<typename...>
780inline constexpr bool dependent_false = false;
781
782template<class... Ts>
783struct overloaded : Ts... { using Ts::operator()...; };
784
786template<class... Ts>
787overloaded(Ts...) -> overloaded<Ts...>;
788
791class IPointsProjector;
792
793namespace MeshBuilder
794{
795
796struct BuildSettings;
797struct Triangle;
798struct VertDuplication;
799
800}
801
802namespace Locale
803{
804
806constexpr inline auto translate_noop( const char* str ) noexcept { return str; }
807constexpr inline auto translate_noop( const char* ctx, const char* str ) noexcept { (void)ctx; return str; }
808constexpr inline auto translate_noop( const char* single, const char* plural, std::int64_t n ) noexcept { return n == 1 ? single : plural; }
809constexpr inline auto translate_noop( const char* ctx, const char* single, const char* plural, std::int64_t n ) noexcept { (void)ctx; return n == 1 ? single : plural; }
810
811}
812
813}
814
815#ifdef __cpp_lib_unreachable
816# define MR_UNREACHABLE std::unreachable();
817# define MR_UNREACHABLE_NO_RETURN std::unreachable();
818#else
819# ifdef __GNUC__
820# define MR_UNREACHABLE __builtin_unreachable();
821# define MR_UNREACHABLE_NO_RETURN __builtin_unreachable();
822# else
823# include <cassert>
824# define MR_UNREACHABLE { assert( false ); return {}; }
825# define MR_UNREACHABLE_NO_RETURN assert( false );
826# endif
827#endif
828
829#ifndef MR_NO_I18N_MACROS
830#define _t( ... ) MR::Locale::translate_noop( __VA_ARGS__ )
831#endif
#define MR_CANONICAL_TYPEDEFS(type_, name_, aliases_)
Definition MRCanonicalTypedefs.h:23
#define MR_REQUIRES_IF_SUPPORTED(...)
Definition MRMacros.h:33
#define MRMESH_CLASS
Definition MRMeshFwd.h:89
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:16
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:20
Definition MRLaplacian.h:24
Definition MRLineObject.h:16
Definition MRMeshOrPoints.h:21
Definition MRMeshTopology.h:30
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
Definition MRSharedThreadSafeOwner.h:19
Definition MRSphereObject.h:18
Definition MRSwapRootAction.h:16
Definition MRBitSet.h:277
Union-find data structure for representing disjoint sets of elements with few very quick operations: ...
Definition MRUnionFind.h:151
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
Definition MRViewportProperty.h:17
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:405
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:751
CubicBezierCurve< Vector2< T > > CubicBezierCurve2
Definition MRMeshFwd.h:443
std::function< float(VertId)> VertMetric
Definition MRMeshFwd.h:579
phmap::parallel_flat_hash_map< K, V, Hash, Eq > ParallelHashMap
Definition MRMeshFwd.h:605
std::vector< EdgeId > EdgeLoop
Definition MRMeshFwd.h:153
std::vector< std::string > GcodeSource
Definition MRMeshFwd.h:682
RigidXf3f
Definition MRMeshFwd.h:309
WrapType
Definition MREnums.h:18
LineSegm2f
Definition MRMeshFwd.h:340
struct
Definition MRMeshFwd.h:186
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:513
std::vector< SurfacePath > SurfacePaths
Definition MRMeshFwd.h:477
std::vector< EdgeLoop > EdgeLoops
Definition MRMeshFwd.h:154
Contour3< float > Contour3f
Definition MRMeshFwd.h:375
class MRMESH_CLASS UndirectedEdgeTag
Definition MRMeshFwd.h:104
constexpr T sqr(T x) noexcept
squared value
Definition MRMeshFwd.h:761
Cylinder3f
Definition MRMeshFwd.h:359
AABBTreePolyline2
Definition MRMeshFwd.h:661
LineSegm< Vector3< T > > LineSegm3
Definition MRMeshFwd.h:346
MapOrHashMap< FaceId, FaceId > FaceMapOrHashMap
Definition MRMeshFwd.h:617
class MRMESH_CLASS ObjTag
Definition MRMeshFwd.h:111
CubicBezierCurve< Vector3< T > > CubicBezierCurve3
Definition MRMeshFwd.h:444
Box< T > MinMax
Definition MRMeshFwd.h:412
Edges
Definition MRObjectMeshHolder.h:19
std::function< bool(FaceId)> FacePredicate
Definition MRMeshFwd.h:566
MinMax< float > MinMaxf
Definition MRMeshFwd.h:413
Contour2< double > Contour2d
Definition MRMeshFwd.h:372
struct MRMESH_CLASS Eq
Definition MRMeshFwd.h:592
class MRMESH_CLASS NodeTag
Definition MRMeshFwd.h:110
Box< Vector3< T > > Box3
Definition MRMeshFwd.h:419
HashSet< VertId > VertHashSet
Definition MRMeshFwd.h:599
TriPointf
Definition MRMeshFwd.h:492
std::function< bool(EdgeId)> EdgePredicate
Definition MRMeshFwd.h:567
typename detail::AffineXf3f::TypeOrPlaceholder< Vector2< T > >::type AffineXf2OrPlaceholder
Definition MRMeshFwd.h:305
Contour2< float > Contour2f
Definition MRMeshFwd.h:373
std::array< UVCoord, 3 > ThreeUVCoords
three UV-coordinates describing texturing of a triangle
Definition MRMeshFwd.h:519
Contours2< double > Contours2d
Definition MRMeshFwd.h:382
Contours3< float > Contours3f
Definition MRMeshFwd.h:385
std::function< bool(UndirectedEdgeId)> UndirectedEdgePredicate
Definition MRMeshFwd.h:568
Ball< Vector2< T > > Ball2
Definition MRMeshFwd.h:434
MapOrHashMap< VertId, VertId > VertMapOrHashMap
Definition MRMeshFwd.h:618
Contours3< double > Contours3d
Definition MRMeshFwd.h:384
SurfacePaths PlaneSections
Definition MRMeshFwd.h:481
MapOrHashMap< EdgeId, EdgeId > EdgeMapOrHashMap
Definition MRMeshFwd.h:619
HashMap< VertId, VertId > VertHashMap
Definition MRMeshFwd.h:608
QuadraticForm2f
Definition MRMeshFwd.h:447
QuadraticForm< Vector3< T > > QuadraticForm3
Definition MRMeshFwd.h:453
class MRMESH_CLASS VoxelTag
Definition MRMeshFwd.h:108
Ball< T > Ball1
Definition MRMeshFwd.h:433
FilterType
Definition MREnums.h:12
Plane3f
Definition MRMeshFwd.h:388
SurfacePath IsoLine
Definition MRMeshFwd.h:478
Vector2f UVCoord
Definition MRMeshFwd.h:510
Triangle3< int > Triangle3i
Definition MRMeshFwd.h:462
Ball< Vector3< T > > Ball3
Definition MRMeshFwd.h:435
Sphere< Vector3< T > > Sphere3
Definition MRMeshFwd.h:328
std::vector< MeshEdgePoint > SurfacePath
Definition MRMeshFwd.h:476
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:612
class MRMESH_CLASS FaceTag
Definition MRMeshFwd.h:105
class MRMESH_CLASS TextureTag
Definition MRMeshFwd.h:112
class MRMESH_CLASS I
Definition MRMeshFwd.h:141
class MRMESH_CLASS PixelTag
Definition MRMeshFwd.h:107
Line< Vector3< T > > Line3
Definition MRMeshFwd.h:337
Contours< Vector2< T > > Contours2
Definition MRMeshFwd.h:380
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:765
Contours2< float > Contours2f
Definition MRMeshFwd.h:383
RigidScaleXf3f
Definition MRMeshFwd.h:314
std::function< float(EdgeId)> EdgeMetric
Definition MRMeshFwd.h:581
MinMax< double > MinMaxd
Definition MRMeshFwd.h:414
Box< Vector2< T > > Box2
Definition MRMeshFwd.h:418
std::function< bool(EdgeId edgeToCollapse, const Vector3f &newEdgeOrgPos)> PreCollapseCallback
Definition MRMeshFwd.h:570
MinMax< int > MinMaxi
Definition MRMeshFwd.h:415
EdgePoint MeshEdgePoint
Definition MRMeshFwd.h:475
Box< T > Box1
Definition MRMeshFwd.h:417
Contour< Vector2< T > > Contour2
Definition MRMeshFwd.h:370
Contour3< double > Contour3d
Definition MRMeshFwd.h:374
TypedBitSet< Id< T > > TaggedBitSet
Definition MRMeshFwd.h:174
SurfacePath PlaneSection
Definition MRMeshFwd.h:480
HashMap< FaceId, FaceId > FaceHashMap
Definition MRMeshFwd.h:607
std::function< float(FaceId)> FaceMetric
Definition MRMeshFwd.h:580
class MRMESH_CLASS LocaleDomainTag
Definition MRMeshFwd.h:115
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:622
Polyline2
Definition MRMeshFwd.h:656
Triangle3< double > Triangle3d
Definition MRMeshFwd.h:464
Box1i
Definition MRMeshFwd.h:393
Contour< Vector3< T > > Contour3
Definition MRMeshFwd.h:371
HashSet< FaceId > FaceHashSet
No canonical typedefs because phmap::... is not under our control.
Definition MRMeshFwd.h:598
std::vector< EdgeId > EdgePath
Definition MRMeshFwd.h:152
std::array< VertId, 3 > ThreeVertIds
three vertex ids describing a triangle with the corners in vertices given by their ids
Definition MRMeshFwd.h:516
class MRMESH_CLASS VertTag
Definition MRMeshFwd.h:106
std::pair< FaceId, FaceId > FacePair
Definition MRMeshFwd.h:487
constexpr NoInit noInit
Definition MRMeshFwd.h:100
HashSet< EdgeId > EdgeHashSet
Definition MRMeshFwd.h:600
std::pair< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgePair
Definition MRMeshFwd.h:489
Cone3f
Definition MRMeshFwd.h:364
BestFitParabolaf
Definition MRMeshFwd.h:354
Quaternionf
Definition MRMeshFwd.h:456
std::pair< EdgeId, EdgeId > EdgePair
Definition MRMeshFwd.h:488
AffineXf
Definition MRMeshFwd.h:290
std::function< void(EdgeId e1, EdgeId e)> OnEdgeSplit
Definition MRMeshFwd.h:571
std::function< float(UndirectedEdgeId)> UndirectedEdgeMetric
Definition MRMeshFwd.h:582
AffineXf2f
Definition MRMeshFwd.h:291
Line2f
Definition MRMeshFwd.h:331
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:777
constexpr bool dependent_false
Definition MRMeshFwd.h:780
Triangle3< float > Triangle3f
Definition MRMeshFwd.h:463
SurfacePaths IsoLines
Definition MRMeshFwd.h:479
constexpr auto translate_noop(const char *str) noexcept
special no-op inline functions to mark string literal as translatable
Definition MRMeshFwd.h:806
class MRMESH_CLASS EdgeTag
Definition MRMeshFwd.h:103
AffineXf< Vector3< T > > AffineXf3
Definition MRMeshFwd.h:297
std::vector< Contour< V > > Contours
Definition MRMeshFwd.h:379
Polyline2ProjectionWithOffsetResult
Definition MRMeshFwd.h:674
HashMap< EdgeId, EdgeId > EdgeHashMap
Definition MRMeshFwd.h:609
struct MRMESH_CLASS Hash
Definition MRMeshFwd.h:592
std::nullptr_t type
Definition MRMeshFwd.h:301
phmap::parallel_flat_hash_set< T, Hash, Eq > ParallelHashSet
Definition MRMeshFwd.h:595
SegmPointf
Definition MRMeshFwd.h:469
Parabolaf
Definition MRMeshFwd.h:349
MapOrHashMap< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgeMapOrHashMap
Definition MRMeshFwd.h:620
std::pair< VertId, VertId > VertPair
Definition MRMeshFwd.h:486
typename detail::AffineXf3f::TypeOrPlaceholder< Vector3< T > >::type AffineXf3OrPlaceholder
Definition MRMeshFwd.h:306
HashMap< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgeHashMap
Definition MRMeshFwd.h:610
Contours< Vector3< T > > Contours3
Definition MRMeshFwd.h:381
class MRMESH_CLASS RegionTag
Definition MRMeshFwd.h:109
Sphere2f
Definition MRMeshFwd.h:322
class MRMESH_CLASS GraphVertTag
Definition MRMeshFwd.h:113
phmap::flat_hash_map< K, V, Hash, Eq > HashMap
Definition MRMeshFwd.h:603
class MRMESH_CLASS GraphEdgeTag
Definition MRMeshFwd.h:114
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:803
Building topologies by triangles.
Definition MRIdentifyVertices.h:16
Definition MRIOFormatsRegistry.h:361
Definition MRMeshFwd.h:280
Definition MRFinally.h:34
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
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
a pair of faces
Definition MRFaceFace.h:14
Definition MRFillHoleNicely.h:59
Parameters structure for MR::fillHole Structure has some options to control MR::fillHole.
Definition MRMeshFillHole.h:27
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 MRMarkedContour.h:14
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:99
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
a pair of undirected edges
Definition MRFaceFace.h:24
Definition MRUnorientedTriangle.h:16
Definition MRVector2.h:29
Definition MRVector3.h:33
Definition MRVector4.h:26
Definition MRMeshFwd.h:282
Definition MRMeshFwd.h:783