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
8// Not-zero _ITERATOR_DEBUG_LEVEL in Microsoft STL greatly reduces the performance of STL containers.
9//
10// Pre-build binaries from MeshLib distribution are prepared with _ITERATOR_DEBUG_LEVEL=0,
11// and if you build MeshLib by yourself then _ITERATOR_DEBUG_LEVEL=0 is also selected see
12// 1) vcpkg/triplets/x64-windows-meshlib.cmake and
13// 2) MeshLib/source/common.props
14// Please note that all other modules (.exe, .dll, .lib) with MS STL calls in your application also need
15// to define exactly the same value of _ITERATOR_DEBUG_LEVEL to be operational after linking.
16//
17// If you deliberately would like to work with not zero _ITERATOR_DEBUG_LEVEL, then please define
18// additionally MR_ITERATOR_DEBUG_LEVEL with the same value to indicate that it is done intentionally
19// (and you are ok with up to 100x slowdown).
20//
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
33// Check C++ version.
34#ifdef _MSC_VER
35#define MR_CPP_STANDARD_DATE _MSVC_LANG
36#else
37#define MR_CPP_STANDARD_DATE __cplusplus
38#endif
39// Note `201709`. C++20 usually sets `202002`, while C++17 sets `201703`.
40// This `201709` is what GCC 10 sets on `-std=c++20` (presumably to indicate incomplete implementation?).
41// Other compilers we use don't have this issue.
42// Also note `__CUDACC__` - currently our Cuda code is compiled as C++17 (compiler doesn't support C++20?),
43// and we carefully avoid headers incomaptible with C++17.
44#if MR_CPP_STANDARD_DATE < 201709 && !defined(__CUDACC__)
45#error Must enable C++20 or newer!
46#endif
47// -- Curently we have no macros that don't work with the old preprocessor. Leaving the check here to possibly be enabled later.
48// Reject old MSVC preprocessor.
49// Note that we exclude Cuda here. Not 100% sure if it has a good preprocessor, or we just avoid including the headers sensitive to it in Cuda.
50// #if defined(_MSC_VER) && !defined(__clang__) && (!defined(_MSVC_TRADITIONAL) || _MSVC_TRADITIONAL == 1) && !defined(__CUDACC__)
51// #error MSVC users must enable the new standard-conformant preprocessor using `/Zc:preprocessor`!
52// #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 // VS implicitly exports typeinfo/vtable
79#else
80# define MRMESH_API __attribute__((visibility("default")))
81// to fix undefined reference to `typeinfo/vtable`
82// Also it's important to use this on any type for which `typeid` is used in multiple shared libraries, and then passed across library boundaries.
83// Otherwise on Mac the resulting typeids will incorrectly compare not equal.
84# ifdef __clang__ // https://stackoverflow.com/q/29717029/7325599
85# define MRMESH_CLASS __attribute__((type_visibility("default"))) //unlike `visibility`, `type_visibility` does not make all (including private) member functions visible
86# else
87# define MRMESH_CLASS __attribute__((visibility("default")))
88# endif
89#endif
90
91namespace MR
92{
93
94struct NoInit {};
95inline constexpr NoInit noInit;
96template <typename T> struct MRMESH_CLASS NoDefInit;
97
110
111MR_CANONICAL_TYPEDEFS( (template <typename T> class MRMESH_CLASS), Id,
112 ( EdgeId, Id<EdgeTag> )
113 ( UndirectedEdgeId, Id<UndirectedEdgeTag> )
114 ( FaceId, Id<FaceTag> )
115 ( VertId, Id<VertTag> )
116 ( PixelId, Id<PixelTag> )
117 ( VoxelId, Id<VoxelTag> )
118 ( RegionId, Id<RegionTag> )
119 ( NodeId, Id<NodeTag> )
120 ( ObjId, Id<ObjTag> )
121 ( TextureId, Id<TextureTag> )
122 ( GraphVertId, Id<GraphVertTag> )
123 ( GraphEdgeId, Id<GraphEdgeTag> )
124)
125// Those are full specializations in `MRId.h`, so `MR_CANONICAL_TYPEDEFS` doesn't work on them.
126// Have to add this too.
127template <> class MR_BIND_PREFERRED_NAME(MR::EdgeId) Id<EdgeTag>;
128template <> class MR_BIND_PREFERRED_NAME(MR::VoxelId) Id<VoxelTag>;
129
130MR_CANONICAL_TYPEDEFS( (template <typename T> class MRMESH_CLASS), NoInitId,
131 ( NoInitNodeId, NoInitId<NodeTag> )
132)
133
134template <typename T, typename I = size_t> class MRMESH_CLASS Buffer;
135struct PackMapping;
136
137class ViewportId;
138class ViewportMask;
139
140struct UnorientedTriangle;
143
144using EdgePath = std::vector<EdgeId>;
145using EdgeLoop = std::vector<EdgeId>;
146using EdgeLoops = std::vector<EdgeLoop>;
147
149
150MR_CANONICAL_TYPEDEFS( (template <typename I> class MRMESH_CLASS), TypedBitSet,
151 ( FaceBitSet, TypedBitSet<FaceId> )
152 ( VertBitSet, TypedBitSet<VertId> )
153 ( EdgeBitSet, TypedBitSet<EdgeId> )
154 ( UndirectedEdgeBitSet, TypedBitSet<UndirectedEdgeId> )
155 ( PixelBitSet, TypedBitSet<PixelId> )
156 ( VoxelBitSet, TypedBitSet<VoxelId> )
157 ( RegionBitSet, TypedBitSet<RegionId> )
158 ( NodeBitSet, TypedBitSet<NodeId> )
159 ( ObjBitSet, TypedBitSet<ObjId> )
160 ( TextureBitSet, TypedBitSet<TextureId> )
161 ( GraphVertBitSet, TypedBitSet<GraphVertId> )
162 ( GraphEdgeBitSet, TypedBitSet<GraphEdgeId> )
163)
164
165template<typename T>
166using TaggedBitSet = TypedBitSet<Id<T>>;
167
168MR_CANONICAL_TYPEDEFS( (template <typename T> class MRMESH_CLASS), SetBitIteratorT,
169 ( SetBitIterator, SetBitIteratorT<BitSet> )
170 ( FaceSetBitIterator, SetBitIteratorT<FaceBitSet> )
171 ( VertSetBitIterator, SetBitIteratorT<VertBitSet> )
172 ( EdgeSetBitIterator, SetBitIteratorT<EdgeBitSet> )
173 ( UndirectedEdgeSetBitIterator, SetBitIteratorT<UndirectedEdgeBitSet> )
174)
175
176struct Color;
177
178// Must use our `Int64` and `Uint64` everywhere in the public API instead of `long`, `long long`, `int64_t`, `uint64_t`, etc.
179// But `size_t` and `ptrdiff_t` are allowed as is.
180// This is required to generate consistent C bindings on all platforms, and this is checked during binding generation.
181//
182// Those standard typedefs are a mess across platforms. On Windows, they all expand to `long long`, because `long` is not wide enough.
183// On Linux, they all expand to `long`, which again makes sense, because it's wide enough, and it's natural to use it instead of `long long` if it's wide enough.
184// This difference alone causes issues, but what's worse is that on Mac, the typedefs use both `long` and `long long`, despite them having
185// the same size (anything with digits in the name is `long long`, everything else is `long`, for some reason).
186// The only way around that is to only use `long` or `long long` in the interface per platform, but not both. Then during binding generation,
187// replace that type with `int64_t`, and complain if we got another one. This only makes sense on 64-bit platforms, but we only generate bindings on those.
188// Since `size_t` and `ptrdiff_t` are so important, we allow those, and anything that expands to the same type. Sadly `[u]int64_t` doesn't on Mac,
189// so we can't use it directly, and have to instead use our own typedefs defined below. The untypedefed `long` and `long long` can't be used either,
190// for the same reasons (whether they match `size_t` depends on the platform, and we can't allow that).
191#ifdef __APPLE__
192using Int64 = std::ptrdiff_t;
193using Uint64 = std::size_t;
194static_assert(sizeof(Int64) == 8);
195static_assert(sizeof(Uint64) == 8);
196#else
197using Int64 = std::int64_t;
198using Uint64 = std::uint64_t;
199#endif
200
201MR_CANONICAL_TYPEDEFS( (template <typename T> struct), MRMESH_CLASS Vector2,
202 ( Vector2b, Vector2<bool> )
203 ( Vector2i, Vector2<int> )
204 ( Vector2i64, Vector2<Int64> )
205 ( Vector2f, Vector2<float> )
206 ( Vector2d, Vector2<double> )
207)
208// See `Int64` above for why this is deprecated.
209// This is behind an `#ifdef` to avoid instantiating `Vector2<T>` with `T == long long`, which happens even if the typedef has `MR_BIND_IGNORE`,
210// which is a bug.
211#if !MR_PARSING_FOR_ANY_BINDINGS
212using Vector2ll [[deprecated("Use `Vector2i64` instead.")]] = Vector2<long long>;
213#endif
214
215MR_CANONICAL_TYPEDEFS( (template <typename T> struct), MRMESH_CLASS Vector3,
216 ( Vector3b, Vector3<bool> )
217 ( Vector3i, Vector3<int> )
218 ( Vector3i64, Vector3<Int64> )
219 ( Vector3f, Vector3<float> )
220 ( Vector3d, Vector3<double> )
221)
222#if !MR_PARSING_FOR_ANY_BINDINGS
223using Vector3ll [[deprecated("Use `Vector3i64` instead.")]] = Vector3<long long>;
224#endif
225
226MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Vector4,
227 ( Vector4b, Vector4<bool> )
228 ( Vector4i, Vector4<int> )
229 ( Vector4i64, Vector4<Int64> )
230 ( Vector4f, Vector4<float> )
231 ( Vector4d, Vector4<double> )
232)
233#if !MR_PARSING_FOR_ANY_BINDINGS
234using Vector4ll [[deprecated("Use `Vector4i64` instead.")]] = Vector4<long long>;
235#endif
236
237MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Matrix2,
238 ( Matrix2b, Matrix2<bool> )
239 ( Matrix2i, Matrix2<int> )
240 ( Matrix2i64, Matrix2<Int64> )
241 ( Matrix2f, Matrix2<float> )
242 ( Matrix2d, Matrix2<double> )
243)
244#if !MR_PARSING_FOR_ANY_BINDINGS
245using Matrix2ll [[deprecated("Use `Matrix2i64` instead.")]] = Matrix2<long long>;
246#endif
247
248MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Matrix3,
249 ( Matrix3b, Matrix3<bool> )
250 ( Matrix3i, Matrix3<int> )
251 ( Matrix3i64, Matrix3<Int64> )
252 ( Matrix3f, Matrix3<float> )
253 ( Matrix3d, Matrix3<double> )
254)
255#if !MR_PARSING_FOR_ANY_BINDINGS
256using Matrix3ll [[deprecated("Use `Matrix3i64` instead.")]] = Matrix3<long long>;
257#endif
258
259MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Matrix4,
260 ( Matrix4b, Matrix4<bool> )
261 ( Matrix4i, Matrix4<int> )
262 ( Matrix4i64, Matrix4<Int64> )
263 ( Matrix4f, Matrix4<float> )
264 ( Matrix4d, Matrix4<double> )
265)
266#if !MR_PARSING_FOR_ANY_BINDINGS
267using Matrix4ll [[deprecated("Use `Matrix4i64` instead.")]] = Matrix4<long long>;
268#endif
269
270MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SymMatrix2,
271 ( SymMatrix2b, SymMatrix2<bool> )
272 ( SymMatrix2i, SymMatrix2<int> )
273 ( SymMatrix2i64, SymMatrix2<Int64> )
274 ( SymMatrix2f, SymMatrix2<float> )
275 ( SymMatrix2d, SymMatrix2<double> )
276)
277#if !MR_PARSING_FOR_ANY_BINDINGS
278using SymMatrix2ll [[deprecated("Use `SymMatrix2i64` instead.")]] = SymMatrix2<long long>;
279#endif
280
281MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SymMatrix3,
282 ( SymMatrix3b, SymMatrix3<bool> )
283 ( SymMatrix3i, SymMatrix3<int> )
284 ( SymMatrix3i64, SymMatrix3<Int64> )
285 ( SymMatrix3f, SymMatrix3<float> )
286 ( SymMatrix3d, SymMatrix3<double> )
287)
288#if !MR_PARSING_FOR_ANY_BINDINGS
289using SymMatrix3ll [[deprecated("Use `SymMatrix3i64` instead.")]] = SymMatrix3<long long>;
290#endif
291
292MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SymMatrix4,
293 ( SymMatrix4b, SymMatrix4<bool> )
294 ( SymMatrix4i, SymMatrix4<int> )
295 ( SymMatrix4i64, SymMatrix4<Int64> )
296 ( SymMatrix4f, SymMatrix4<float> )
297 ( SymMatrix4d, SymMatrix4<double> )
298)
299#if !MR_PARSING_FOR_ANY_BINDINGS
300using SymMatrix4ll [[deprecated("Use `SymMatrix4i64` instead.")]] = SymMatrix4<long long>;
301#endif
302
303MR_CANONICAL_TYPEDEFS( (template <typename V> struct), AffineXf,
304 ( AffineXf2f, AffineXf<Vector2<float>> )
305 ( AffineXf2d, AffineXf<Vector2<double>> )
306 ( AffineXf3f, AffineXf<Vector3<float>> )
307 ( AffineXf3d, AffineXf<Vector3<double>> )
308)
309template <typename T> using AffineXf2 = AffineXf<Vector2<T>>;
310template <typename T> using AffineXf3 = AffineXf<Vector3<T>>;
311
312MR_CANONICAL_TYPEDEFS( (template <typename T> struct), RigidXf3,
313 ( RigidXf3f, RigidXf3<float> )
314 ( RigidXf3d, RigidXf3<double> )
315)
316
317MR_CANONICAL_TYPEDEFS( (template <typename T> struct), RigidScaleXf3,
318 ( RigidScaleXf3f, RigidScaleXf3<float> )
319 ( RigidScaleXf3d, RigidScaleXf3<double> )
320)
321
324
325MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Sphere,
326 ( Sphere2f, Sphere<Vector2<float>> )
327 ( Sphere2d, Sphere<Vector2<double>> )
328 ( Sphere3f, Sphere<Vector3<float>> )
329 ( Sphere3d, Sphere<Vector3<double>> )
330)
331template <typename T> using Sphere2 = Sphere<Vector2<T>>;
332template <typename T> using Sphere3 = Sphere<Vector3<T>>;
333
334MR_CANONICAL_TYPEDEFS( (template <typename V> struct), Line,
335 ( Line2f, Line<Vector2<float>> )
336 ( Line2d, Line<Vector2<double>> )
337 ( Line3f, Line<Vector3<float>> )
338 ( Line3d, Line<Vector3<double>> )
339)
340template <typename T> using Line2 = Line<Vector2<T>>;
341template <typename T> using Line3 = Line<Vector3<T>>;
342
343MR_CANONICAL_TYPEDEFS( (template <typename V> struct), LineSegm,
344 ( LineSegm2f, LineSegm<Vector2<float>> )
345 ( LineSegm2d, LineSegm<Vector2<double>> )
346 ( LineSegm3f, LineSegm<Vector3<float>> )
347 ( LineSegm3d, LineSegm<Vector3<double>> )
348)
349template <typename T> using LineSegm2 = LineSegm<Vector2<T>>;
350template <typename T> using LineSegm3 = LineSegm<Vector3<T>>;
351
352MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Parabola,
353 ( Parabolaf, Parabola<float> )
354 ( Parabolad, Parabola<double> )
355)
356
357MR_CANONICAL_TYPEDEFS( (template <typename T> class), BestFitParabola,
358 ( BestFitParabolaf, BestFitParabola<float> )
359 ( BestFitParabolad, BestFitParabola<double> )
360)
361
362MR_CANONICAL_TYPEDEFS( (template <typename T> class), Cylinder3,
363 ( Cylinder3f, Cylinder3<float> )
364 ( Cylinder3d, Cylinder3<double> )
365)
366
367MR_CANONICAL_TYPEDEFS( (template <typename T> class), Cone3,
368 ( Cone3f, Cone3<float> )
369 ( Cone3d, Cone3<double> )
370)
371
372// No canonical typedefs here, because those ultimately boil to `std::vector`, which isn't under our control.
373template <typename V> using Contour = std::vector<V>;
374template <typename T> using Contour2 = Contour<Vector2<T>>;
375template <typename T> using Contour3 = Contour<Vector3<T>>;
376using Contour2d = Contour2<double>;
377using Contour2f = Contour2<float>;
378using Contour3d = Contour3<double>;
379using Contour3f = Contour3<float>;
380
381template <typename V> using Contours = std::vector<Contour<V>>;
382template <typename T> using Contours2 = Contours<Vector2<T>>;
383template <typename T> using Contours3 = Contours<Vector3<T>>;
384using Contours2d = Contours2<double>;
385using Contours2f = Contours2<float>;
386using Contours3d = Contours3<double>;
387using Contours3f = Contours3<float>;
388
389MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Plane3,
390 ( Plane3f, Plane3<float> )
391 ( Plane3d, Plane3<double> )
392)
393
394MR_CANONICAL_TYPEDEFS( (template <typename V> struct MRMESH_CLASS), Box,
395 ( Box1i, Box<int> )
396 ( Box1i64, Box<Int64> )
397 ( Box1f, Box<float> )
398 ( Box1d, Box<double> )
399 ( Box2i, Box<Vector2<int>> )
400 ( Box2i64, Box<Vector2<Int64>> )
401 ( Box2f, Box<Vector2<float>> )
402 ( Box2d, Box<Vector2<double>> )
403 ( Box3i, Box<Vector3<int>> )
404 ( Box3i64, Box<Vector3<Int64>> )
405 ( Box3f, Box<Vector3<float>> )
406 ( Box3d, Box<Vector3<double>> )
407)
408#if !MR_PARSING_FOR_ANY_BINDINGS
409using Box1ll [[deprecated("Use `Box1i64` instead.")]] = Box<long long>;
410using Box2ll [[deprecated("Use `Box2i64` instead.")]] = Box<Vector2<long long>>;
411using Box3ll [[deprecated("Use `Box3i64` instead.")]] = Box<Vector3<long long>>;
412#endif
413
414template <typename T> using MinMax = Box<T>;
415using MinMaxf = MinMax<float>;
416using MinMaxd = MinMax<double>;
417using MinMaxi = MinMax<int>;
418
419template <typename T> using Box1 = Box<T>;
420template <typename T> using Box2 = Box<Vector2<T>>;
421template <typename T> using Box3 = Box<Vector3<T>>;
422
423template<typename T, typename I> struct MinArg;
424template<typename T, typename I> struct MaxArg;
425template<typename T, typename I> struct MinMaxArg;
426
427MR_CANONICAL_TYPEDEFS( (template <typename V> struct MRMESH_CLASS), Ball,
428 ( Ball1f, Ball<float> )
429 ( Ball1d, Ball<double> )
430 ( Ball2f, Ball<Vector2<float>> )
431 ( Ball2d, Ball<Vector2<double>> )
432 ( Ball3f, Ball<Vector3<float>> )
433 ( Ball3d, Ball<Vector3<double>> )
434)
435template <typename T> using Ball1 = Ball<T>;
436template <typename T> using Ball2 = Ball<Vector2<T>>;
437template <typename T> using Ball3 = Ball<Vector3<T>>;
438
439MR_CANONICAL_TYPEDEFS( (template <typename V> struct MRMESH_CLASS), CubicBezierCurve,
440 ( CubicBezierCurve2f, CubicBezierCurve<Vector2<float>> )
441 ( CubicBezierCurve2d, CubicBezierCurve<Vector2<double>> )
442 ( CubicBezierCurve3f, CubicBezierCurve<Vector3<float>> )
443 ( CubicBezierCurve3d, CubicBezierCurve<Vector3<double>> )
444)
445template <typename T> using CubicBezierCurve2 = CubicBezierCurve<Vector2<T>>;
446template <typename T> using CubicBezierCurve3 = CubicBezierCurve<Vector3<T>>;
447
448MR_CANONICAL_TYPEDEFS( (template <typename V> struct), QuadraticForm,
449 ( QuadraticForm2f, QuadraticForm<Vector2<float>> )
450 ( QuadraticForm2d, QuadraticForm<Vector2<double>> )
451 ( QuadraticForm3f, QuadraticForm<Vector3<float>> )
452 ( QuadraticForm3d, QuadraticForm<Vector3<double>> )
453)
454template <typename T> using QuadraticForm2 = QuadraticForm<Vector2<T>>;
455template <typename T> using QuadraticForm3 = QuadraticForm<Vector3<T>>;
456
457MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Quaternion,
458 ( Quaternionf, Quaternion<float> )
459 ( Quaterniond, Quaternion<double> )
460)
461
462// No canonical typedefs because `std::array` is not under our control.
463template <typename T> using Triangle3 = std::array<Vector3<T>, 3>;
464using Triangle3i = Triangle3<int>;
465using Triangle3f = Triangle3<float>;
466using Triangle3d = Triangle3<double>;
467
468class PointAccumulator;
469
470MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SegmPoint,
471 ( SegmPointf, SegmPoint<float> )
472 ( SegmPointd, SegmPoint<double> )
473)
474
475struct EdgePoint;
476struct EdgeSegment;
478using SurfacePath = std::vector<MeshEdgePoint>;
479using SurfacePaths = std::vector<SurfacePath>;
484struct EdgePointPair;
485class Laplacian;
486
487using VertPair = std::pair<VertId, VertId>;
488using FacePair = std::pair<FaceId, FaceId>;
489using EdgePair = std::pair<EdgeId, EdgeId>;
490using UndirectedEdgePair = std::pair<UndirectedEdgeId, UndirectedEdgeId>;
491
492MR_CANONICAL_TYPEDEFS( (template <typename T> struct), TriPoint,
493 ( TriPointf, TriPoint<float> )
494 ( TriPointd, TriPoint<double> )
495)
496
497struct PointOnFace;
498struct PointOnObject;
499struct MeshTriPoint;
503template <typename T> struct IntersectionPrecomputes;
504
505template <typename I> struct IteratorRange;
506
509using UVCoord = Vector2f;
510
512using TwoVertIds = std::array<VertId, 2>;
513
515using ThreeVertIds = std::array<VertId, 3>;
516
518using ThreeUVCoords = std::array<UVCoord, 3>;
519
521
522MR_CANONICAL_TYPEDEFS( (template <typename T, typename I> class MRMESH_CLASS), Vector,
524 ( Edges, Vector<TwoVertIds, UndirectedEdgeId> )
525
527 ( Triangulation, Vector<ThreeVertIds, FaceId> )
528
530 ( TriCornerUVCoords, Vector<ThreeUVCoords, FaceId> )
531
532 ( Dipoles, Vector<Dipole, NodeId> )
533
534 ( FaceMap, Vector<FaceId, FaceId> )
535 ( VertMap, Vector<VertId, VertId> )
536 ( EdgeMap, Vector<EdgeId, EdgeId> )
537 ( UndirectedEdgeMap, Vector<UndirectedEdgeId, UndirectedEdgeId> )
538 ( ObjMap, Vector<ObjId, ObjId> )
539
541 ( WholeEdgeMap, Vector<EdgeId, UndirectedEdgeId> )
542 ( UndirectedEdge2RegionMap, Vector<RegionId, UndirectedEdgeId> )
543 ( Face2RegionMap, Vector<RegionId, FaceId> )
544 ( Vert2RegionMap, Vector<RegionId, VertId> )
545
546 ( VertCoords, Vector<Vector3f, VertId> )
547 ( VertCoords2, Vector<Vector2f, VertId> )
548 ( VertNormals, Vector<Vector3f, VertId> )
549 ( VertUVCoords, Vector<UVCoord, VertId> )
550 ( FaceNormals, Vector<Vector3f, FaceId> )
551
552 ( TexturePerFace, Vector<TextureId, FaceId> )
553 ( VertColors, Vector<Color, VertId> )
554 ( FaceColors, Vector<Color, FaceId> )
555 ( EdgeColors, Vector<Color, EdgeId> )
556 ( UndirectedEdgeColors, Vector<Color, UndirectedEdgeId> )
557
558 ( VertScalars, Vector<float, VertId> )
559 ( FaceScalars, Vector<float, FaceId> )
560 ( EdgeScalars, Vector<float, EdgeId> )
561 ( UndirectedEdgeScalars, Vector<float, UndirectedEdgeId> )
562)
563
564using VertPredicate = std::function<bool( VertId )>;
565using FacePredicate = std::function<bool( FaceId )>;
566using EdgePredicate = std::function<bool( EdgeId )>;
567using UndirectedEdgePredicate = std::function<bool( UndirectedEdgeId )>;
568
569using PreCollapseCallback = std::function<bool( EdgeId edgeToCollapse, const Vector3f& newEdgeOrgPos )>;
570using OnEdgeSplit = std::function<void( EdgeId e1, EdgeId e )>;
571
572template <typename T>
573[[nodiscard]] inline bool contains( const std::function<bool( Id<T> )> & pred, Id<T> id )
574{
575 return id.valid() && ( !pred || pred( id ) );
576}
577
578using VertMetric = std::function<float( VertId )>;
579using FaceMetric = std::function<float( FaceId )>;
580using EdgeMetric = std::function<float( EdgeId )>;
581using UndirectedEdgeMetric = std::function<float( UndirectedEdgeId )>;
582
583MR_CANONICAL_TYPEDEFS( (template <typename T, typename I> struct MRMESH_CLASS), BMap,
584 ( FaceBMap, BMap<FaceId, FaceId> )
585 ( VertBMap, BMap<VertId, VertId> )
586 ( EdgeBMap, BMap<EdgeId, EdgeId> )
587 ( UndirectedEdgeBMap, BMap<UndirectedEdgeId, UndirectedEdgeId> )
588 ( WholeEdgeBMap, BMap<EdgeId, UndirectedEdgeId> )
589)
590
591template <typename T, typename Hash = phmap::priv::hash_default_hash<T>, typename Eq = phmap::priv::hash_default_eq<T>>
592using HashSet = phmap::flat_hash_set<T, Hash, Eq>;
593template <typename T, typename Hash = phmap::priv::hash_default_hash<T>, typename Eq = phmap::priv::hash_default_eq<T>>
594using ParallelHashSet = phmap::parallel_flat_hash_set<T, Hash, Eq>;
595
596// No canonical typedefs because `phmap::...` is not under our control.
597using FaceHashSet = HashSet<FaceId>;
598using VertHashSet = HashSet<VertId>;
599using EdgeHashSet = HashSet<EdgeId>;
600
601template <typename K, typename V, typename Hash = phmap::priv::hash_default_hash<K>, typename Eq = phmap::priv::hash_default_eq<K>>
602using HashMap = phmap::flat_hash_map<K, V, Hash, Eq>;
603template <typename K, typename V, typename Hash = phmap::priv::hash_default_hash<K>, typename Eq = phmap::priv::hash_default_eq<K>>
604using ParallelHashMap = phmap::parallel_flat_hash_map<K, V, Hash, Eq>;
605
606using FaceHashMap = HashMap<FaceId, FaceId>;
607using VertHashMap = HashMap<VertId, VertId>;
608using EdgeHashMap = HashMap<EdgeId, EdgeId>;
609using UndirectedEdgeHashMap = HashMap<UndirectedEdgeId, UndirectedEdgeId>;
611using WholeEdgeHashMap = HashMap<UndirectedEdgeId, EdgeId>;
612
613template <typename K, typename V>
615
616using FaceMapOrHashMap = MapOrHashMap<FaceId, FaceId>;
617using VertMapOrHashMap = MapOrHashMap<VertId, VertId>;
618using EdgeMapOrHashMap = MapOrHashMap<EdgeId, EdgeId>;
619using UndirectedEdgeMapOrHashMap = MapOrHashMap<UndirectedEdgeId, UndirectedEdgeId>;
621using WholeEdgeMapOrHashMap = MapOrHashMap<UndirectedEdgeId, EdgeId>;
622
623template <typename I> class UnionFind;
624template <typename T, typename I, typename P> class Heap;
625
637struct MeshOrPointsXf;
638struct MeshTexture;
639struct GridSettings;
640struct TriMesh;
641
642MR_CANONICAL_TYPEDEFS( ( template <typename T> struct ), MRMESH_CLASS MeshRegion,
643 ( MeshPart, MeshRegion<FaceTag> )
644 ( MeshVertPart, MeshRegion<VertTag> )
645)
646
647template<typename T> class UniqueThreadSafeOwner;
648template<typename T> class SharedThreadSafeOwner;
649
650class PolylineTopology;
651
652MR_CANONICAL_TYPEDEFS( (template<typename V> struct), Polyline,
653 ( Polyline2, Polyline<Vector2f> )
654 ( Polyline3, Polyline<Vector3f> )
655)
656
659 ( AABBTreePolyline3, AABBTreePolyline<Vector3f> )
660)
661
662template<typename T> struct IntersectionPrecomputes;
663template<typename T> struct IntersectionPrecomputes2;
664
665MR_CANONICAL_TYPEDEFS( (template<typename V> struct [[nodiscard]]), PolylineProjectionResult,
666 ( PolylineProjectionResult2, PolylineProjectionResult<Vector2f> )
667 ( PolylineProjectionResult3, PolylineProjectionResult<Vector3f> )
668)
669
670MR_CANONICAL_TYPEDEFS( (template<typename V> struct [[nodiscard]]), PolylineProjectionWithOffsetResult,
672 ( PolylineProjectionWithOffsetResult3, PolylineProjectionWithOffsetResult<Vector3f> )
673)
674
675class DistanceMap;
678
679using GcodeSource = std::vector<std::string>;
680
681class Object;
682class SceneRootObject;
683class VisualObject;
684class ObjectMeshHolder;
685class ObjectMesh;
686struct ObjectMeshData;
688class ObjectPoints;
690class ObjectLines;
692class ObjectLabel;
693class ObjectGcode;
694class PointObject;
695class LineObject;
696class CircleObject;
697class PlaneObject;
698class SphereObject;
699class CylinderObject;
700class ConeObject;
701
702struct LoadedObjects;
703
704struct Image;
706
707class HistoryAction;
714class ChangeMeshAction;
718class ChangeXfAction;
720class SwapRootAction;
721
722MR_CANONICAL_TYPEDEFS( (template <typename Tag> class MRMESH_CLASS), ColorMapAggregator,
723 ( VertColorMapAggregator, ColorMapAggregator<VertTag> )
724 ( UndirEdgeColorMapAggregator, ColorMapAggregator<UndirectedEdgeTag> )
725 ( FaceColorMapAggregator, ColorMapAggregator<FaceTag> )
726)
727
728template<typename T>
729class FewSmallest;
730
731class Graph;
732class WatershedGraph;
733
735
736struct SaveSettings;
737namespace ObjectSave { struct Settings; }
738
742typedef std::function<bool( float )> ProgressCallback;
743
744enum class FilterType : char;
745enum class WrapType : char;
746enum class Reorder : char;
747
748struct TransparencyMode;
749
751template <typename T>
752constexpr inline T sqr( T x ) noexcept { return x * x; }
753
755template <typename T>
756constexpr inline int sgn( T x ) noexcept { return x > 0 ? 1 : ( x < 0 ? -1 : 0 ); }
757
759template <typename T>
760constexpr inline T distance( T x, T y ) noexcept { return x >= y ? x - y : y - x; }
761
763template <typename T>
764constexpr inline T distanceSq( T x, T y ) noexcept { return sqr( x - y ); }
765
767template <typename V, typename T>
768constexpr inline auto lerp( V v0, V v1, T t ) noexcept { return ( 1 - t ) * v0 + t * v1; }
769
770template<typename...>
771inline constexpr bool dependent_false = false;
772
773template<class... Ts>
774struct overloaded : Ts... { using Ts::operator()...; };
775
776// explicit deduction guide (not needed as of C++20, but still needed in Clang)
777template<class... Ts>
778overloaded(Ts...) -> overloaded<Ts...>;
779
782class IPointsProjector;
783
784namespace MeshBuilder
785{
786
787struct BuildSettings;
788struct Triangle;
789struct VertDuplication;
790
791} //namespace MeshBuilder
792
793} //namespace MR
794
795#ifdef __cpp_lib_unreachable
796# define MR_UNREACHABLE std::unreachable();
797# define MR_UNREACHABLE_NO_RETURN std::unreachable();
798#else
799# ifdef __GNUC__
800# define MR_UNREACHABLE __builtin_unreachable();
801# define MR_UNREACHABLE_NO_RETURN __builtin_unreachable();
802# else
803# include <cassert>
804# define MR_UNREACHABLE { assert( false ); return {}; }
805# define MR_UNREACHABLE_NO_RETURN assert( false );
806# endif
807#endif
#define MR_CANONICAL_TYPEDEFS(type_, name_, aliases_)
Definition MRCanonicalTypedefs.h:23
#define MRMESH_CLASS
Definition MRMeshFwd.h:87
Contour
Definition MRObjectLabel.h:17
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:54
Definition MRMesh/MRBitSet.h:24
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 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: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 MRMeshFwd.h:624
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 MRId.h:16
Definition MRLaplacian.h:21
Definition MRLineObject.h:13
Definition MRMeshOrPoints.h:18
Definition MRMesh/MRMeshTopology.h:19
Definition MRObjectDistanceMap.h:13
Definition MRObjectGcode.h:14
Definition MRObjectLabel.h:26
Definition MRObjectLinesHolder.h:27
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:14
Definition MRPointToPlaneAligningTransform.h:20
Definition MRPointToPointAligningTransform.h:16
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:217
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:119
graphs representing rain basins on the mesh
Definition MRWatershedGraph.h:12
bool contains(const TypedBitSet< I > *bitset, I id)
Definition MRMesh/MRBitSet.h:326
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:742
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 MRCameraOrientationPlugin.h:8
std::function< float(VertId)> VertMetric
Definition MRMeshFwd.h:578
phmap::parallel_flat_hash_map< K, V, Hash, Eq > ParallelHashMap
Definition MRMeshFwd.h:604
std::vector< EdgeId > EdgeLoop
Definition MRMeshFwd.h:145
std::vector< std::string > GcodeSource
Definition MRMeshFwd.h:679
WrapType
Definition MREnums.h:15
std::array< VertId, 2 > TwoVertIds
two vertex ids describing an edge with the ends in vertices given by their ids
Definition MRMeshFwd.h:512
std::vector< SurfacePath > SurfacePaths
Definition MRMeshFwd.h:479
std::vector< EdgeLoop > EdgeLoops
Definition MRMeshFwd.h:146
Contour3< float > Contour3f
Definition MRMeshFwd.h:379
class MRMESH_CLASS UndirectedEdgeTag
Definition MRMeshFwd.h:99
constexpr T sqr(T x) noexcept
squared value
Definition MRMeshFwd.h:752
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 MRMeshFwd.h:658
class MRMESH_CLASS ObjTag
Definition MRMeshFwd.h:106
Eq
Definition MRMeshFwd.h:591
std::function< bool(FaceId)> FacePredicate
Definition MRMeshFwd.h:565
Contour2< double > Contour2d
Definition MRMeshFwd.h:376
class MRMESH_CLASS NodeTag
Definition MRMeshFwd.h:105
HashSet< VertId > VertHashSet
Definition MRMeshFwd.h:598
std::function< bool(EdgeId)> EdgePredicate
Definition MRMeshFwd.h:566
Hash
Definition MRMeshFwd.h:591
Contour2< float > Contour2f
Definition MRMeshFwd.h:377
std::array< UVCoord, 3 > ThreeUVCoords
three UV-coordinates describing texturing of a triangle
Definition MRMeshFwd.h:518
Contours2< double > Contours2d
Definition MRMeshFwd.h:384
Contours3< float > Contours3f
Definition MRMeshFwd.h:387
std::uint64_t Uint64
Definition MRMeshFwd.h:198
std::function< bool(UndirectedEdgeId)> UndirectedEdgePredicate
Definition MRMeshFwd.h:567
Contours3< double > Contours3d
Definition MRMeshFwd.h:386
SurfacePaths PlaneSections
Definition MRMeshFwd.h:483
HashMap< VertId, VertId > VertHashMap
Definition MRMeshFwd.h:607
class MRMESH_CLASS VoxelTag
Definition MRMeshFwd.h:103
FilterType
Definition MREnums.h:9
SurfacePath IsoLine
Definition MRMeshFwd.h:480
Vector2f UVCoord
Definition MRMeshFwd.h:509
Triangle3< int > Triangle3i
Definition MRMeshFwd.h:464
std::vector< MeshEdgePoint > SurfacePath
Definition MRMeshFwd.h:478
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:611
class MRMESH_CLASS FaceTag
Definition MRMeshFwd.h:100
class MRMESH_CLASS TextureTag
Definition MRMeshFwd.h:107
class MRMESH_CLASS PixelTag
Definition MRMeshFwd.h:102
Contours< Vector2< T > > Contours2
Definition MRMeshFwd.h:382
overloaded(Ts...) -> overloaded< Ts... >
constexpr int sgn(T x) noexcept
sign of given value in { -1, 0, 1 }
Definition MRMeshFwd.h:756
Contours2< float > Contours2f
Definition MRMeshFwd.h:385
std::function< float(EdgeId)> EdgeMetric
Definition MRMeshFwd.h:580
std::function< bool(EdgeId edgeToCollapse, const Vector3f &newEdgeOrgPos)> PreCollapseCallback
Definition MRMeshFwd.h:569
Contour< Vector2< T > > Contour2
Definition MRMeshFwd.h:374
Contour3< double > Contour3d
Definition MRMeshFwd.h:378
SurfacePath PlaneSection
Definition MRMeshFwd.h:482
HashMap< FaceId, FaceId > FaceHashMap
Definition MRMeshFwd.h:606
std::function< float(FaceId)> FaceMetric
Definition MRMeshFwd.h:579
Triangle3< double > Triangle3d
Definition MRMeshFwd.h:466
Contour< Vector3< T > > Contour3
Definition MRMeshFwd.h:375
HashSet< FaceId > FaceHashSet
Definition MRMeshFwd.h:597
std::vector< EdgeId > EdgePath
Definition MRMeshFwd.h:144
std::array< VertId, 3 > ThreeVertIds
three vertex ids describing a triangle with the corners in vertices given by their ids
Definition MRMeshFwd.h:515
class MRMESH_CLASS VertTag
Definition MRMeshFwd.h:101
std::pair< FaceId, FaceId > FacePair
Definition MRMeshFwd.h:488
constexpr NoInit noInit
Definition MRMeshFwd.h:95
HashSet< EdgeId > EdgeHashSet
Definition MRMeshFwd.h:599
std::pair< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgePair
Definition MRMeshFwd.h:490
I
Definition MRMeshFwd.h:134
std::pair< EdgeId, EdgeId > EdgePair
Definition MRMeshFwd.h:489
std::int64_t Int64
Definition MRMeshFwd.h:197
std::function< void(EdgeId e1, EdgeId e)> OnEdgeSplit
Definition MRMeshFwd.h:570
std::function< float(UndirectedEdgeId)> UndirectedEdgeMetric
Definition MRMeshFwd.h:581
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:768
constexpr bool dependent_false
Definition MRMeshFwd.h:771
Triangle3< float > Triangle3f
Definition MRMeshFwd.h:465
SurfacePaths IsoLines
Definition MRMeshFwd.h:481
class MRMESH_CLASS EdgeTag
Definition MRMeshFwd.h:98
std::vector< Contour< V > > Contours
Definition MRMeshFwd.h:381
Polyline2ProjectionWithOffsetResult
Definition MRMeshFwd.h:671
HashMap< EdgeId, EdgeId > EdgeHashMap
Definition MRMeshFwd.h:608
phmap::parallel_flat_hash_set< T, Hash, Eq > ParallelHashSet
Definition MRMeshFwd.h:594
std::pair< VertId, VertId > VertPair
Definition MRMeshFwd.h:487
HashMap< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgeHashMap
Definition MRMeshFwd.h:609
Contours< Vector3< T > > Contours3
Definition MRMeshFwd.h:383
class MRMESH_CLASS RegionTag
Definition MRMeshFwd.h:104
class MRMESH_CLASS GraphVertTag
Definition MRMeshFwd.h:108
phmap::flat_hash_map< K, V, Hash, Eq > HashMap
Definition MRMeshFwd.h:602
class MRMESH_CLASS GraphEdgeTag
Definition MRMeshFwd.h:109
Reorder
determines how points to be ordered
Definition MREnums.h:23
Definition MRMesh/MRAffineXf.h:23
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:27
Definition MRCloudPartMapping.h:10
Definition MRMesh/MRColor.h:9
Cubic Bezier curve.
Definition MRBezier.h:13
Definition MRDipole.h:11
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 MRImage.h:16
Definition MRMeshFwd.h:663
Definition MRMeshFwd.h:503
Definition MRMeshFwd.h:505
Definition MRLineSegm.h:11
Definition MRLine.h:13
result of loading (e.g. from a file) as a number of objects
Definition MRLoadedObjects.h:33
Definition MRMeshFwd.h:614
Definition MRMatrix2.h:21
Definition MRMesh/MRMatrix3.h:21
Definition MRMatrix4.h:22
Definition MRMinMaxArg.h:46
Definition MRMeshIntersect.h:18
an object and its transformation to global space with other objects
Definition MRMeshOrPoints.h:106
Definition MRMeshProject.h:18
Definition MRMeshPart.h:12
Definition MRMeshTexture.h:13
Definition MRMeshTriPoint.h:23
Definition MRMesh/MRMesh.h:23
Definition MRMinMaxArg.h:13
Definition MRMinMaxArg.h:79
Definition MRNoDefInit.h:11
Definition MRMeshFwd.h:94
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:10
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 MRPointOnFace.h:13
Definition MRPointOnObject.h:18
Definition MRPointsProject.h:15
Definition MRPolylineProject.h:15
Definition MRPolylineProject.h:73
Definition MRPolyline.h:18
Definition MRQuadraticForm.h:13
determines how to save points/lines/mesh
Definition MRSaveSettings.h:17
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 MRSphere.h:11
Definition MRSymMatrix2.h:14
Definition MRSymMatrix3.h:15
Definition MRSymMatrix4.h:13
Definition MRTbbTaskArenaAndGroup.h:13
struct to determine transparent rendering mode
Definition MRRenderModelParameters.h:10
Definition MRTriMesh.h:13
Definition MRUnorientedTriangle.h:13
Definition MRVector2.h:29
Definition MRMesh/MRVector3.h:30
Definition MRVector4.h:23
Definition MRMeshFwd.h:774