| 10 | { |
| 11 | |
| 12 | TEST( MRMesh, BasicExample ) |
| 13 | { |
| 14 | // please update MeshLib/doxygen/HowToExamples.dox according to this file |
| 15 | |
| 16 | // load mesh |
| 17 | MR::Mesh mesh = MR::makeTorus(); |
| 18 | |
| 19 | // relax mesh (5 iterations) |
| 20 | MR::relax( mesh, { {5} } ); |
| 21 | |
| 22 | // subdivide mesh |
| 23 | MR::SubdivideSettings props; |
| 24 | props.maxDeviationAfterFlip = 0.5f; |
| 25 | MR::subdivideMesh( mesh, props ); |
| 26 | |
| 27 | // rotate mesh |
| 28 | MR::AffineXf3f rotationXf = MR::AffineXf3f::linear( MR::Matrix3f::rotation( MR::Vector3f::plusZ(), MR::PI_F * 0.5f ) ); |
| 29 | mesh.transform( rotationXf ); |
| 30 | } |
| 31 | |
| 32 | TEST( MRMesh, PrimitivesExtractionExapmle ) |
| 33 | { |
nothing calls this directly
no test coverage detected