6#include "MRMesh/MRCanonicalTypedefs.h"
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")))
120MR_CANONICAL_TYPEDEFS( (template <typename T>
class MRMESH_CLASS),
Id,
137template <>
class MR_BIND_PREFERRED_NAME(
MR::EdgeId)
Id<EdgeTag>;
138template <> class MR_BIND_PREFERRED_NAME(MR::VoxelId)
Id<VoxelTag>;
140MR_CANONICAL_TYPEDEFS( (template <typename T> class MRMESH_CLASS), NoInitId,
141 ( NoInitNodeId, NoInitId<NodeTag> )
161MR_CANONICAL_TYPEDEFS( (template <typename I> class MRMESH_CLASS), TypedBitSet,
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> )
179MR_CANONICAL_TYPEDEFS( (template <typename T> class MRMESH_CLASS), SetBitIteratorT,
180 ( SetBitIterator, SetBitIteratorT<BitSet> )
181 ( FaceSetBitIterator, SetBitIteratorT<FaceBitSet> )
182 ( VertSetBitIterator, SetBitIteratorT<VertBitSet> )
183 ( EdgeSetBitIterator, SetBitIteratorT<EdgeBitSet> )
184 ( UndirectedEdgeSetBitIterator, SetBitIteratorT<UndirectedEdgeBitSet> )
189MR_CANONICAL_TYPEDEFS( (template <typename T> struct), MRMESH_CLASS Vector2,
190 ( Vector2b, Vector2<bool> )
191 ( Vector2i, Vector2<int> )
192 ( Vector2i64, Vector2<std::int64_t> )
193 ( Vector2f, Vector2<float> )
194 ( Vector2d, Vector2<double> )
197MR_CANONICAL_TYPEDEFS( (template <typename T> struct), MRMESH_CLASS Vector3,
198 ( Vector3b, Vector3<bool> )
199 ( Vector3i, Vector3<int> )
200 ( Vector3i64, Vector3<std::int64_t> )
201 ( Vector3f, Vector3<float> )
202 ( Vector3d, Vector3<double> )
205MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Vector4,
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>;
216MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Matrix2,
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>;
227MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Matrix3,
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>;
238MR_CANONICAL_TYPEDEFS( (template <typename T> struct), Matrix4,
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>;
249MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SymMatrix2,
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>;
260MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SymMatrix3,
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>;
271MR_CANONICAL_TYPEDEFS( (template <typename T> struct), SymMatrix4,
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
311MR_CANONICAL_TYPEDEFS( (template <typename T>
struct),
RigidXf3,
339template <typename T> using Line2 =
Line<
Vector2<T>>;
361MR_CANONICAL_TYPEDEFS( (template <typename T> class),
Cylinder3,
366MR_CANONICAL_TYPEDEFS( (template <typename T> class),
Cone3,
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;
436template <typename T> using Ball1 =
Ball<T>;
464template <typename T> using Triangle3 = std::array<
Vector3<T>, 3>;
560 ( FaceMap,
Vector<FaceId, FaceId> )
561 ( VertMap,
Vector<VertId, VertId> )
562 ( EdgeMap,
Vector<EdgeId, EdgeId> )
563 ( UndirectedEdgeMap,
Vector<UndirectedEdgeId, UndirectedEdgeId> )
564 ( ObjMap,
Vector<ObjId, ObjId> )
567 ( WholeEdgeMap,
Vector<EdgeId, UndirectedEdgeId> )
568 ( UndirectedEdge2RegionMap,
Vector<RegionId, UndirectedEdgeId> )
569 ( Face2RegionMap,
Vector<RegionId, FaceId> )
570 ( Vert2RegionMap,
Vector<RegionId, VertId> )
572 ( VertCoords,
Vector<Vector3f, VertId> )
573 ( VertCoords2,
Vector<Vector2f, VertId> )
574 ( VertNormals,
Vector<Vector3f, VertId> )
576 ( FaceNormals,
Vector<Vector3f, FaceId> )
578 ( TexturePerFace,
Vector<TextureId, FaceId> )
582 ( UndirectedEdgeColors,
Vector<
Color, UndirectedEdgeId> )
584 ( VertScalars,
Vector<
float, VertId> )
585 ( FaceScalars,
Vector<
float, FaceId> )
586 ( EdgeScalars,
Vector<
float, EdgeId> )
587 ( UndirectedEdgeScalars,
Vector<
float, UndirectedEdgeId> )
588 ( VoxelScalars,
Vector<
float, VoxelId> )
591using VertPredicate = std::function<
bool( VertId )>;
600[[nodiscard]] inline
bool contains( const std::function<
bool(
Id<T> )> & pred,
Id<T>
id )
602 return id.valid() && ( !pred || pred(
id ) );
610MR_CANONICAL_TYPEDEFS( (template <typename T, typename I>
struct MRMESH_CLASS),
BMap,
618template <
typename T>
struct MR_BIND_IGNORE
Allocator;
620template <
typename T,
typename Hash = phmap::priv::hash_default_hash<T>,
typename Eq = phmap::priv::hash_default_eq<T>>
621using HashSet = phmap::flat_hash_set<T, Hash, Eq, Allocator<T>>;
622template <
typename T,
typename Hash = phmap::priv::hash_default_hash<T>,
typename Eq = phmap::priv::hash_default_eq<T>>
630template <
typename K,
typename V,
typename Hash = phmap::priv::hash_default_hash<K>,
typename Eq = phmap::priv::hash_default_eq<K>>
631using HashMap = phmap::flat_hash_map<K, V, Hash, Eq, Allocator<std::pair<const K, V>>>;
632template <
typename K,
typename V,
typename Hash = phmap::priv::hash_default_hash<K>,
typename Eq = phmap::priv::hash_default_eq<K>>
633using ParallelHashMap = phmap::parallel_flat_hash_map<K, V, Hash, Eq, Allocator<std::pair<const K, V>>>;
642template <
typename K,
typename V>
653template <
typename T,
typename I,
typename P>
class Heap;
685MR_CANONICAL_TYPEDEFS( (template<typename V>
struct),
Polyline,
785namespace ObjectSave {
struct Settings; }
800constexpr inline auto sqr( T x )
noexcept ->
decltype( x * x ) {
return x * x; }
804constexpr inline int sgn( T x )
noexcept {
return x > 0 ? 1 : ( x < 0 ? -1 : 0 ); }
808constexpr inline T
distance( T x, T y )
noexcept {
return x >= y ? x - y : y - x; }
813constexpr inline auto distanceSq( T x, T y )
noexcept ->
decltype( ( x - y ) * ( x - y ) ) {
return sqr( x - y ); }
816template <
typename V,
typename T>
817constexpr inline auto lerp( V v0, V v1, T t )
noexcept {
return ( 1 - t ) * v0 + t * v1; }
838struct VertDuplication;
847constexpr inline auto translate_noop(
const char* ctx,
const char* str )
noexcept { (void)ctx;
return str; }
848constexpr inline auto translate_noop(
const char* single,
const char* plural, std::int64_t n )
noexcept {
return n == 1 ? single : plural; }
849constexpr 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; }
855#ifdef __cpp_lib_unreachable
856# define MR_UNREACHABLE std::unreachable();
857# define MR_UNREACHABLE_NO_RETURN std::unreachable();
860# define MR_UNREACHABLE __builtin_unreachable();
861# define MR_UNREACHABLE_NO_RETURN __builtin_unreachable();
864# define MR_UNREACHABLE { assert( false ); return {}; }
865# define MR_UNREACHABLE_NO_RETURN assert( false );
869#ifndef MR_NO_I18N_MACROS
870#define _t( ... ) MR::Locale::translate_noop( __VA_ARGS__ )
#define MR_REQUIRES_IF_SUPPORTED(...)
Definition MRMacros.h:33
#define MRMESH_CLASS
Definition MRMeshFwd.h:92
Definition MRAABBTreeObjects.h:22
Definition MRAABBTreePoints.h:21
bounding volume hierarchy for line segments
Definition MRAABBTreePolyline.h:30
Definition MRAABBTree.h:41
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:60
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:22
Definition MRMeshTopology.h:31
Definition MRObjectDistanceMap.h:17
Definition MRObjectGcode.h:18
Definition MRObjectLabel.h:30
Definition MRObjectLinesHolder.h:32
Definition MRObjectLines.h:14
Definition MRObjectMeshHolder.h:38
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:294
Union-find data structure for representing disjoint sets of elements with few very quick operations: ...
Definition MRUnionFind.h:165
Definition MRUniqueThreadSafeOwner.h:18
Vector<T> is indexed by size_t.
Definition MRVector.h:24
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:423
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:790
WeightedVertex
Definition MRMeshFwd.h:520
std::function< float(VertId)> VertMetric
Definition MRMeshFwd.h:605
std::vector< EdgeId > EdgeLoop
Definition MRMeshFwd.h:156
std::vector< std::string > GcodeSource
Definition MRMeshFwd.h:712
RigidXf3f
Definition MRMeshFwd.h:312
EdgeSegment
Definition MRMeshFwd.h:481
WrapType
Definition MREnums.h:18
LineSegm2f
Definition MRMeshFwd.h:343
struct
Definition MRMeshFwd.h:189
std::array< VertId, 2 > TwoVertIds
two vertex ids describing an edge with the ends in vertices given by their ids
Definition MRMeshFwd.h:537
EdgeSegmentT< float > EdgeSegmentf
Definition MRMeshFwd.h:485
std::vector< SurfacePath > SurfacePaths
Definition MRMeshFwd.h:491
std::vector< EdgeLoop > EdgeLoops
Definition MRMeshFwd.h:157
Contour3< float > Contour3f
Definition MRMeshFwd.h:378
EdgePointf MeshEdgePointf
Definition MRMeshFwd.h:488
Cylinder3f
Definition MRMeshFwd.h:362
EdgePoint
Definition MRMeshFwd.h:477
AABBTreePolyline2
Definition MRMeshFwd.h:691
LineSegm< Vector3< T > > LineSegm3
Definition MRMeshFwd.h:349
MapOrHashMap< FaceId, FaceId > FaceMapOrHashMap
Definition MRMeshFwd.h:645
EdgePointT< T > MeshEdgePointT
Definition MRMeshFwd.h:487
CubicBezierCurve< Vector3< T > > CubicBezierCurve3
Definition MRMeshFwd.h:447
Box< T > MinMax
Definition MRMeshFwd.h:415
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:800
std::function< bool(FaceId)> FacePredicate
Definition MRMeshFwd.h:592
MinMax< float > MinMaxf
Definition MRMeshFwd.h:416
Contour2< double > Contour2d
Definition MRMeshFwd.h:375
Box< Vector3< T > > Box3
Definition MRMeshFwd.h:422
MeshTriPoint
Definition MRMeshFwd.h:515
HashSet< VertId > VertHashSet
Definition MRMeshFwd.h:627
TriPointf
Definition MRMeshFwd.h:506
std::function< bool(EdgeId)> EdgePredicate
Definition MRMeshFwd.h:593
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:542
Contours2< double > Contours2d
Definition MRMeshFwd.h:385
Contours3< float > Contours3f
Definition MRMeshFwd.h:388
std::function< bool(UndirectedEdgeId)> UndirectedEdgePredicate
Definition MRMeshFwd.h:594
Ball< Vector2< T > > Ball2
Definition MRMeshFwd.h:437
MapOrHashMap< VertId, VertId > VertMapOrHashMap
Definition MRMeshFwd.h:646
Contours3< double > Contours3d
Definition MRMeshFwd.h:387
phmap::parallel_flat_hash_map< K, V, Hash, Eq, Allocator< std::pair< const K, V > > > ParallelHashMap
Definition MRMeshFwd.h:633
SurfacePaths PlaneSections
Definition MRMeshFwd.h:495
MapOrHashMap< EdgeId, EdgeId > EdgeMapOrHashMap
Definition MRMeshFwd.h:647
HashMap< VertId, VertId > VertHashMap
Definition MRMeshFwd.h:636
QuadraticForm2f
Definition MRMeshFwd.h:450
QuadraticForm< Vector3< T > > QuadraticForm3
Definition MRMeshFwd.h:456
phmap::parallel_flat_hash_set< T, Hash, Eq, Allocator< T > > ParallelHashSet
Definition MRMeshFwd.h:623
FilterType
Definition MREnums.h:12
Plane3f
Definition MRMeshFwd.h:391
SurfacePath IsoLine
Definition MRMeshFwd.h:492
Vector2f UVCoord
Definition MRMeshFwd.h:534
Triangle3< int > Triangle3i
Definition MRMeshFwd.h:465
Ball< Vector3< T > > Ball3
Definition MRMeshFwd.h:438
phmap::flat_hash_set< T, Hash, Eq, Allocator< T > > HashSet
Definition MRMeshFwd.h:621
Sphere< Vector3< T > > Sphere3
Definition MRMeshFwd.h:331
std::vector< MeshEdgePoint > SurfacePath
Definition MRMeshFwd.h:490
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:640
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:804
Contours2< float > Contours2f
Definition MRMeshFwd.h:386
RigidScaleXf3f
Definition MRMeshFwd.h:317
std::function< float(EdgeId)> EdgeMetric
Definition MRMeshFwd.h:607
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:596
MinMax< int > MinMaxi
Definition MRMeshFwd.h:418
EdgePoint MeshEdgePoint
Definition MRMeshFwd.h:486
Box< T > Box1
Definition MRMeshFwd.h:420
Contour< Vector2< T > > Contour2
Definition MRMeshFwd.h:373
Contour3< double > Contour3d
Definition MRMeshFwd.h:377
SurfacePath PlaneSection
Definition MRMeshFwd.h:494
HashMap< FaceId, FaceId > FaceHashMap
Definition MRMeshFwd.h:635
std::function< float(FaceId)> FaceMetric
Definition MRMeshFwd.h:606
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:650
Polyline2
Definition MRMeshFwd.h:686
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:626
phmap::flat_hash_map< K, V, Hash, Eq, Allocator< std::pair< const K, V > > > HashMap
Definition MRMeshFwd.h:631
std::vector< EdgeId > EdgePath
Definition MRMeshFwd.h:155
std::pair< FaceId, FaceId > FacePair
Definition MRMeshFwd.h:501
constexpr NoInit noInit
Definition MRMeshFwd.h:103
HashSet< EdgeId > EdgeHashSet
Definition MRMeshFwd.h:628
std::pair< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgePair
Definition MRMeshFwd.h:503
EdgePointd MeshEdgePointd
Definition MRMeshFwd.h:489
Cone3f
Definition MRMeshFwd.h:367
BestFitParabolaf
Definition MRMeshFwd.h:357
Quaternionf
Definition MRMeshFwd.h:459
std::pair< EdgeId, EdgeId > EdgePair
Definition MRMeshFwd.h:502
std::function< void(EdgeId e1, EdgeId e)> OnEdgeSplit
Definition MRMeshFwd.h:597
std::function< float(UndirectedEdgeId)> UndirectedEdgeMetric
Definition MRMeshFwd.h:608
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:817
constexpr bool dependent_false
Definition MRMeshFwd.h:820
Triangle3< float > Triangle3f
Definition MRMeshFwd.h:466
SurfacePaths IsoLines
Definition MRMeshFwd.h:493
constexpr auto translate_noop(const char *str) noexcept
special no-op inline functions to mark string literal as translatable
Definition MRMeshFwd.h:846
AffineXf< Vector3< T > > AffineXf3
Definition MRMeshFwd.h:300
std::vector< Contour< V > > Contours
Definition MRMeshFwd.h:382
Polyline2ProjectionWithOffsetResult
Definition MRMeshFwd.h:704
HashMap< EdgeId, EdgeId > EdgeHashMap
Definition MRMeshFwd.h:637
std::nullptr_t type
Definition MRMeshFwd.h:304
SegmPointf
Definition MRMeshFwd.h:472
Parabolaf
Definition MRMeshFwd.h:352
MapOrHashMap< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgeMapOrHashMap
Definition MRMeshFwd.h:648
std::pair< VertId, VertId > VertPair
Definition MRMeshFwd.h:500
typename detail::AffineXf3f::TypeOrPlaceholder< Vector3< T > >::type AffineXf3OrPlaceholder
Definition MRMeshFwd.h:309
HashMap< UndirectedEdgeId, UndirectedEdgeId > UndirectedEdgeHashMap
Definition MRMeshFwd.h:638
Contours< Vector3< T > > Contours3
Definition MRMeshFwd.h:384
Sphere2f
Definition MRMeshFwd.h:325
Reorder
determines how points to be ordered
Definition MREnums.h:26
@ Contour
Definition MRObjectLabel.h:21
@ Edges
Definition MRObjectMeshHolder.h:21
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:843
Building topologies by triangles.
Definition MRIdentifyVertices.h:16
Definition MRIOFormatsRegistry.h:361
Definition MRMeshFwd.h:283
for internal use: namespace detail is not bound to other languages
Definition MRAllocator.h:23
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
Definition MRAffineXf.h:26
triangulations for all points, with easy access by VertId
Definition MRLocalTriangulations.h:51
Definition MRAllocator.h:45
flat map: I -> T
Definition MRBuffer.h:148
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:36
mapping among elements of source point cloud, from which a part is taken, and target (this) point clo...
Definition MRCloudPartMapping.h:13
this struct contains coordinate converters float-int-float
Definition MRPrecisePredicates3.h:145
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:57
encodes a point on an edge of mesh or of polyline
Definition MREdgePoint.h:15
Represents a segment on one edge.
Definition MREdgePoint.h:69
a pair of faces
Definition MRFaceFace.h:14
Definition MRFaceSoup.h:16
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:114
Definition MRIteratorRange.h:13
a segment of straight dimensional line
Definition MRLineSegm.h:15
ObjectMeshData and additional information from mesh importer.
Definition MRLoadedMeshData.h:17
result of loading (e.g. from a file) as a number of objects
Definition MRLoadedObjects.h:36
Definition MRMapOrHashMap.h:34
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:115
Definition MRMeshProject.h:18
Definition MRMeshPart.h:15
Definition MRMeshTexture.h:13
Definition MRMeshTriPoint.h:28
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:156
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
everything about a raster except its values
Definition MRRaster.h:19
settings for loading rasters from external formats
Definition MRRaster.h:64
settings for saving rasters in external formats
Definition MRRaster.h:74
regular grid of values of any type: an image if it has one layer, otherwise a volume
Definition MRRaster.h:38
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
three vertex ids describing a triangle with the corners in vertices given by their ids
Definition MRId.h:203
struct to determine transparent rendering mode
Definition MRRenderModelParameters.h:13
TriMesh with a region of triangles: only the triangles of the region and their vertices are valid.
Definition MRTriMeshPart.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:17
Definition MRVector2.h:29
Definition MRVector3.h:33
Definition MRVector4.h:26
Definition MRMeshTriPoint.h:15
Definition MRMeshFwd.h:304
Definition MRMeshFwd.h:285
Definition MRMeshFwd.h:823