@@ -72,7 +72,8 @@ class OsprayFieldRenderTest : public ParameterizedModuleTest<int>
7272 {
7373 Log::get ().setVerbose (false );
7474 auto size = GetParam ();
75- latVol = CreateEmptyLatVol (size, size, size);
75+ auto max = static_cast <double >(size);
76+ latVol = CreateEmptyLatVol (size, size, size, DOUBLE_E, { 0 , 0 , 0 }, { max, max, max });
7677 Log::get () << INFO << " Setting up ShowField with size " << size << " ^3 latvol" << std::endl;
7778 }
7879
@@ -123,17 +124,18 @@ namespace osprayImpl
123124
124125 int renderLatVol (FieldHandle latvol, float cameraSteps)
125126 {
126- if (false )
127+ FieldHandle trisurf;
128+ // if (false)
127129 {
128130 GetFieldBoundaryAlgo getfieldbound_algo;
129131 FieldHandle field_boundary;
130132 getfieldbound_algo.run (latvol, field_boundary);
131133 ConvertMeshToTriSurfMeshAlgo converter;
132- FieldHandle trisurf;
134+
133135 converter.run (field_boundary, trisurf);
134136 }
135137
136- auto trisurf = TriangleTriSurfLinearBasis (DOUBLE_E);
138+ // trisurf = TriangleTriSurfLinearBasis(DOUBLE_E);
137139 auto facade (trisurf->mesh ()->getFacade ());
138140
139141 // std::ostringstream ostr;
@@ -158,10 +160,10 @@ namespace osprayImpl
158160 imgSize.y = 768 ; // height
159161
160162 // camera
161- float cam_pos[] = { -1 .f , 0 .f , 1 .f };
163+ float cam_pos[] = { -1 .f , 0 .f , - 5 .f };
162164 cam_pos[0 ] += cameraSteps;
163165 float cam_up[] = { 0 .f , 1 .f , 0 .f };
164- float cam_view[] = { 0 .5f , 0 .5f , - 1 .f };
166+ float cam_view[] = { 0 .5f , 0 .5f , 1 .f };
165167 // cam_view[2] += cam_pos[2];
166168
167169 // triangle mesh data
@@ -317,7 +319,7 @@ TEST_P(OsprayFieldRenderTest, RenderLatVolWithOspray)
317319INSTANTIATE_TEST_CASE_P (
318320 RenderLatVolWithOspray,
319321 OsprayFieldRenderTest,
320- Values (2 // , 40, 60, 80
322+ Values (4 // , 40, 60, 80
321323 // , 100, 120, 150//, //200 //to speed up make test
322324 // , 256 // probably runs out of memory
323325 )
0 commit comments