7#include "MRPch/MRBindingMacros.h"
25 #if !defined MR_ITERATOR_DEBUG_LEVEL
26 #define MR_ITERATOR_DEBUG_LEVEL 0
29 #if !defined _ITERATOR_DEBUG_LEVEL
30 #define _ITERATOR_DEBUG_LEVEL MR_ITERATOR_DEBUG_LEVEL
32 #if _ITERATOR_DEBUG_LEVEL != MR_ITERATOR_DEBUG_LEVEL
33 #error _ITERATOR_DEBUG_LEVEL is inconsistent with MeshLib
39#define MR_CPP_STANDARD_DATE _MSVC_LANG
41#define MR_CPP_STANDARD_DATE __cplusplus
48#if MR_CPP_STANDARD_DATE < 201709 && !defined(__CUDACC__)
49#error Must enable C++20 or newer!
59#if defined(__GNUC__) && (__GNUC__ >= 13 && __GNUC__ <= 15)
60 #pragma GCC diagnostic push
61 #pragma GCC diagnostic ignored "-Warray-bounds"
62 #pragma GCC diagnostic ignored "-Wstringop-overflow"
67#if defined(__GNUC__) && (__GNUC__ >= 13 && __GNUC__ <= 15)
68 #pragma GCC diagnostic pop
73#include <parallel_hashmap/phmap_fwd_decl.h>
79# define MRMESH_API __declspec(dllexport)
81# define MRMESH_API __declspec(dllimport)
85# define MRMESH_API __attribute__((visibility("default")))
90# define MRMESH_CLASS __attribute__((type_visibility("default")))
92# define MRMESH_CLASS __attribute__((visibility("default")))
137template <>
class MR_BIND_PREFERRED_NAME(
MR::EdgeId)
Id<EdgeTag>;
138template <> class MR_BIND_PREFERRED_NAME(MR::VoxelId)
Id<VoxelTag>;
141 ( NoInitNodeId, NoInitId<NodeTag> )
162 ( FaceBitSet, TypedBitSet<FaceId> )
163 ( VertBitSet, TypedBitSet<VertId> )
164 ( EdgeBitSet, TypedBitSet<EdgeId> )
165 ( UndirectedEdgeBitSet, TypedBitSet<UndirectedEdgeId> )
166 ( PixelBitSet, TypedBitSet<PixelId> )
167 ( VoxelBitSet, TypedBitSet<VoxelId> )
168 ( RegionBitSet, TypedBitSet<RegionId> )
169 ( NodeBitSet, TypedBitSet<NodeId> )
170 ( ObjBitSet, TypedBitSet<ObjId> )
171 ( TextureBitSet, TypedBitSet<TextureId> )
172 ( GraphVertBitSet, TypedBitSet<GraphVertId> )
173 ( GraphEdgeBitSet, TypedBitSet<GraphEdgeId> )
180 ( SetBitIterator, SetBitIteratorT<BitSet> )
181 ( FaceSetBitIterator, SetBitIteratorT<FaceBitSet> )
182 ( VertSetBitIterator, SetBitIteratorT<VertBitSet> )
183 ( EdgeSetBitIterator, SetBitIteratorT<EdgeBitSet> )
184 ( UndirectedEdgeSetBitIterator, SetBitIteratorT<UndirectedEdgeBitSet> )
190 ( Vector2b, Vector2<bool> )
191 ( Vector2i, Vector2<int> )
192 ( Vector2i64, Vector2<std::int64_t> )
193 ( Vector2f, Vector2<float> )
194 ( Vector2d, Vector2<double> )
198 ( Vector3b, Vector3<bool> )
199 ( Vector3i, Vector3<int> )
200 ( Vector3i64, Vector3<std::int64_t> )
201 ( Vector3f, Vector3<float> )
202 ( Vector3d, Vector3<double> )
206 ( Vector4b, Vector4<bool> )
207 ( Vector4i, Vector4<int> )
208 ( Vector4i64, Vector4<std::int64_t> )
209 ( Vector4f, Vector4<float> )
210 ( Vector4d, Vector4<double> )
212#if !MR_PARSING_FOR_ANY_BINDINGS
213using Vector4ll [[deprecated("Use `Vector4i64` instead.")]] =
Vector4<long long>;
217 ( Matrix2b, Matrix2<bool> )
218 ( Matrix2i, Matrix2<int> )
219 ( Matrix2i64, Matrix2<std::int64_t> )
220 ( Matrix2f, Matrix2<float> )
221 ( Matrix2d, Matrix2<double> )
223#if !MR_PARSING_FOR_ANY_BINDINGS
224using Matrix2ll [[deprecated("Use `Matrix2i64` instead.")]] =
Matrix2<long long>;
228 ( Matrix3b, Matrix3<bool> )
229 ( Matrix3i, Matrix3<int> )
230 ( Matrix3i64, Matrix3<std::int64_t> )
231 ( Matrix3f, Matrix3<float> )
232 ( Matrix3d, Matrix3<double> )
234#if !MR_PARSING_FOR_ANY_BINDINGS
235using Matrix3ll [[deprecated("Use `Matrix3i64` instead.")]] =
Matrix3<long long>;
239 ( Matrix4b, Matrix4<bool> )
240 ( Matrix4i, Matrix4<int> )
241 ( Matrix4i64, Matrix4<std::int64_t> )
242 ( Matrix4f, Matrix4<float> )
243 ( Matrix4d, Matrix4<double> )
245#if !MR_PARSING_FOR_ANY_BINDINGS
246using Matrix4ll [[deprecated("Use `Matrix4i64` instead.")]] =
Matrix4<long long>;
250 ( SymMatrix2b, SymMatrix2<bool> )
251 ( SymMatrix2i, SymMatrix2<int> )
252 ( SymMatrix2i64, SymMatrix2<std::int64_t> )
253 ( SymMatrix2f, SymMatrix2<float> )
254 ( SymMatrix2d, SymMatrix2<double> )
256#if !MR_PARSING_FOR_ANY_BINDINGS
257using SymMatrix2ll [[deprecated("Use `SymMatrix2i64` instead.")]] =
SymMatrix2<long long>;
261 ( SymMatrix3b, SymMatrix3<bool> )
262 ( SymMatrix3i, SymMatrix3<int> )
263 ( SymMatrix3i64, SymMatrix3<std::int64_t> )
264 ( SymMatrix3f, SymMatrix3<float> )
265 ( SymMatrix3d, SymMatrix3<double> )
267#if !MR_PARSING_FOR_ANY_BINDINGS
268using SymMatrix3ll [[deprecated("Use `SymMatrix3i64` instead.")]] =
SymMatrix3<long long>;
272 ( SymMatrix4b, SymMatrix4<bool> )
273 ( SymMatrix4i, SymMatrix4<int> )
274 ( SymMatrix4i64, SymMatrix4<std::int64_t> )
275 ( SymMatrix4f, SymMatrix4<float> )
276 ( SymMatrix4d, SymMatrix4<double> )
278#if !MR_PARSING_FOR_ANY_BINDINGS
279using SymMatrix4ll [[deprecated("Use `SymMatrix4i64` instead.")]] =
SymMatrix4<long long>;
284 template <
typename T>
286 template <
template <
typename>
typename T,
typename U>
289 template <
typename T>
290 static constexpr bool IsValidTemplateArg = std::is_floating_point_v<typename VectorElemType<T>::type>;
302namespace
detail::AffineXf3f
339template <typename T> using Line2 =
Line<
Vector2<T>>;
368 ( Cone3d,
Cone3<
double> )
372template <typename V> using
Contour = std::vector<V>;
392 ( Plane3d,
Plane3<
double> )
397 ( Box1i64,
Box<std::int64_t> )
398 ( Box1f,
Box<
float> )
399 ( Box1d,
Box<
double> )
409#if !MR_PARSING_FOR_ANY_BINDINGS
410using Box1ll [[deprecated(
"Use `Box1i64` instead.")]] =
Box<long long>;
424template<
typename T,
typename I>
struct MinArg;
425template<
typename T,
typename I>
struct MaxArg;
426template<
typename T,
typename I>
struct MinMaxArg;
464template <typename T> using Triangle3 = std::array<
Vector3<T>, 3>;
538 ( FaceMap,
Vector<FaceId, FaceId> )
539 ( VertMap,
Vector<VertId, VertId> )
540 ( EdgeMap,
Vector<EdgeId, EdgeId> )
541 ( UndirectedEdgeMap,
Vector<UndirectedEdgeId, UndirectedEdgeId> )
542 ( ObjMap,
Vector<ObjId, ObjId> )
545 ( WholeEdgeMap,
Vector<EdgeId, UndirectedEdgeId> )
546 ( UndirectedEdge2RegionMap,
Vector<RegionId, UndirectedEdgeId> )
547 ( Face2RegionMap,
Vector<RegionId, FaceId> )
548 ( Vert2RegionMap,
Vector<RegionId, VertId> )
550 ( VertCoords,
Vector<Vector3f, VertId> )
551 ( VertCoords2,
Vector<Vector2f, VertId> )
552 ( VertNormals,
Vector<Vector3f, VertId> )
554 ( FaceNormals,
Vector<Vector3f, FaceId> )
556 ( TexturePerFace,
Vector<TextureId, FaceId> )
560 ( UndirectedEdgeColors,
Vector<
Color, UndirectedEdgeId> )
562 ( VertScalars,
Vector<
float, VertId> )
563 ( FaceScalars,
Vector<
float, FaceId> )
564 ( EdgeScalars,
Vector<
float, EdgeId> )
565 ( UndirectedEdgeScalars,
Vector<
float, UndirectedEdgeId> )
568using VertPredicate = std::function<
bool( VertId )>;
577[[nodiscard]] inline
bool contains( const std::function<
bool(
Id<T> )> & pred,
Id<T>
id )
579 return id.valid() && ( !pred || pred(
id ) );
595template <typename T, typename
Hash = phmap::priv::hash_default_hash<T>, typename
Eq = phmap::priv::hash_default_eq<T>>
596using HashSet = phmap::flat_hash_set<T,
Hash,
Eq>;
597template <typename T, typename
Hash = phmap::priv::hash_default_hash<T>, typename
Eq = phmap::priv::hash_default_eq<T>>
605template <typename K, typename V, typename
Hash = phmap::priv::hash_default_hash<K>, typename
Eq = phmap::priv::hash_default_eq<K>>
607template <typename K, typename V, typename
Hash = phmap::priv::hash_default_hash<K>, typename
Eq = phmap::priv::hash_default_eq<K>>
617template <typename K, typename V>
628template <typename T, typename
I, typename P> class
Heap;
754namespace ObjectSave {
struct Settings; }
769constexpr inline auto sqr( T x )
noexcept ->
decltype( x * x ) {
return x * x; }
773constexpr inline int sgn( T x )
noexcept {
return x > 0 ? 1 : ( x < 0 ? -1 : 0 ); }
777constexpr inline T
distance( T x, T y )
noexcept {
return x >= y ? x - y : y - x; }
782constexpr inline auto distanceSq( T x, T y )
noexcept ->
decltype( ( x - y ) * ( x - y ) ) {
return sqr( x - y ); }
785template <
typename V,
typename T>
786constexpr inline auto lerp( V v0, V v1, T t )
noexcept {
return ( 1 - t ) * v0 + t * v1; }
807struct VertDuplication;
816constexpr inline auto translate_noop(
const char* ctx,
const char* str )
noexcept { (void)ctx;
return str; }
817constexpr inline auto translate_noop(
const char* single,
const char* plural, std::int64_t n )
noexcept {
return n == 1 ? single : plural; }
818constexpr inline auto translate_noop(
const char* ctx,
const char* single,
const char* plural, std::int64_t n )
noexcept { (void)ctx;
return n == 1 ? single : plural; }
824#ifdef __cpp_lib_unreachable
825# define MR_UNREACHABLE std::unreachable();
826# define MR_UNREACHABLE_NO_RETURN std::unreachable();
829# define MR_UNREACHABLE __builtin_unreachable();
830# define MR_UNREACHABLE_NO_RETURN __builtin_unreachable();
833# define MR_UNREACHABLE { assert( false ); return {}; }
834# define MR_UNREACHABLE_NO_RETURN assert( false );
838#ifndef MR_NO_I18N_MACROS
839#define _t( ... ) MR::Locale::translate_noop( __VA_ARGS__ )
#define MR_CANONICAL_TYPEDEFS(type_, name_, aliases_)
Definition MRCanonicalTypedefs.h:23
#define MR_REQUIRES_IF_SUPPORTED(...)
Definition MRMacros.h:33
#define MRMESH_CLASS
Definition MRMeshFwd.h:92
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:54
accumulates a number of (x,y) points to find the best-least-squares parabola approximating them
Definition MRBestFitParabola.h:15
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:17
Undo action for ObjectMesh creases.
Definition MRChangeSelectionAction.h:123
Undo action for ObjectMeshData change.
Definition MRChangeMeshDataAction.h:15
Undo action for ObjectMesh edge selection.
Definition MRChangeSelectionAction.h:69
Undo action for ObjectMesh face selection.
Definition MRChangeSelectionAction.h:15
Undo action for ObjectMesh points only (not topology) change.
Definition MRChangeMeshAction.h:191
Undo action for ObjectMesh topology only (not points) change.
Definition MRChangeMeshAction.h:255
Definition MRChangeObjectAction.h:17
Undo action for ObjectPoints point selection.
Definition MRChangeSelectionAction.h:177
Definition MRChangeSceneAction.h:16
Definition MRChangeXfAction.h:16
Definition MRCircleObject.h:17
Class for aggregate several color map in one Color maps are aggregated according order.
Definition MRColorMapAggregator.h:20
Definition MRCombinedHistoryAction.h:16
Base class for cone parameterization.
Definition MRCone3.h:14
Definition MRConeObject.h:22
Definition MRCylinder3.h:15
Definition MRCylinderObject.h:21
Definition MRDistanceMap.h:24
the class stores some number of smallest elements from a larger number of candidates
Definition MRFewSmallest.h:17
mathematical graph consisting from vertices and undirected edges
Definition MRGraph.h:17
stores map from element id in[0, size) to T;
Definition MRHeap.h:23
Definition MRHistoryAction.h:15
Abstract class for fast approximate computation of generalized winding number for a mesh (using its A...
Definition MRFastWindingNumber.h:15
abstract class for computing the closest points of point clouds
Definition MRPointsProject.h:93
Abstract class, computes the closest point on mesh to each of given points. Pure virtual functions mu...
Definition MRPointsToMeshProjector.h:16
Definition MRIRenderObject.h:141
stores index of some element, it is made as template class to avoid mixing faces, edges and vertices
Definition MRId.h:20
Definition MRLaplacian.h:24
Definition MRLineObject.h:16
Definition MRMeshOrPoints.h:21
Definition MRMeshTopology.h:30
Definition MRObjectDistanceMap.h:17
Definition MRObjectGcode.h:18
Definition MRObjectLabel.h:30
Definition MRObjectLinesHolder.h:32
Definition MRObjectLines.h:14
Definition MRObjectMeshHolder.h:37
Definition MRObjectMesh.h:14
Definition MRObjectPointsHolder.h:26
Definition MRObjectPoints.h:14
named object in the data model
Definition MRObject.h:61
Undo action for efficiently storage of partial change in mesh (e.g. a modification of small region)
Definition MRPartialChangeMeshAction.h:26
Undo action for efficiently storage of partial change in mesh points (e.g. a modification of small re...
Definition MRPartialChangeMeshAction.h:86
Undo action for efficiently storage of partial change in mesh topology (e.g. a modification of small ...
Definition MRPartialChangeMeshAction.h:152
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 disjoint sets of elements with few very quick operations: ...
Definition MRUnionFind.h:152
Definition MRUniqueThreadSafeOwner.h:18
std::vector<T>-like container that requires specific indexing type,
Definition MRVector.h:23
Definition MRVersatileChangeMeshAction.h:14
Definition MRViewportId.h:16
stores mask of viewport unique identifiers
Definition MRViewportId.h:42
Definition MRViewportProperty.h:17
Visual Object.
Definition MRVisualObject.h:116
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:759
CubicBezierCurve< Vector2< T > > CubicBezierCurve2
Definition MRMeshFwd.h:446
std::function< float(VertId)> VertMetric
Definition MRMeshFwd.h:582
phmap::parallel_flat_hash_map< K, V, Hash, Eq > ParallelHashMap
Definition MRMeshFwd.h:608
std::vector< EdgeId > EdgeLoop
Definition MRMeshFwd.h:156
std::vector< std::string > GcodeSource
Definition MRMeshFwd.h:685
RigidXf3f
Definition MRMeshFwd.h:312
WrapType
Definition MREnums.h:18
LineSegm2f
Definition MRMeshFwd.h:343
struct
Definition MRMeshFwd.h:189
Contour
Definition MRObjectLabel.h:21
std::array< VertId, 2 > TwoVertIds
two vertex ids describing an edge with the ends in vertices given by their ids
Definition MRMeshFwd.h:516
std::vector< SurfacePath > SurfacePaths
Definition MRMeshFwd.h:480
std::vector< EdgeLoop > EdgeLoops
Definition MRMeshFwd.h:157
Contour3< float > Contour3f
Definition MRMeshFwd.h:378
class MRMESH_CLASS UndirectedEdgeTag
Definition MRMeshFwd.h:107
Cylinder3f
Definition MRMeshFwd.h:362
AABBTreePolyline2
Definition MRMeshFwd.h:664
LineSegm< Vector3< T > > LineSegm3
Definition MRMeshFwd.h:349
MapOrHashMap< FaceId, FaceId > FaceMapOrHashMap
Definition MRMeshFwd.h:620
class MRMESH_CLASS ObjTag
Definition MRMeshFwd.h:114
CubicBezierCurve< Vector3< T > > CubicBezierCurve3
Definition MRMeshFwd.h:447
Box< T > MinMax
Definition MRMeshFwd.h:415
Edges
Definition MRObjectMeshHolder.h:21
constexpr auto sqr(T x) noexcept -> decltype(x *x)
squared value; the result type is the type of x*x, which is int for small integer types (char,...
Definition MRMeshFwd.h:769
std::function< bool(FaceId)> FacePredicate
Definition MRMeshFwd.h:569
MinMax< float > MinMaxf
Definition MRMeshFwd.h:416
Contour2< double > Contour2d
Definition MRMeshFwd.h:375
struct MRMESH_CLASS Eq
Definition MRMeshFwd.h:595
class MRMESH_CLASS NodeTag
Definition MRMeshFwd.h:113
Box< Vector3< T > > Box3
Definition MRMeshFwd.h:422
HashSet< VertId > VertHashSet
Definition MRMeshFwd.h:602
TriPointf
Definition MRMeshFwd.h:495
std::function< bool(EdgeId)> EdgePredicate
Definition MRMeshFwd.h:570
typename detail::AffineXf3f::TypeOrPlaceholder< Vector2< T > >::type AffineXf2OrPlaceholder
Definition MRMeshFwd.h:308
Contour2< float > Contour2f
Definition MRMeshFwd.h:376
std::array< UVCoord, 3 > ThreeUVCoords
three UV-coordinates describing texturing of a triangle
Definition MRMeshFwd.h:522
Contours2< double > Contours2d
Definition MRMeshFwd.h:385
Contours3< float > Contours3f
Definition MRMeshFwd.h:388
std::function< bool(UndirectedEdgeId)> UndirectedEdgePredicate
Definition MRMeshFwd.h:571
Ball< Vector2< T > > Ball2
Definition MRMeshFwd.h:437
MapOrHashMap< VertId, VertId > VertMapOrHashMap
Definition MRMeshFwd.h:621
Contours3< double > Contours3d
Definition MRMeshFwd.h:387
SurfacePaths PlaneSections
Definition MRMeshFwd.h:484
MapOrHashMap< EdgeId, EdgeId > EdgeMapOrHashMap
Definition MRMeshFwd.h:622
HashMap< VertId, VertId > VertHashMap
Definition MRMeshFwd.h:611
QuadraticForm2f
Definition MRMeshFwd.h:450
QuadraticForm< Vector3< T > > QuadraticForm3
Definition MRMeshFwd.h:456
class MRMESH_CLASS VoxelTag
Definition MRMeshFwd.h:111
Ball< T > Ball1
Definition MRMeshFwd.h:436
FilterType
Definition MREnums.h:12
Plane3f
Definition MRMeshFwd.h:391
SurfacePath IsoLine
Definition MRMeshFwd.h:481
Vector2f UVCoord
Definition MRMeshFwd.h:513
Triangle3< int > Triangle3i
Definition MRMeshFwd.h:465
Ball< Vector3< T > > Ball3
Definition MRMeshFwd.h:438
Sphere< Vector3< T > > Sphere3
Definition MRMeshFwd.h:331
std::vector< MeshEdgePoint > SurfacePath
Definition MRMeshFwd.h:479
HashMap< UndirectedEdgeId, EdgeId > WholeEdgeHashMap
mapping of whole edges: map[e]->f, map[e.sym()]->f.sym(), where only map[e] for even edges is stored
Definition MRMeshFwd.h:615
class MRMESH_CLASS FaceTag
Definition MRMeshFwd.h:108
class MRMESH_CLASS TextureTag
Definition MRMeshFwd.h:115
class MRMESH_CLASS I
Definition MRMeshFwd.h:144
class MRMESH_CLASS PixelTag
Definition MRMeshFwd.h:110
Line< Vector3< T > > Line3
Definition MRMeshFwd.h:340
Contours< Vector2< T > > Contours2
Definition MRMeshFwd.h:383
overloaded(Ts...) -> overloaded< Ts... >
explicit deduction guide (not needed as of C++20, but still needed in Clang)
U type
Definition MRMeshFwd.h:287
constexpr int sgn(T x) noexcept
sign of given value in { -1, 0, 1 }
Definition MRMeshFwd.h:773
Contours2< float > Contours2f
Definition MRMeshFwd.h:386
RigidScaleXf3f
Definition MRMeshFwd.h:317
std::function< float(EdgeId)> EdgeMetric
Definition MRMeshFwd.h:584
MinMax< double > MinMaxd
Definition MRMeshFwd.h:417
Box< Vector2< T > > Box2
Definition MRMeshFwd.h:421
std::function< bool(EdgeId edgeToCollapse, const Vector3f &newEdgeOrgPos)> PreCollapseCallback
Definition MRMeshFwd.h:573
MinMax< int > MinMaxi
Definition MRMeshFwd.h:418
EdgePoint MeshEdgePoint
Definition MRMeshFwd.h:478
Box< T > Box1
Definition MRMeshFwd.h:420
Contour< Vector2< T > > Contour2
Definition MRMeshFwd.h:373
Contour3< double > Contour3d
Definition MRMeshFwd.h:377
TypedBitSet< Id< T > > TaggedBitSet
Definition MRMeshFwd.h:177
SurfacePath PlaneSection
Definition MRMeshFwd.h:483
HashMap< FaceId, FaceId > FaceHashMap
Definition MRMeshFwd.h:610
std::function< float(FaceId)> FaceMetric
Definition MRMeshFwd.h:583
class MRMESH_CLASS LocaleDomainTag
Definition MRMeshFwd.h:118
MapOrHashMap< UndirectedEdgeId, EdgeId > WholeEdgeMapOrHashMap
mapping of whole edges: map[e]->f, map[e.sym()]->f.sym(), where only map[e] for even edges is stored
Definition MRMeshFwd.h:625
Polyline2
Definition MRMeshFwd.h:659
Triangle3< double > Triangle3d
Definition MRMeshFwd.h:467
Box1i
Definition MRMeshFwd.h:396
Contour< Vector3< T > > Contour3
Definition MRMeshFwd.h:374
HashSet< FaceId > FaceHashSet
No canonical typedefs because phmap::... is not under our control.
Definition MRMeshFwd.h:601
std::vector< EdgeId > EdgePath
Definition MRMeshFwd.h:155
std::array< VertId, 3 > ThreeVertIds
three vertex ids describing a triangle with the corners in vertices given by their ids
Definition MRMeshFwd.h:519
class MRMESH_CLASS VertTag
Definition MRMeshFwd.h:109
std::pair< FaceId, FaceId > FacePair
Definition MRMeshFwd.h:490
constexpr NoInit noInit
Definition MRMeshFwd.h:103
HashSet< EdgeId > EdgeHashSet
Definition MRMeshFwd.h:603
std::pair< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgePair
Definition MRMeshFwd.h:492
Cone3f
Definition MRMeshFwd.h:367
BestFitParabolaf
Definition MRMeshFwd.h:357
Quaternionf
Definition MRMeshFwd.h:459
std::pair< EdgeId, EdgeId > EdgePair
Definition MRMeshFwd.h:491
AffineXf
Definition MRMeshFwd.h:293
std::function< void(EdgeId e1, EdgeId e)> OnEdgeSplit
Definition MRMeshFwd.h:574
std::function< float(UndirectedEdgeId)> UndirectedEdgeMetric
Definition MRMeshFwd.h:585
AffineXf2f
Definition MRMeshFwd.h:294
Line2f
Definition MRMeshFwd.h:334
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:786
constexpr bool dependent_false
Definition MRMeshFwd.h:789
Triangle3< float > Triangle3f
Definition MRMeshFwd.h:466
SurfacePaths IsoLines
Definition MRMeshFwd.h:482
constexpr auto translate_noop(const char *str) noexcept
special no-op inline functions to mark string literal as translatable
Definition MRMeshFwd.h:815
class MRMESH_CLASS EdgeTag
Definition MRMeshFwd.h:106
AffineXf< Vector3< T > > AffineXf3
Definition MRMeshFwd.h:300
std::vector< Contour< V > > Contours
Definition MRMeshFwd.h:382
Polyline2ProjectionWithOffsetResult
Definition MRMeshFwd.h:677
HashMap< EdgeId, EdgeId > EdgeHashMap
Definition MRMeshFwd.h:612
struct MRMESH_CLASS Hash
Definition MRMeshFwd.h:595
std::nullptr_t type
Definition MRMeshFwd.h:304
phmap::parallel_flat_hash_set< T, Hash, Eq > ParallelHashSet
Definition MRMeshFwd.h:598
SegmPointf
Definition MRMeshFwd.h:472
Parabolaf
Definition MRMeshFwd.h:352
MapOrHashMap< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgeMapOrHashMap
Definition MRMeshFwd.h:623
std::pair< VertId, VertId > VertPair
Definition MRMeshFwd.h:489
typename detail::AffineXf3f::TypeOrPlaceholder< Vector3< T > >::type AffineXf3OrPlaceholder
Definition MRMeshFwd.h:309
HashMap< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgeHashMap
Definition MRMeshFwd.h:613
Contours< Vector3< T > > Contours3
Definition MRMeshFwd.h:384
class MRMESH_CLASS RegionTag
Definition MRMeshFwd.h:112
Sphere2f
Definition MRMeshFwd.h:325
class MRMESH_CLASS GraphVertTag
Definition MRMeshFwd.h:116
phmap::flat_hash_map< K, V, Hash, Eq > HashMap
Definition MRMeshFwd.h:606
class MRMESH_CLASS GraphEdgeTag
Definition MRMeshFwd.h:117
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:812
Building topologies by triangles.
Definition MRIdentifyVertices.h:16
Definition MRIOFormatsRegistry.h:361
Definition MRMeshFwd.h:283
Definition MRFastInt.h:19
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
triangulations for all points, with easy access by VertId
Definition MRLocalTriangulations.h:51
flat map: I -> T
Definition MRBuffer.h:136
a ball = points surrounded by a sphere in arbitrary space with vector type V
Definition MRBall.h:15
Common rendering parameters for meshes and UI.
Definition MRIRenderObject.h:36
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:27
Definition MRSurfacePath.h:20
settings defining regular grid, where each quadrangular cell is split on two triangles in one of two ...
Definition MRGridSettings.h:14
Definition MRIntersectionPrecomputes2.h:35
Definition MRIntersectionPrecomputes.h:121
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 MRMarkedContour.h:14
Definition MRMatrix2.h:24
Definition MRMatrix3.h:24
Definition MRMatrix4.h:25
Definition MRMinMaxArg.h:49
Definition MRMeshIntersect.h:18
an object and its transformation to global space with other objects
Definition MRMeshOrPoints.h:109
Definition MRMeshProject.h:18
Definition MRMeshPart.h:15
Definition MRMeshTexture.h:13
Definition MRMeshTriPoint.h:26
Definition MRMinMaxArg.h:16
Definition MRMinMaxArg.h:82
Definition MRIRenderObject.h:46
Mesh rendering parameters for primary rendering (as opposed to the picker).
Definition MRIRenderObject.h:54
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:102
mesh and its per-element attributes for ObjectMeshHolder
Definition MRObjectMeshData.h:17
Definition MRBuffer.h:144
Represents quadratic function f(x) = a*x*x + b*x + c.
Definition MRParabola.h:14
mapping among elements of source mesh, from which a part is taken, and target mesh
Definition MRPartMapping.h:13
represents full point cloud (if region is nullptr) or some portion of point cloud (if region pointer ...
Definition MRPointCloudPart.h:13
Definition MRPointCloud.h:17
a point located on some mesh's face
Definition MRPointOnFace.h:16
Definition MRPointOnObject.h:21
Definition MRPointsProject.h:15
Definition MRPolylineProject.h:15
Definition MRPolylineProject.h:73
Definition MRPolyline.h:18
Definition MRQuaternion.h:16
Definition MRRigidScaleXf3.h:15
Definition MRRigidXf3.h:16
determines how to save points/lines/mesh
Definition MRSaveSettings.h:20
encodes a point inside a line segment using relative distance in [0,1]
Definition MRSegmPoint.h:17
options determining computation of signed distance from a point to a mesh
Definition MRDistanceToMeshOptions.h:40
describes a number of local triangulations of some points (e.g. assigned to a thread)
Definition MRLocalTriangulations.h:43
Definition MRSymMatrix2.h:17
Definition MRSymMatrix3.h:18
Definition MRSymMatrix4.h:16
Definition MRTbbTaskArenaAndGroup.h:16
struct to determine transparent rendering mode
Definition MRRenderModelParameters.h:13
Definition MRTriMesh.h:16
encodes a point inside a triangle using barycentric coordinates
Definition MRTriPoint.h:19
Definition MRIRenderObject.h:110
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:304
Definition MRMeshFwd.h:285
Definition MRMeshFwd.h:792