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")))
131 ( NoInitNodeId, NoInitId<NodeTag> )
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> )
169 ( SetBitIterator, SetBitIteratorT<BitSet> )
170 ( FaceSetBitIterator, SetBitIteratorT<FaceBitSet> )
171 ( VertSetBitIterator, SetBitIteratorT<VertBitSet> )
172 ( EdgeSetBitIterator, SetBitIteratorT<EdgeBitSet> )
173 ( UndirectedEdgeSetBitIterator, SetBitIteratorT<UndirectedEdgeBitSet> )
192using
Int64 = std::ptrdiff_t;
193using
Uint64 = std::size_t;
194static_assert(sizeof(Int64) == 8);
195static_assert(sizeof(Uint64) == 8);
202 ( Vector2b, Vector2<bool> )
203 ( Vector2i, Vector2<int> )
204 ( Vector2i64, Vector2<Int64> )
205 ( Vector2f, Vector2<float> )
206 ( Vector2d, Vector2<double> )
211#if !MR_PARSING_FOR_ANY_BINDINGS
212using Vector2ll [[deprecated("Use `Vector2i64` instead.")]] =
Vector2<long long>;
216 ( Vector3b, Vector3<bool> )
217 ( Vector3i, Vector3<int> )
218 ( Vector3i64, Vector3<Int64> )
219 ( Vector3f, Vector3<float> )
220 ( Vector3d, Vector3<double> )
222#if !MR_PARSING_FOR_ANY_BINDINGS
223using Vector3ll [[deprecated("Use `Vector3i64` instead.")]] =
Vector3<long long>;
227 ( Vector4b, Vector4<bool> )
228 ( Vector4i, Vector4<int> )
229 ( Vector4i64, Vector4<Int64> )
230 ( Vector4f, Vector4<float> )
231 ( Vector4d, Vector4<double> )
233#if !MR_PARSING_FOR_ANY_BINDINGS
234using Vector4ll [[deprecated("Use `Vector4i64` instead.")]] =
Vector4<long long>;
238 ( Matrix2b, Matrix2<bool> )
239 ( Matrix2i, Matrix2<int> )
240 ( Matrix2i64, Matrix2<Int64> )
241 ( Matrix2f, Matrix2<float> )
242 ( Matrix2d, Matrix2<double> )
244#if !MR_PARSING_FOR_ANY_BINDINGS
245using Matrix2ll [[deprecated("Use `Matrix2i64` instead.")]] =
Matrix2<long long>;
249 ( Matrix3b, Matrix3<bool> )
250 ( Matrix3i, Matrix3<int> )
251 ( Matrix3i64, Matrix3<Int64> )
252 ( Matrix3f, Matrix3<float> )
253 ( Matrix3d, Matrix3<double> )
255#if !MR_PARSING_FOR_ANY_BINDINGS
256using Matrix3ll [[deprecated("Use `Matrix3i64` instead.")]] =
Matrix3<long long>;
260 ( Matrix4b, Matrix4<bool> )
261 ( Matrix4i, Matrix4<int> )
262 ( Matrix4i64, Matrix4<Int64> )
263 ( Matrix4f, Matrix4<float> )
264 ( Matrix4d, Matrix4<double> )
266#if !MR_PARSING_FOR_ANY_BINDINGS
267using Matrix4ll [[deprecated("Use `Matrix4i64` instead.")]] =
Matrix4<long long>;
271 ( SymMatrix2b, SymMatrix2<bool> )
272 ( SymMatrix2i, SymMatrix2<int> )
273 ( SymMatrix2i64, SymMatrix2<Int64> )
274 ( SymMatrix2f, SymMatrix2<float> )
275 ( SymMatrix2d, SymMatrix2<double> )
277#if !MR_PARSING_FOR_ANY_BINDINGS
278using SymMatrix2ll [[deprecated("Use `SymMatrix2i64` instead.")]] =
SymMatrix2<long long>;
282 ( SymMatrix3b, SymMatrix3<bool> )
283 ( SymMatrix3i, SymMatrix3<int> )
284 ( SymMatrix3i64, SymMatrix3<Int64> )
285 ( SymMatrix3f, SymMatrix3<float> )
286 ( SymMatrix3d, SymMatrix3<double> )
288#if !MR_PARSING_FOR_ANY_BINDINGS
289using SymMatrix3ll [[deprecated("Use `SymMatrix3i64` instead.")]] =
SymMatrix3<long long>;
293 ( SymMatrix4b, SymMatrix4<bool> )
294 ( SymMatrix4i, SymMatrix4<int> )
295 ( SymMatrix4i64, SymMatrix4<Int64> )
296 ( SymMatrix4f, SymMatrix4<float> )
297 ( SymMatrix4d, SymMatrix4<double> )
299#if !MR_PARSING_FOR_ANY_BINDINGS
300using SymMatrix4ll [[deprecated("Use `SymMatrix4i64` instead.")]] =
SymMatrix4<long long>;
304 ( AffineXf2f, AffineXf<Vector2<float>> )
305 ( AffineXf2d, AffineXf<Vector2<double>> )
306 ( AffineXf3f, AffineXf<Vector3<float>> )
307 ( AffineXf3d, AffineXf<Vector3<double>> )
309template <typename T> using AffineXf2 =
AffineXf<Vector2<T>>;
313 ( RigidXf3f, RigidXf3<float> )
314 ( RigidXf3d, RigidXf3<double> )
318 ( RigidScaleXf3f, RigidScaleXf3<float> )
319 ( RigidScaleXf3d, RigidScaleXf3<double> )
326 ( Sphere2f, Sphere<Vector2<float>> )
327 ( Sphere2d, Sphere<Vector2<double>> )
328 ( Sphere3f, Sphere<Vector3<float>> )
329 ( Sphere3d, Sphere<Vector3<double>> )
331template <typename T> using Sphere2 =
Sphere<Vector2<T>>;
335 ( Line2f, Line<Vector2<float>> )
336 ( Line2d, Line<Vector2<double>> )
337 ( Line3f, Line<Vector3<float>> )
338 ( Line3d, Line<Vector3<double>> )
340template <typename T> using Line2 =
Line<Vector2<T>>;
344 ( LineSegm2f, LineSegm<Vector2<float>> )
345 ( LineSegm2d, LineSegm<Vector2<double>> )
346 ( LineSegm3f, LineSegm<Vector3<float>> )
347 ( LineSegm3d, LineSegm<Vector3<double>> )
349template <typename T> using LineSegm2 =
LineSegm<Vector2<T>>;
353 ( Parabolaf, Parabola<float> )
354 ( Parabolad, Parabola<double> )
358 ( BestFitParabolaf, BestFitParabola<float> )
359 ( BestFitParabolad, BestFitParabola<double> )
363 ( Cylinder3f, Cylinder3<float> )
364 ( Cylinder3d, Cylinder3<double> )
368 ( Cone3f, Cone3<float> )
369 ( Cone3d, Cone3<double> )
373template <typename V> using
Contour = std::vector<V>;
381template <typename V> using
Contours = std::vector<Contour<V>>;
390 ( Plane3f, Plane3<float> )
391 ( Plane3d, Plane3<double> )
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>> )
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>>;
420template <typename T> using
Box2 =
Box<Vector2<T>>;
421template <typename T> using
Box3 =
Box<Vector3<T>>;
423template<typename T, typename I> struct
MinArg;
424template<typename T, typename I> struct
MaxArg;
425template<typename T, typename I> struct
MinMaxArg;
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>> )
435template <typename T> using Ball1 =
Ball<T>;
440 ( CubicBezierCurve2f, CubicBezierCurve<Vector2<float>> )
441 ( CubicBezierCurve2d, CubicBezierCurve<Vector2<double>> )
442 ( CubicBezierCurve3f, CubicBezierCurve<Vector3<float>> )
443 ( CubicBezierCurve3d, CubicBezierCurve<Vector3<double>> )
445template <typename T> using CubicBezierCurve2 =
CubicBezierCurve<Vector2<T>>;
449 ( QuadraticForm2f, QuadraticForm<Vector2<float>> )
450 ( QuadraticForm2d, QuadraticForm<Vector2<double>> )
451 ( QuadraticForm3f, QuadraticForm<Vector3<float>> )
452 ( QuadraticForm3d, QuadraticForm<Vector3<double>> )
454template <typename T> using QuadraticForm2 =
QuadraticForm<Vector2<T>>;
458 ( Quaternionf, Quaternion<float> )
459 ( Quaterniond, Quaternion<double> )
463template <typename T> using Triangle3 = std::array<Vector3<T>, 3>;
471 ( SegmPointf, SegmPoint<float> )
472 ( SegmPointd, SegmPoint<double> )
493 ( TriPointf, TriPoint<float> )
494 ( TriPointd, TriPoint<double> )
524 ( Edges, Vector<TwoVertIds, UndirectedEdgeId> )
527 ( Triangulation, Vector<ThreeVertIds, FaceId> )
530 ( TriCornerUVCoords, Vector<ThreeUVCoords, FaceId> )
532 ( Dipoles, Vector<Dipole, NodeId> )
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> )
541 ( WholeEdgeMap, Vector<EdgeId, UndirectedEdgeId> )
542 ( UndirectedEdge2RegionMap, Vector<RegionId, UndirectedEdgeId> )
543 ( Face2RegionMap, Vector<RegionId, FaceId> )
544 ( Vert2RegionMap, Vector<RegionId, VertId> )
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> )
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> )
558 ( VertScalars, Vector<float, VertId> )
559 ( FaceScalars, Vector<float, FaceId> )
560 ( EdgeScalars, Vector<float, EdgeId> )
561 ( UndirectedEdgeScalars, Vector<float, UndirectedEdgeId> )
564using VertPredicate = std::function<bool( VertId )>;
573[[nodiscard]] inline bool
contains( const std::function<bool( Id<T> )> & pred, Id<T> id )
575 return id.valid() && ( !pred || pred(
id ) );
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>>
601template <typename K, typename V, typename
Hash = phmap::priv::hash_default_hash<K>, typename
Eq = phmap::priv::hash_default_eq<K>>
603template <typename K, typename V, typename
Hash = phmap::priv::hash_default_hash<K>, typename
Eq = phmap::priv::hash_default_eq<K>>
613template <typename K, typename V>
624template <typename T, typename
I, typename P> class
Heap;
737namespace ObjectSave {
struct Settings; }
752constexpr inline T
sqr( T x )
noexcept {
return x * x; }
756constexpr inline int sgn( T x )
noexcept {
return x > 0 ? 1 : ( x < 0 ? -1 : 0 ); }
760constexpr inline T
distance( T x, T y )
noexcept {
return x >= y ? x - y : y - x; }
767template <
typename V,
typename T>
768constexpr inline auto lerp( V v0, V v1, T t )
noexcept {
return ( 1 - t ) * v0 + t * v1; }
789struct VertDuplication;
795#ifdef __cpp_lib_unreachable
796# define MR_UNREACHABLE std::unreachable();
797# define MR_UNREACHABLE_NO_RETURN std::unreachable();
800# define MR_UNREACHABLE __builtin_unreachable();
801# define MR_UNREACHABLE_NO_RETURN __builtin_unreachable();
804# define MR_UNREACHABLE { assert( false ); return {}; }
805# define MR_UNREACHABLE_NO_RETURN assert( false );
#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 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 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
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 MRMeshFwd.h:663
Definition MRMeshFwd.h:503
Definition MRMeshFwd.h:505
Definition MRLineSegm.h:11
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
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 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