VSG Logo   OpenInventor Forum

Go Back   Open Inventor Forum > Open Inventor Main Forum

Open Inventor Main Forum General discussions about Open Inventor from VSG

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2012, 07:04 AM
East2010 East2010 is offline
Distinguished Member
 
Join Date: Aug 2011
Location: China
Posts: 117
Default Can not get plane data when resolution=0 and fixedResolution=true

I want to get data along a time slice,when the resolution=0 and fixedResolution=true,the program will wait forever.
Code:
SbBox3i32 box(SbVec3i32(0,0,0),SbVec3i32(RvolData->data.getSize()[0],RvolData->data.getSize()[1],RvolData->data.getSize()[2]));
SoVolumeData::LDMDataAccess::DataInfoPlane info;
SoBufferObject* dummyPtr = NULL;
info = RvolData->getLdmDataAccess().getData( 0, box, plane, dummyPtr );
		

SoCpuBufferObject *cpuBufferObject = new SoCpuBufferObject;

cpuBufferObject->setSize(info.bufferSize);
info = RvolData->getLdmDataAccess().getData( 0, box, plane, cpuBufferObject );//Here will program wait forever
if (info.errorFlag == SoVolumeData::LDMDataAccess::CORRECT)
{
   //process data
}
To get the data,first I change the fixedResolution of RvolData to false,after read,change it to true.It is ok.
But I want to know why the program wait forever.

Last edited by East2010; 04-18-2012 at 08:11 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:43 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Copyright VSG, SAS, 2008.