MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMeshPart.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4
5namespace MR
6{
9
10
13template<typename RegionTag>
15{
16 const Mesh& mesh;
17 const TaggedBitSet<RegionTag>* region = nullptr;
18
19 MeshRegion( const Mesh& m, const TaggedBitSet<RegionTag>* bs = nullptr ) noexcept : mesh( m ), region( bs )
20 {}
21
23 MeshRegion( const MeshRegion& other ) noexcept = default;
25 {
26 if ( this != &other )
27 {
29 this->~MeshRegion();
30 ::new( ( void* )this ) MeshRegion( other );
31 }
32 return *this;
33 }
34};
35
36}
const TaggedBitSet< RegionTag > * region
Definition MRMeshPart.h:17
MeshRegion(const Mesh &m, const TaggedBitSet< RegionTag > *bs=nullptr) noexcept
nullptr here means whole mesh
Definition MRMeshPart.h:19
MeshRegion & operator=(const MeshRegion &other) noexcept
Definition MRMeshPart.h:24
const Mesh & mesh
Definition MRMeshPart.h:16
MeshRegion(const MeshRegion &other) noexcept=default
Make this assignable. A better idea would be to rewrite the class to not use references,...
@ other
Angle, normally float. Measure in radians.
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMeshPart.h:15
Definition MRMesh.h:23