6#include "MRPch/MRBindingMacros.h"
22 #if !defined _ITERATOR_DEBUG_LEVEL
23 #define _ITERATOR_DEBUG_LEVEL 0
25 #if !defined MR_ITERATOR_DEBUG_LEVEL
26 #define MR_ITERATOR_DEBUG_LEVEL 0
28 #if _ITERATOR_DEBUG_LEVEL != MR_ITERATOR_DEBUG_LEVEL
29 #error _ITERATOR_DEBUG_LEVEL is inconsistent with MeshLib
35#define MR_CPP_STANDARD_DATE _MSVC_LANG
37#define MR_CPP_STANDARD_DATE __cplusplus
44#if MR_CPP_STANDARD_DATE < 201709 && !defined(__CUDACC__)
45#error Must enable C++20 or newer!
55#if defined(__GNUC__) && (__GNUC__ >= 13 && __GNUC__ <= 15)
56 #pragma GCC diagnostic push
57 #pragma GCC diagnostic ignored "-Warray-bounds"
58 #pragma GCC diagnostic ignored "-Wstringop-overflow"
63#if defined(__GNUC__) && (__GNUC__ >= 13 && __GNUC__ <= 15)
64 #pragma GCC diagnostic pop
69#include <parallel_hashmap/phmap_fwd_decl.h>
74# define MRMESH_API __declspec(dllexport)
76# define MRMESH_API __declspec(dllimport)
80# define MRMESH_API __attribute__((visibility("default")))
85# define MRMESH_CLASS __attribute__((type_visibility("default")))
87# define MRMESH_CLASS __attribute__((visibility("default")))
132template <>
class MR_BIND_PREFERRED_NAME(
MR::EdgeId)
Id<EdgeTag>;
133template <> class MR_BIND_PREFERRED_NAME(MR::VoxelId)
Id<VoxelTag>;
136 ( NoInitNodeId, NoInitId<NodeTag> )
156 ( FaceBitSet, TypedBitSet<FaceId> )
157 ( VertBitSet, TypedBitSet<VertId> )
158 ( EdgeBitSet, TypedBitSet<EdgeId> )
159 ( UndirectedEdgeBitSet, TypedBitSet<UndirectedEdgeId> )
160 ( PixelBitSet, TypedBitSet<PixelId> )
161 ( VoxelBitSet, TypedBitSet<VoxelId> )
162 ( RegionBitSet, TypedBitSet<RegionId> )
163 ( NodeBitSet, TypedBitSet<NodeId> )
164 ( ObjBitSet, TypedBitSet<ObjId> )
165 ( TextureBitSet, TypedBitSet<TextureId> )
166 ( GraphVertBitSet, TypedBitSet<GraphVertId> )
167 ( GraphEdgeBitSet, TypedBitSet<GraphEdgeId> )
174 ( SetBitIterator, SetBitIteratorT<BitSet> )
175 ( FaceSetBitIterator, SetBitIteratorT<FaceBitSet> )
176 ( VertSetBitIterator, SetBitIteratorT<VertBitSet> )
177 ( EdgeSetBitIterator, SetBitIteratorT<EdgeBitSet> )
178 ( UndirectedEdgeSetBitIterator, SetBitIteratorT<UndirectedEdgeBitSet> )
197using
Int64 = std::ptrdiff_t;
198using
Uint64 = std::size_t;
199static_assert(sizeof(Int64) == 8);
200static_assert(sizeof(Uint64) == 8);
207 ( Vector2b, Vector2<bool> )
208 ( Vector2i, Vector2<int> )
209 ( Vector2i64, Vector2<Int64> )
210 ( Vector2f, Vector2<float> )
211 ( Vector2d, Vector2<double> )
216#if !MR_PARSING_FOR_ANY_BINDINGS
217using Vector2ll [[deprecated("Use `Vector2i64` instead.")]] =
Vector2<long long>;
221 ( Vector3b, Vector3<bool> )
222 ( Vector3i, Vector3<int> )
223 ( Vector3i64, Vector3<Int64> )
224 ( Vector3f, Vector3<float> )
225 ( Vector3d, Vector3<double> )
227#if !MR_PARSING_FOR_ANY_BINDINGS
228using Vector3ll [[deprecated("Use `Vector3i64` instead.")]] =
Vector3<long long>;
232 ( Vector4b, Vector4<bool> )
233 ( Vector4i, Vector4<int> )
234 ( Vector4i64, Vector4<Int64> )
235 ( Vector4f, Vector4<float> )
236 ( Vector4d, Vector4<double> )
238#if !MR_PARSING_FOR_ANY_BINDINGS
239using Vector4ll [[deprecated("Use `Vector4i64` instead.")]] =
Vector4<long long>;
243 ( Matrix2b, Matrix2<bool> )
244 ( Matrix2i, Matrix2<int> )
245 ( Matrix2i64, Matrix2<Int64> )
246 ( Matrix2f, Matrix2<float> )
247 ( Matrix2d, Matrix2<double> )
249#if !MR_PARSING_FOR_ANY_BINDINGS
250using Matrix2ll [[deprecated("Use `Matrix2i64` instead.")]] =
Matrix2<long long>;
254 ( Matrix3b, Matrix3<bool> )
255 ( Matrix3i, Matrix3<int> )
256 ( Matrix3i64, Matrix3<Int64> )
257 ( Matrix3f, Matrix3<float> )
258 ( Matrix3d, Matrix3<double> )
260#if !MR_PARSING_FOR_ANY_BINDINGS
261using Matrix3ll [[deprecated("Use `Matrix3i64` instead.")]] =
Matrix3<long long>;
265 ( Matrix4b, Matrix4<bool> )
266 ( Matrix4i, Matrix4<int> )
267 ( Matrix4i64, Matrix4<Int64> )
268 ( Matrix4f, Matrix4<float> )
269 ( Matrix4d, Matrix4<double> )
271#if !MR_PARSING_FOR_ANY_BINDINGS
272using Matrix4ll [[deprecated("Use `Matrix4i64` instead.")]] =
Matrix4<long long>;
276 ( SymMatrix2b, SymMatrix2<bool> )
277 ( SymMatrix2i, SymMatrix2<int> )
278 ( SymMatrix2i64, SymMatrix2<Int64> )
279 ( SymMatrix2f, SymMatrix2<float> )
280 ( SymMatrix2d, SymMatrix2<double> )
282#if !MR_PARSING_FOR_ANY_BINDINGS
283using SymMatrix2ll [[deprecated("Use `SymMatrix2i64` instead.")]] =
SymMatrix2<long long>;
287 ( SymMatrix3b, SymMatrix3<bool> )
288 ( SymMatrix3i, SymMatrix3<int> )
289 ( SymMatrix3i64, SymMatrix3<Int64> )
290 ( SymMatrix3f, SymMatrix3<float> )
291 ( SymMatrix3d, SymMatrix3<double> )
293#if !MR_PARSING_FOR_ANY_BINDINGS
294using SymMatrix3ll [[deprecated("Use `SymMatrix3i64` instead.")]] =
SymMatrix3<long long>;
298 ( SymMatrix4b, SymMatrix4<bool> )
299 ( SymMatrix4i, SymMatrix4<int> )
300 ( SymMatrix4i64, SymMatrix4<Int64> )
301 ( SymMatrix4f, SymMatrix4<float> )
302 ( SymMatrix4d, SymMatrix4<double> )
304#if !MR_PARSING_FOR_ANY_BINDINGS
305using SymMatrix4ll [[deprecated("Use `SymMatrix4i64` instead.")]] =
SymMatrix4<long long>;
309 ( AffineXf2f, AffineXf<Vector2<float>> )
310 ( AffineXf2d, AffineXf<Vector2<double>> )
311 ( AffineXf3f, AffineXf<Vector3<float>> )
312 ( AffineXf3d, AffineXf<Vector3<double>> )
314template <typename T> using AffineXf2 =
AffineXf<Vector2<T>>;
318 ( RigidXf3f, RigidXf3<float> )
319 ( RigidXf3d, RigidXf3<double> )
323 ( RigidScaleXf3f, RigidScaleXf3<float> )
324 ( RigidScaleXf3d, RigidScaleXf3<double> )
331 ( Sphere2f, Sphere<Vector2<float>> )
332 ( Sphere2d, Sphere<Vector2<double>> )
333 ( Sphere3f, Sphere<Vector3<float>> )
334 ( Sphere3d, Sphere<Vector3<double>> )
336template <typename T> using Sphere2 =
Sphere<Vector2<T>>;
340 ( Line2f, Line<Vector2<float>> )
341 ( Line2d, Line<Vector2<double>> )
342 ( Line3f, Line<Vector3<float>> )
343 ( Line3d, Line<Vector3<double>> )
345template <typename T> using Line2 =
Line<Vector2<T>>;
349 ( LineSegm2f, LineSegm<Vector2<float>> )
350 ( LineSegm2d, LineSegm<Vector2<double>> )
351 ( LineSegm3f, LineSegm<Vector3<float>> )
352 ( LineSegm3d, LineSegm<Vector3<double>> )
354template <typename T> using LineSegm2 =
LineSegm<Vector2<T>>;
358 ( Parabolaf, Parabola<float> )
359 ( Parabolad, Parabola<double> )
363 ( BestFitParabolaf, BestFitParabola<float> )
364 ( BestFitParabolad, BestFitParabola<double> )
368 ( Cylinder3f, Cylinder3<float> )
369 ( Cylinder3d, Cylinder3<double> )
373 ( Cone3f, Cone3<float> )
374 ( Cone3d, Cone3<double> )
378template <typename V> using
Contour = std::vector<V>;
386template <typename V> using
Contours = std::vector<Contour<V>>;
395 ( Plane3f, Plane3<float> )
396 ( Plane3d, Plane3<double> )
401 ( Box1i64, Box<Int64> )
402 ( Box1f, Box<float> )
403 ( Box1d, Box<double> )
404 ( Box2i, Box<Vector2<int>> )
405 ( Box2i64, Box<Vector2<Int64>> )
406 ( Box2f, Box<Vector2<float>> )
407 ( Box2d, Box<Vector2<double>> )
408 ( Box3i, Box<Vector3<int>> )
409 ( Box3i64, Box<Vector3<Int64>> )
410 ( Box3f, Box<Vector3<float>> )
411 ( Box3d, Box<Vector3<double>> )
413#if !MR_PARSING_FOR_ANY_BINDINGS
414using Box1ll [[deprecated("Use `Box1i64` instead.")]] =
Box<long long>;
415using Box2ll [[deprecated("Use `Box2i64` instead.")]] =
Box<Vector2<long long>>;
416using Box3ll [[deprecated("Use `Box3i64` instead.")]] =
Box<Vector3<long long>>;
425template <typename T> using
Box2 =
Box<Vector2<T>>;
426template <typename T> using
Box3 =
Box<Vector3<T>>;
433 ( Ball1f, Ball<float> )
434 ( Ball1d, Ball<double> )
435 ( Ball2f, Ball<Vector2<float>> )
436 ( Ball2d, Ball<Vector2<double>> )
437 ( Ball3f, Ball<Vector3<float>> )
438 ( Ball3d, Ball<Vector3<double>> )
445 ( CubicBezierCurve2f, CubicBezierCurve<Vector2<float>> )
446 ( CubicBezierCurve2d, CubicBezierCurve<Vector2<double>> )
447 ( CubicBezierCurve3f, CubicBezierCurve<Vector3<float>> )
448 ( CubicBezierCurve3d, CubicBezierCurve<Vector3<double>> )
454 ( QuadraticForm2f, QuadraticForm<Vector2<float>> )
455 ( QuadraticForm2d, QuadraticForm<Vector2<double>> )
456 ( QuadraticForm3f, QuadraticForm<Vector3<float>> )
457 ( QuadraticForm3d, QuadraticForm<Vector3<double>> )
459template <typename T> using QuadraticForm2 =
QuadraticForm<Vector2<T>>;
463 ( Quaternionf, Quaternion<float> )
464 ( Quaterniond, Quaternion<double> )
468template <typename T> using Triangle3 = std::array<Vector3<T>, 3>;
476 ( SegmPointf, SegmPoint<float> )
477 ( SegmPointd, SegmPoint<double> )
499 ( TriPointf, TriPoint<float> )
500 ( TriPointd, TriPoint<double> )
532 ( Edges, Vector<TwoVertIds, UndirectedEdgeId> )
535 ( Triangulation, Vector<ThreeVertIds, FaceId> )
538 ( TriCornerUVCoords, Vector<ThreeUVCoords, FaceId> )
540 ( Dipoles, Vector<Dipole, NodeId> )
542 ( FaceMap, Vector<FaceId, FaceId> )
543 ( VertMap, Vector<VertId, VertId> )
544 ( EdgeMap, Vector<EdgeId, EdgeId> )
545 ( UndirectedEdgeMap, Vector<UndirectedEdgeId, UndirectedEdgeId> )
546 ( ObjMap, Vector<ObjId, ObjId> )
549 ( WholeEdgeMap, Vector<EdgeId, UndirectedEdgeId> )
550 ( UndirectedEdge2RegionMap, Vector<RegionId, UndirectedEdgeId> )
551 ( Face2RegionMap, Vector<RegionId, FaceId> )
552 ( Vert2RegionMap, Vector<RegionId, VertId> )
554 ( VertCoords, Vector<Vector3f, VertId> )
555 ( VertCoords2, Vector<Vector2f, VertId> )
556 ( VertNormals, Vector<Vector3f, VertId> )
557 ( VertUVCoords, Vector<UVCoord, VertId> )
558 ( FaceNormals, Vector<Vector3f, FaceId> )
560 ( TexturePerFace, Vector<TextureId, FaceId> )
561 ( VertColors, Vector<Color, VertId> )
562 ( FaceColors, Vector<Color, FaceId> )
563 ( EdgeColors, Vector<Color, EdgeId> )
564 ( UndirectedEdgeColors, Vector<Color, UndirectedEdgeId> )
566 ( VertScalars, Vector<float, VertId> )
567 ( FaceScalars, Vector<float, FaceId> )
568 ( EdgeScalars, Vector<float, EdgeId> )
569 ( UndirectedEdgeScalars, Vector<float, UndirectedEdgeId> )
572using VertPredicate = std::function<bool( VertId )>;
581[[nodiscard]] inline bool
contains( const std::function<bool( Id<T> )> & pred, Id<T> id )
583 return id.valid() && ( !pred || pred(
id ) );
599template <typename T, typename
Hash = phmap::priv::hash_default_hash<T>, typename
Eq = phmap::priv::hash_default_eq<T>>
600using HashSet = phmap::flat_hash_set<T,
Hash,
Eq>;
601template <typename T, typename
Hash = phmap::priv::hash_default_hash<T>, typename
Eq = phmap::priv::hash_default_eq<T>>
609template <typename K, typename V, typename
Hash = phmap::priv::hash_default_hash<K>, typename
Eq = phmap::priv::hash_default_eq<K>>
611template <typename K, typename V, typename
Hash = phmap::priv::hash_default_hash<K>, typename
Eq = phmap::priv::hash_default_eq<K>>
621template <typename K, typename V>
632template <typename T, typename
I, typename P> class
Heap;
753namespace ObjectSave {
struct Settings; }
768constexpr inline T
sqr( T x )
noexcept {
return x * x; }
772constexpr inline int sgn( T x )
noexcept {
return x > 0 ? 1 : ( x < 0 ? -1 : 0 ); }
776constexpr inline T
distance( T x, T y )
noexcept {
return x >= y ? x - y : y - x; }
783template <
typename V,
typename T>
784constexpr inline auto lerp( V v0, V v1, T t )
noexcept {
return ( 1 - t ) * v0 + t * v1; }
805struct VertDuplication;
814constexpr inline auto translate_noop(
const char* ctx,
const char* str )
noexcept { (void)ctx;
return str; }
815constexpr inline auto translate_noop(
const char* single,
const char* plural,
Int64 n )
noexcept {
return n == 1 ? single : plural; }
816constexpr inline auto translate_noop(
const char* ctx,
const char* single,
const char* plural,
Int64 n )
noexcept { (void)ctx;
return n == 1 ? single : plural; }
822#ifdef __cpp_lib_unreachable
823# define MR_UNREACHABLE std::unreachable();
824# define MR_UNREACHABLE_NO_RETURN std::unreachable();
827# define MR_UNREACHABLE __builtin_unreachable();
828# define MR_UNREACHABLE_NO_RETURN __builtin_unreachable();
831# define MR_UNREACHABLE { assert( false ); return {}; }
832# define MR_UNREACHABLE_NO_RETURN assert( false );
836#ifndef MR_NO_I18N_MACROS
837#define _t( ... ) MR::Locale::translate_noop( __VA_ARGS__ )
#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
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
Definition MRConeObject.h:22
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
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 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 disjoin sets of elements with few very quick operations: 1...
Definition MRUnionFind.h:23
Definition MRUniqueThreadSafeOwner.h:18
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:405
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:758
CubicBezierCurve< Vector2< T > > CubicBezierCurve2
Definition MRMeshFwd.h:450
std::function< float(VertId)> VertMetric
Definition MRMeshFwd.h:586
phmap::parallel_flat_hash_map< K, V, Hash, Eq > ParallelHashMap
Definition MRMeshFwd.h:612
std::vector< EdgeId > EdgeLoop
Definition MRMeshFwd.h:150
std::vector< std::string > GcodeSource
Definition MRMeshFwd.h:689
WrapType
Definition MREnums.h:18
struct
Definition MRMeshFwd.h:206
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:520
std::vector< SurfacePath > SurfacePaths
Definition MRMeshFwd.h:484
std::vector< EdgeLoop > EdgeLoops
Definition MRMeshFwd.h:151
Contour3< float > Contour3f
Definition MRMeshFwd.h:384
class MRMESH_CLASS UndirectedEdgeTag
Definition MRMeshFwd.h:102
constexpr T sqr(T x) noexcept
squared value
Definition MRMeshFwd.h:768
AABBTreePolyline2
Definition MRMeshFwd.h:668
LineSegm< Vector3< T > > LineSegm3
Definition MRMeshFwd.h:355
MapOrHashMap< FaceId, FaceId > FaceMapOrHashMap
Definition MRMeshFwd.h:624
class MRMESH_CLASS ObjTag
Definition MRMeshFwd.h:109
CubicBezierCurve< Vector3< T > > CubicBezierCurve3
Definition MRMeshFwd.h:451
Box< T > MinMax
Definition MRMeshFwd.h:419
std::function< bool(FaceId)> FacePredicate
Definition MRMeshFwd.h:573
MinMax< float > MinMaxf
Definition MRMeshFwd.h:420
Contour2< double > Contour2d
Definition MRMeshFwd.h:381
struct MRMESH_CLASS Eq
Definition MRMeshFwd.h:599
class MRMESH_CLASS NodeTag
Definition MRMeshFwd.h:108
Box< Vector3< T > > Box3
Definition MRMeshFwd.h:426
HashSet< VertId > VertHashSet
Definition MRMeshFwd.h:606
std::function< bool(EdgeId)> EdgePredicate
Definition MRMeshFwd.h:574
Contour2< float > Contour2f
Definition MRMeshFwd.h:382
std::array< UVCoord, 3 > ThreeUVCoords
three UV-coordinates describing texturing of a triangle
Definition MRMeshFwd.h:526
Contours2< double > Contours2d
Definition MRMeshFwd.h:389
Contours3< float > Contours3f
Definition MRMeshFwd.h:392
std::uint64_t Uint64
Definition MRMeshFwd.h:203
std::function< bool(UndirectedEdgeId)> UndirectedEdgePredicate
Definition MRMeshFwd.h:575
Ball< Vector2< T > > Ball2
Definition MRMeshFwd.h:441
MapOrHashMap< VertId, VertId > VertMapOrHashMap
Definition MRMeshFwd.h:625
Contours3< double > Contours3d
Definition MRMeshFwd.h:391
SurfacePaths PlaneSections
Definition MRMeshFwd.h:488
MapOrHashMap< EdgeId, EdgeId > EdgeMapOrHashMap
Definition MRMeshFwd.h:626
HashMap< VertId, VertId > VertHashMap
Definition MRMeshFwd.h:615
QuadraticForm< Vector3< T > > QuadraticForm3
Definition MRMeshFwd.h:460
class MRMESH_CLASS VoxelTag
Definition MRMeshFwd.h:106
Ball< T > Ball1
Definition MRMeshFwd.h:440
FilterType
Definition MREnums.h:12
SurfacePath IsoLine
Definition MRMeshFwd.h:485
Vector2f UVCoord
Definition MRMeshFwd.h:517
Triangle3< int > Triangle3i
Definition MRMeshFwd.h:469
Ball< Vector3< T > > Ball3
Definition MRMeshFwd.h:442
Sphere< Vector3< T > > Sphere3
Definition MRMeshFwd.h:337
std::vector< MeshEdgePoint > SurfacePath
Definition MRMeshFwd.h:483
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:619
class MRMESH_CLASS FaceTag
Definition MRMeshFwd.h:103
class MRMESH_CLASS TextureTag
Definition MRMeshFwd.h:110
class MRMESH_CLASS I
Definition MRMeshFwd.h:139
class MRMESH_CLASS PixelTag
Definition MRMeshFwd.h:105
Line< Vector3< T > > Line3
Definition MRMeshFwd.h:346
Contours< Vector2< T > > Contours2
Definition MRMeshFwd.h:387
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:772
Contours2< float > Contours2f
Definition MRMeshFwd.h:390
std::function< float(EdgeId)> EdgeMetric
Definition MRMeshFwd.h:588
MinMax< double > MinMaxd
Definition MRMeshFwd.h:421
Box< Vector2< T > > Box2
Definition MRMeshFwd.h:425
std::function< bool(EdgeId edgeToCollapse, const Vector3f &newEdgeOrgPos)> PreCollapseCallback
Definition MRMeshFwd.h:577
MinMax< int > MinMaxi
Definition MRMeshFwd.h:422
EdgePoint MeshEdgePoint
Definition MRMeshFwd.h:482
Box< T > Box1
Definition MRMeshFwd.h:424
Contour< Vector2< T > > Contour2
Definition MRMeshFwd.h:379
Contour3< double > Contour3d
Definition MRMeshFwd.h:383
TypedBitSet< Id< T > > TaggedBitSet
Definition MRMeshFwd.h:171
SurfacePath PlaneSection
Definition MRMeshFwd.h:487
HashMap< FaceId, FaceId > FaceHashMap
Definition MRMeshFwd.h:614
std::function< float(FaceId)> FaceMetric
Definition MRMeshFwd.h:587
class MRMESH_CLASS LocaleDomainTag
Definition MRMeshFwd.h:113
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:629
Polyline2
Definition MRMeshFwd.h:663
Triangle3< double > Triangle3d
Definition MRMeshFwd.h:471
Contour< Vector3< T > > Contour3
Definition MRMeshFwd.h:380
HashSet< FaceId > FaceHashSet
No canonical typedefs because phmap::... is not under our control.
Definition MRMeshFwd.h:605
std::vector< EdgeId > EdgePath
Definition MRMeshFwd.h:149
std::array< VertId, 3 > ThreeVertIds
three vertex ids describing a triangle with the corners in vertices given by their ids
Definition MRMeshFwd.h:523
class MRMESH_CLASS VertTag
Definition MRMeshFwd.h:104
std::pair< FaceId, FaceId > FacePair
Definition MRMeshFwd.h:494
constexpr NoInit noInit
Definition MRMeshFwd.h:98
HashSet< EdgeId > EdgeHashSet
Definition MRMeshFwd.h:607
std::pair< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgePair
Definition MRMeshFwd.h:496
std::pair< EdgeId, EdgeId > EdgePair
Definition MRMeshFwd.h:495
std::int64_t Int64
Definition MRMeshFwd.h:202
std::function< void(EdgeId e1, EdgeId e)> OnEdgeSplit
Definition MRMeshFwd.h:578
std::function< float(UndirectedEdgeId)> UndirectedEdgeMetric
Definition MRMeshFwd.h:589
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:784
constexpr bool dependent_false
Definition MRMeshFwd.h:787
Triangle3< float > Triangle3f
Definition MRMeshFwd.h:470
SurfacePaths IsoLines
Definition MRMeshFwd.h:486
constexpr auto translate_noop(const char *str) noexcept
special no-op inline functions to mark string literal as translatable
Definition MRMeshFwd.h:813
class MRMESH_CLASS EdgeTag
Definition MRMeshFwd.h:101
AffineXf< Vector3< T > > AffineXf3
Definition MRMeshFwd.h:315
std::vector< Contour< V > > Contours
Definition MRMeshFwd.h:386
Polyline2ProjectionWithOffsetResult
Definition MRMeshFwd.h:681
HashMap< EdgeId, EdgeId > EdgeHashMap
Definition MRMeshFwd.h:616
struct MRMESH_CLASS Hash
Definition MRMeshFwd.h:599
phmap::parallel_flat_hash_set< T, Hash, Eq > ParallelHashSet
Definition MRMeshFwd.h:602
MapOrHashMap< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgeMapOrHashMap
Definition MRMeshFwd.h:627
std::pair< VertId, VertId > VertPair
Definition MRMeshFwd.h:493
HashMap< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgeHashMap
Definition MRMeshFwd.h:617
Contours< Vector3< T > > Contours3
Definition MRMeshFwd.h:388
class MRMESH_CLASS RegionTag
Definition MRMeshFwd.h:107
class MRMESH_CLASS GraphVertTag
Definition MRMeshFwd.h:111
phmap::flat_hash_map< K, V, Hash, Eq > HashMap
Definition MRMeshFwd.h:610
class MRMESH_CLASS GraphEdgeTag
Definition MRMeshFwd.h:112
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:810
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
Cubic Bezier curve.
Definition MRBezier.h:16
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: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 MRIntersectionPrecomputes2.h:35
Definition MRIntersectionPrecomputes.h:117
Definition MRIteratorRange.h:13
a segment of straight dimensional line
Definition MRLineSegm.h:15
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 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
mapping among elements of source mesh, from which a part is taken, and target mesh
Definition MRPartMapping.h:13
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
determines how to save points/lines/mesh
Definition MRSaveSettings.h:20
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 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
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:790