MeshLib C++ Docs
Loading...
Searching...
No Matches
MRFillContours2D.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRHoleFillPlan.h"
4#include "MRExpected.h"
5#include <memory>
6
7namespace MR
8{
11
12
21MRMESH_API Expected<void> fillContours2D( Mesh& mesh, const std::vector<EdgeId>& holeRepresentativeEdges );
22
37
39MRMESH_API std::unique_ptr<IFillContours2DPlanCache> makeFillContours2DPlanCache();
40
49MRMESH_API Expected<HoleFillPlan> fillContours2DPlan( const Mesh& mesh, EdgeId holeEdgeId, IFillContours2DPlanCache* cache = nullptr );
50
54MRMESH_API AffineXf3f getXfFromOxyPlane( const Contours3f& contours );
55MRMESH_API AffineXf3f getXfFromOxyPlane( const Mesh& mesh, const std::vector<EdgePath>& paths );
56
60MRMESH_API Expected<void> fillPlanarHole( ObjectMeshData& data, std::vector<EdgeLoop>& holeContours );
61
62}
#define MRMESH_API
Definition MRMeshFwd.h:85
Definition MRFillContours2D.h:27
virtual ~IFillContours2DPlanCache()=0
pure to make the class abstract: instances are created by makeFillContours2DPlanCache() only
std::unique_ptr< IFillContours2DPlanCache > makeFillContours2DPlanCache()
creates a cache for fillContours2DPlan
Contours3< float > Contours3f
Definition MRMeshFwd.h:388
tl::expected< T, E > Expected
Definition MRExpected.h:31
Expected< HoleFillPlan > fillContours2DPlan(const Mesh &mesh, EdgeId holeEdgeId, IFillContours2DPlanCache *cache=nullptr)
prepare filling plan for hole with border in same plane (i.e. after cut by plane)
AffineXf3f getXfFromOxyPlane(const Contours3f &contours)
IFillContours2DPlanCache(const IFillContours2DPlanCache &)=delete
IFillContours2DPlanCache & operator=(const IFillContours2DPlanCache &)=delete
Expected< void > fillContours2D(Mesh &mesh, const std::vector< EdgeId > &holeRepresentativeEdges)
fill holes with border in same plane (i.e. after cut by plane)
Expected< void > fillPlanarHole(ObjectMeshData &data, std::vector< EdgeLoop > &holeContours)
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh.h:24
mesh and its per-element attributes for ObjectMeshHolder
Definition MRObjectMeshData.h:17