It is interesting to know about the differences in vtkMassProperties for VTK 5.04 and VTK 5.4.2

1 answer

I have never heard of VTK , but here it goes.

opensource , . , - , , .

vtkMassProperties. 5.0.4 r1.28 5.4.2 r1.30. diff r1.28 r.30. , ,

vol[2] += (area * (double)u[2] * (double)zavg); // 5.0.4
vol[2] += (area * u[2] * zavg); // 5.4.2

kxyz[0] = (munc[0] + (wxyz/3.0) + ((wxy+wxz)/2.0)) /(double)(numCells); // 5.0.4
kxyz[0] = (munc[0] + (wxyz/3.0) + ((wxy+wxz)/2.0)) /numCells; // 5.4.2

.

vtkMarchingCubes. r1.1.6.1 1.5.

self->UpdateProgress ((double) k / ((double) dims[2] - 1)); // 5.0.4
self->UpdateProgress (k / static_cast<double>(dims[2] - 1)); // 5.4.2

estimatedSize = (int) pow ((double) (dims[0] * dims[1] * dims[2]), .75); // 5.0.4
estimatedSize = static_cast<int>(
             pow(static_cast<double>(dims[0]*dims[1]*dims[2]),0.75)); // 5.4.2

, , .

vtkImageThreshold. r1.50 r1.52.

lowerThreshold = (IT) inData->GetScalarTypeMin(); // 5.0.4
lowerThreshold = static_cast<IT>(inData->GetScalarTypeMin()); // 5.4.2

- , .

vtkTIFFReader. 1.51 1.63. , . :

  • ENH: . Paraview.
  • ENH: vtkDataArray -vtkAbstractArray...
  • ENH: , .
  • ENH: , .
  • ENH: TIFF.
  • ENH: ivars
  • : TIFF Reader RLE- . , ExecuteInformation .
  • : beach.tif( CVS VTKData) .
  • STYLE: s/OrientationTypeSpecifiedFlag/OriginSpecifiedFlag/g s/OrientationTypeSpecifiedFlag/SpacingSpecifiedFlag/g
  • : .
  • COMP: .
  • COMP: .

, vtkTIFFReader, , . , , Tiff . , . , maxthres=81 .

+5

All Articles