| 47 | |
| 48 | |
| 49 | void recompute_field() |
| 50 | { |
| 51 | directional::PolyVectorData pvData; |
| 52 | pvData.N = N; |
| 53 | pvData.tb = &ftb; |
| 54 | pvData.verbose = true; |
| 55 | pvData.constSpaces = constFaces; |
| 56 | pvData.constVectors = constVectors; |
| 57 | |
| 58 | pvData.wSmooth = smoothWeight; |
| 59 | pvData.wRoSy = roSyWeight; |
| 60 | |
| 61 | //Hard alignment |
| 62 | pvData.wAlignment =Eigen::VectorXd::Constant(constFaces.size(),-1); |
| 63 | directional::polyvector_field(pvData, pvFieldHard); |
| 64 | |
| 65 | //Soft alignment |
| 66 | pvData.wAlignment = alignWeight*Eigen::VectorXd::Constant(constFaces.size(),1.0); |
| 67 | directional::polyvector_field(pvData, pvFieldSoft); |
| 68 | |
| 69 | directional::polyvector_to_raw(pvFieldHard, rawFieldHard, N%2==0); |
| 70 | directional::principal_matching(rawFieldHard); |
| 71 | |
| 72 | directional::polyvector_to_raw(pvFieldSoft, rawFieldSoft, N%2==0); |
| 73 | directional::principal_matching(rawFieldSoft); |
| 74 | |
| 75 | } |
| 76 | |
| 77 | |
| 78 | void callbackFunc() { |
no test coverage detected