View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001205ParaView(No Category)public2004-09-24 15:132009-12-09 14:51
ReporterMathieu Malaterre 
Assigned ToMathieu Malaterre 
PrioritynormalSeveritymajorReproducibilityunable to reproduce
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001205: JA: Isosurface might be interpolating wrong
DescriptionIsosurface gives wrong results in the case of large range and unsigned int dataset.
TagsNo tags attached.
Project
Topic Name
Type
Attached Files

 Relationships

  Notes
(0001504)
Mathieu Malaterre (reporter)
2004-09-28 09:43

Jim,

   Using this script I can generate an unsigned int dataset with a large scalar range:

package require vtk

vtkImageReader reader
reader SetDataByteOrderToLittleEndian
reader SetDataExtent 0 63 0 63 1 93
reader SetDataSpacing 3.2 3.2 1.5
reader SetFilePrefix "$VTK_DATA_ROOT/Data/headsq/quarter"
reader SetDataMask 0x7fff
reader Update

# = 0 3926
puts [[reader GetOutput] GetScalarRange]

vtkImageShiftScale shift
shift SetInput [reader GetOutput]
# Shift data so that it is outside of the 'int' representation:
# 2147483647 = 2^31 - 1
# So we need to shift from 2147483647 - 3926 / 2 = 2147481684
#shift SetShift 2147481684
shift SetShift 1000
# Now if we want a large scalar range:
# 2147483647/3926 = 546990
# So let's try 546990 + 1 = 546991
#shift SetScale 546991
shift SetScale 606991
shift SetOutputScalarTypeToUnsignedInt
shift Update

# 6.06991e+08 2.99004e+09
puts [[shift GetOutput] GetScalarRange]

vtkImageWriter writer
writer SetInput [shift GetOutput]
writer SetFileName "shift2.raw"
writer SetFileDimensionality 3
writer Write

vtkStructuredPointsWriter swriter
swriter SetInput [shift GetOutput]
swriter SetFileName "shift3.vtk"
swriter Write

Loading this data in ParaView does not shows any artefact (for contour, cut, clip), and the scalar range for this data is:
606991000 2990040000

Do you know which filter fails, with what kind of scalar range ?

Thanks
(0002537)
Amy Squillacote (reporter)
2005-06-21 16:49

Jim,

Is this still an issue?

 Issue History
Date Modified Username Field Change
2009-12-09 14:51 Berk Geveci Project @3@ => ParaView
2011-06-16 13:09 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team