| 126 | } |
| 127 | |
| 128 | int main() |
| 129 | { |
| 130 | using namespace Eigen; |
| 131 | using namespace std; |
| 132 | directional::readOBJ(TUTORIAL_DATA_PATH "/spherers.obj",mesh); |
| 133 | ftb.init(mesh); |
| 134 | directional::readDMAT(TUTORIAL_DATA_PATH "/spheres_constFaces.dmat", b); |
| 135 | |
| 136 | singVertices.resize(2); |
| 137 | singIndices.resize(2); |
| 138 | singVertices(0)=35; |
| 139 | singVertices(1)=36; |
| 140 | singIndices(0)=N; |
| 141 | singIndices(1)=N; |
| 142 | |
| 143 | field.init(ftb, directional::fieldTypeEnum::RAW_FIELD, N); |
| 144 | |
| 145 | //viewing mesh |
| 146 | viewer.init(); |
| 147 | viewer.set_surface_mesh(mesh); |
| 148 | viewer.set_cartesian_field(field); |
| 149 | viewer.highlight_faces(b); |
| 150 | viewer.set_callback(callbackFunc); |
| 151 | update_directional_field(); |
| 152 | viewer.launch(); |
| 153 | } |
nothing calls this directly
no test coverage detected