MCPcopy Create free account
hub / github.com/avaxman/Directional / main

Function main

tutorial/202_Sampling/main.cpp:128–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128int 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}

Callers

nothing calls this directly

Calls 10

readOBJFunction · 0.85
readDMATFunction · 0.85
update_directional_fieldFunction · 0.85
set_surface_meshMethod · 0.80
set_cartesian_fieldMethod · 0.80
highlight_facesMethod · 0.80
set_callbackMethod · 0.80
initMethod · 0.45
resizeMethod · 0.45
launchMethod · 0.45

Tested by

no test coverage detected