MeshLib C++ Docs
Loading...
Searching...
No Matches
MRAlignContoursToMesh.h File Reference
#include "MRMeshFwd.h"
#include "MRExpected.h"
#include "MRId.h"
#include "MRVector2.h"
#include "MRVector3.h"
#include "MRMeshTriPoint.h"
#include "MRCurve.h"

Go to the source code of this file.

Classes

class  MR::ContoursMeshAlignParams
 Parameters for aligning 2d contours onto mesh surface.
 
class  MR::BendContoursAlongCurveParams
 Parameters for aligning 2d contours along given curve.
 

Namespaces

namespace  MR
 

Functions

MRMESH_API Expected< MeshMR::alignContoursToMesh (const Mesh &mesh, const Contours2f &contours, const ContoursMeshAlignParams &params)
 Creates planar mesh out of given contour and aligns it to given surface.
 
MRMESH_API Expected< MeshMR::bendContoursAlongCurve (const Contours2f &contours, const CurveFunc &curve, const BendContoursAlongCurveParams &params)
 Converts contours in thick mesh, and deforms it along given path.
 
MRMESH_API Expected< MeshMR::bendContoursAlongSurfacePath (const Contours2f &contours, const Mesh &mesh, const MeshTriPoint &start, const SurfacePath &path, const MeshTriPoint &end, const BendContoursAlongCurveParams &params)
 Converts contours in thick mesh, and deforms it along given surface path: start->path->end.
 
MRMESH_API Expected< MeshMR::bendContoursAlongSurfacePath (const Contours2f &contours, const Mesh &mesh, const SurfacePath &path, const BendContoursAlongCurveParams &params)
 Converts contours in thick mesh, and deforms it along given surface path.
 
MRMESH_API Expected< std::vector< float > > MR::findPartialLens (const CurvePoints &cp, bool unitLength=true, float *outCurveLen=nullptr)
 
MRMESH_API CurvePoint MR::getCurvePoint (const CurvePoints &cp, const std::vector< float > &lens, float p)
 
MRMESH_API Expected< CurveFunc > MR::curveFromPoints (const CurvePoints &cp, bool unitLength=true, float *outCurveLen=nullptr)
 
MRMESH_API Expected< CurveFunc > MR::curveFromPoints (CurvePoints &&cp, bool unitLength=true, float *outCurveLen=nullptr)
 
MRMESH_API CurvePoints MR::meshPathCurvePoints (const Mesh &mesh, const MeshTriPoint &start, const SurfacePath &path, const MeshTriPoint &end)
 converts polyline given as a number of MeshTriPoint/MeshEdgePoint into CurvePoints
 
MRMESH_API CurvePoints MR::meshPathCurvePoints (const Mesh &mesh, const SurfacePath &path)
 
MRMESH_API void MR::addBaseToPlanarMesh (Mesh &mesh, float zOffset)