#include <MRMesh/MRMesh.h>
#include <MRMesh/MRMeshRelax.h>
#include <MRMesh/MRMeshSubdivide.h>
#include <MRMesh/MRTorus.h>
{
props.maxDeviationAfterFlip = 0.5f;
MR::AffineXf3f rotationXf = MR::AffineXf3f::linear( MR::Matrix3f::rotation( MR::Vector3f::plusZ(), MR::PI_F * 0.5f ) );
mesh.transform( rotationXf );
return 0;
}
MRMESH_API bool relax(Mesh &mesh, const MeshRelaxParams ¶ms={}, const ProgressCallback &cb={})
MRMESH_API int subdivideMesh(Mesh &mesh, const SubdivideSettings &settings={})
MRMESH_API Mesh makeTorus(float primaryRadius=1.0f, float secondaryRadius=0.1f, int primaryResolution=16, int secondaryResolution=16, std::vector< Vector3f > *points=nullptr)