MeshLib C++ Docs
Loading...
Searching...
No Matches
MRIntersectionContour.h
Go to the documentation of this file.
1#pragma once
2
4#include "MRPch/MRBindingMacros.h"
5
6namespace MR
7{
10
11
12struct OneMeshContours;
13
16
32
50MRMESH_API ContinuousContours orderSelfIntersectionContours( const MeshTopology& topology, const std::vector<EdgeTri>& intersections );
51
53[[deprecated( "Use getOneMeshIntersectionContours")]] MRMESH_API MR_BIND_IGNORE Contours3f extractIntersectionContours( const Mesh& meshA, const Mesh& meshB, const ContinuousContours& orientedContours,
54const CoordinateConverters& converters, const AffineXf3f* rigidB2A = nullptr );
55
57MRMESH_API bool isClosed( const ContinuousContour& contour );
58
62[[deprecated( "cutMesh connects lone contours itself, and the boolean no longer uses this" )]]
63MRMESH_API std::vector<int> detectLoneContours( const ContinuousContours& contours, bool ignoreOpen = false );
64
69[[deprecated( "cutMesh connects lone contours itself, and the boolean no longer uses this" )]]
71 OneMeshContours& faceContours, OneMeshContours& edgeContours );
72
75[[deprecated( "cutMesh connects lone contours itself, and the boolean no longer uses this" )]]
76MRMESH_API void removeLoneContours( ContinuousContours& contours, bool ignoreOpen = false );
77
78}
#define MRMESH_API
Definition MRMeshFwd.h:85
Definition MRMeshTopology.h:31
Vector<T> is indexed by size_t.
Definition MRVector.h:24
Vector< VarEdgeTri > PreciseCollisionResult
Definition MRMeshCollidePrecise.h:65
Vector< ContinuousContour > ContinuousContours
Definition MRIntersectionContour.h:15
void removeLoneContours(ContinuousContours &contours, bool ignoreOpen=false)
Contours3< float > Contours3f
Definition MRMeshFwd.h:388
std::vector< int > detectLoneContours(const ContinuousContours &contours, bool ignoreOpen=false)
Vector< VarEdgeTri > ContinuousContour
Definition MRIntersectionContour.h:14
bool isClosed(const ContinuousContour &contour)
returns true if contour is closed
void removeLoneDegeneratedContours(const MeshTopology &edgesTopology, OneMeshContours &faceContours, OneMeshContours &edgeContours)
ContinuousContours orderSelfIntersectionContours(const MeshTopology &topology, const std::vector< EdgeTri > &intersections)
ContinuousContours orderIntersectionContours(const MeshTopology &topologyA, const MeshTopology &topologyB, const PreciseCollisionResult &intersections)
Contours3f extractIntersectionContours(const Mesh &meshA, const Mesh &meshB, const ContinuousContours &orientedContours, const CoordinateConverters &converters, const AffineXf3f *rigidB2A=nullptr)
extracts coordinates from two meshes intersection contours
Only strictly necessary for the bindings (to make MR::MeshIntersectionResult a complete type).
Definition MRCameraOrientationPlugin.h:8
this struct contains coordinate converters float-int-float
Definition MRPrecisePredicates3.h:145
Definition MRMesh.h:24
Special data type for MR::cutMesh: the intersections of all contours in one array,...
Definition MROneMeshContours.h:90