<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em; MARGIN-TOP: 0px
}
OL {
        MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
UL {
        MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
P {
        MARGIN-BOTTOM: 0px; MARGIN-TOP: 0px
}
BODY {
        FONT-SIZE: 10.5pt; FONT-FAMILY: ΢ÈíÑźÚ; COLOR: #000000; LINE-HEIGHT: 1.5
}
</STYLE>
<META name=GENERATOR content="MSHTML 10.00.9200.16540"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>Hi all.</DIV>
<DIV> </DIV>
<DIV>I wanted to cropping a volume, just the center region is visible. And
i use the GPU-based volume mapper, but it always breakdown on the line
assert("check: positive_low_bounds0" && lowBounds[0]>=0.0)
of vtkOpenGLGPUVolumeRayCastMapper .</DIV>
<DIV> </DIV>
<DIV>Here is my code:</DIV>
<DIV>
<DIV>m_volumeMapper->CroppingOn();</DIV>
<DIV>//m_volumeMapper->SetCroppingRegionPlanes(523000.0, 524000.0, 4400000.0, 4403000, 1330.0, 1350.0);</DIV>
<DIV>m_volumeMapper->SetCroppingRegionPlanes(30.0, 40.0, 30.0, 40.0, 30.0, 40.0);</DIV>
<DIV>m_volumeMapper->SetCroppingRegionFlagsToSubVolume();</DIV>
<DIV>m_render->GetRenderWindow()->Render();</DIV>
<DIV> </DIV>
<DIV>Here is the image data:</DIV>
<DIV>
<DIV><VTKFile type="ImageData" version="0.1" byte_order="LittleEndian" compressor="vtkZLibDataCompressor"></DIV>
<DIV> <ImageData WholeExtent="0 115 0 91 0 134" Origin="518476 4398442 1042" Spacing="100 100 2"></DIV>
<DIV> <Piece Extent="0 115 0 91 0 134"></DIV>
<DIV> <PointData Scalars="ImageScalars"></DIV>
<DIV> <DataArray type="UInt16" Name="ImageScalars" format="appended" RangeMin="0" RangeMax="8" offset="0" /></DIV>
<DIV> </PointData></DIV>
<DIV> <CellData></DIV>
<DIV> </CellData></DIV>
<DIV> </Piece></DIV>
<DIV> </ImageData></DIV></DIV></DIV>
<DIV> </DIV>
<DIV>thank you for your help again!</DIV>
<HR style="HEIGHT: 1px; WIDTH: 210px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>qlizhi</SPAN></DIV></BODY></HTML>