27 return a.
edge.undirected() == b.
edge.undirected() && a.
tri == b.
tri;
38 unsigned int face : 31 = 0;
46 [[nodiscard]]
bool valid()
const {
return edge.valid(); }
47 [[nodiscard]]
explicit operator bool()
const {
return edge.valid(); }
73 ConvertToIntVector conv, const AffineXf3f* rigidB2A =
nullptr,
bool anyIntersection = false );
82 ConvertToIntVector conv, const AffineXf3f* rigidB2A =
nullptr,
bool anyIntersection = false );
94[[deprecated(
"cutMesh connects lone contours itself, and the boolean no longer uses this" )]]
96 const
Mesh & a, VertId aFirstNewVert, const
Mesh & b, VertId bFirstNewVert,
106 ConvertToIntVector conv,
bool anyIntersection = false, const AffineXf3f* rigidB2A =
nullptr,
int aVertSizes = 0 );
110 const
Mesh & a, const std::vector<EdgeId> & edgesA,
111 const
Mesh & b, const std::vector<FaceId> & facesB,
116 const
Mesh & a, const std::vector<FaceId> & facesA,
117 const
Mesh & b, const std::vector<EdgeId> & edgesB,
130 const AffineXf3f* rigidB2A =
nullptr );
#define MRMESH_API
Definition MRMeshFwd.h:85
Definition MRAABBTree.h:41
Vector<T> is indexed by size_t.
Definition MRVector.h:24
CoordinateConverters getVectorConverters(const MeshPart &a)
creates simple converters from Vector3f to Vector3i and back in mesh part area range
PreciseCollisionResult findCollidingEdgeTrisPrecise(const MeshPart &a, const MeshPart &b, ConvertToIntVector conv, const AffineXf3f *rigidB2A=nullptr, bool anyIntersection=false)
finds all pairs of colliding edges from one mesh and triangle from another mesh
void updateCollidingEdgeTrisPrecise(PreciseCollisionResult &res, const Mesh &a, VertId aFirstNewVert, const Mesh &b, VertId bFirstNewVert, ConvertToIntVector conv, const AffineXf3f *rigidB2A=nullptr)
updates the result of findCollidingEdgeTrisPrecise( a, b, conv, rigidB2A ) after some faces or edges ...
std::vector< EdgeTri > findSelfCollidingEdgeTrisPrecise(const MeshPart &mp, ConvertToIntVector conv, bool anyIntersection=false, const AffineXf3f *rigidB2A=nullptr, int aVertSizes=0)
finds all pairs of colliding edges and triangle within one mesh
Vector< VarEdgeTri > PreciseCollisionResult
Definition MRMeshCollidePrecise.h:65
bool operator==(const Allocator< T > &, const Allocator< U > &) noexcept
Definition MRAllocator.h:93
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
translate then scale float-to-int coordinate converter
Definition MRPrecisePredicates3.h:100
this struct contains coordinate converters float-int-float
Definition MRPrecisePredicates3.h:145
edge from one mesh and triangle from another mesh
Definition MRMeshCollidePrecise.h:18
EdgeTri(EdgeId e, FaceId t)
Definition MRMeshCollidePrecise.h:22
EdgeId edge
Definition MRMeshCollidePrecise.h:19
FaceId tri
Definition MRMeshCollidePrecise.h:20
Definition MRMeshCollidePrecise.h:36
unsigned int isEdgeATriB
Definition MRMeshCollidePrecise.h:37
bool operator==(const FlaggedTri &) const =default
unsigned int face
Definition MRMeshCollidePrecise.h:38
Definition MRMeshCollidePrecise.h:33
EdgeTri edgeTri() const
Definition MRMeshCollidePrecise.h:44
bool isEdgeATriB() const
Definition MRMeshCollidePrecise.h:43
EdgeId edge
Definition MRMeshCollidePrecise.h:34
bool operator==(const VarEdgeTri &) const =default
bool valid() const
Definition MRMeshCollidePrecise.h:46
VarEdgeTri(bool isEdgeATriB, const EdgeTri &et)
Definition MRMeshCollidePrecise.h:57
struct MR::VarEdgeTri::FlaggedTri flaggedTri
VarEdgeTri(bool isEdgeATriB, EdgeId e, FaceId t)
Definition MRMeshCollidePrecise.h:50
FaceId tri() const
Definition MRMeshCollidePrecise.h:42