@@ -433,8 +433,8 @@ OsprayGeometryObjectHandle OsprayDataAlgorithm::addUnstructVol(FieldHandle field
433433 FieldInformation info (field);
434434
435435 if (info.is_tetvol ()) numVPerCell =4 ;
436- else numVPerCell =8 ;
437- // else THROW_ALGORITHM_INPUT_ERROR("hex or tet only for unstructured volume!");
436+ else if (info. is_hexvol ()) numVPerCell =8 ;
437+ else THROW_ALGORITHM_INPUT_ERROR (" hex or tet only for unstructured volume!" );
438438
439439 for (vmesh->begin (meshCellIter); meshCellIter != meshCellEnd; ++meshCellIter)
440440 {
@@ -443,7 +443,7 @@ OsprayGeometryObjectHandle OsprayDataAlgorithm::addUnstructVol(FieldHandle field
443443 vmesh->get_nodes (nodesFromCell, elemID);
444444 for (int i=numVPerCell;i<8 ;i++)
445445 nodesFromCell[i] = -4 /(8 -numVPerCell);
446- for (int i=numVPerCell;i<16 - numVPerCell;i++){
446+ for (int i=numVPerCell;i<8 + numVPerCell;i++){
447447 index_new.push_back (nodesFromCell[i%8 ]);
448448 }
449449 }
@@ -645,8 +645,8 @@ AlgorithmOutput OsprayDataAlgorithm::run(const AlgorithmInput& input) const
645645 else if (info.is_volume ())
646646 {
647647 if (info.is_hexvol ()){
648- // renderable = addUnstructVol(field, colorMap);
649- THROW_ALGORITHM_INPUT_ERROR (" Hex vol not supported. LatVol only at this point" );
648+ renderable = addUnstructVol (field, colorMap);
649+ // THROW_ALGORITHM_INPUT_ERROR("Hex vol not supported. LatVol only at this point");
650650 }else if (info.is_latvol ()){
651651 renderable = addStructVol (field, colorMap);
652652 // renderable = addStructVol(field, colorMap);
0 commit comments