[vtkusers] about vtkMarchingCubes

Mathieu Malaterre mathieu.malaterre at kitware.com
Tue Apr 27 12:53:31 EDT 2004


Vetria,

	Could you send us the c++ demo file you are using, I suspect you are 
reading your file improperly (data extent is wrong).

Thanks
Mathieu

Vetria Byrd wrote:
>  
> 
> In the data files slices 0,1,3,4 and 5 contain all zero’s.
> 
> In slice 2, cell [2][2][2] = 1 all other cell values are zero’s.
> 
>  
> 
> Vetria
> 
>  
> 
> -----Original Message-----
> From: Mathieu Malaterre [mailto:mathieu.malaterre at kitware.com]
> Sent: Tuesday, April 27, 2004 10:50 AM
> To: byrdv at cis.uab.edu
> Cc: vtkusers at vtk.org
> Subject: Re: [vtkusers] about vtkMarchingCubes
> 
>  
> 
> Vetria,
> 
>  
> 
>       Can you send us a screenshot of your problem ?
> 
>  
> 
> Thanks
> 
> Mathieu
> 
>  
> 
> Vetria Byrd wrote:
> 
>>  The dataset consists of 5 files/slices, all containing zero's and one's.
> 
>>  The goal is to take a 5x5x5 volume that contains an object in the center
> 
>>  cell and extract that object. 
> 
>>
> 
>>  Data Spacing is set to:  volReader->SetDataSpacing(1,1,1);
> 
>>
> 
>>  Thanks,
> 
>>  Vetria
> 
>>
> 
>>  -----Original Message-----
> 
>>  From: Mathieu Malaterre [mailto:mathieu.malaterre at kitware.com]
> 
>>  Sent: Monday, April 26, 2004 5:26 PM
> 
>>  To: Vetria Byrd
> 
>>  Cc: vtkusers at vtk.org
> 
>>  Subject: Re: [vtkusers] about vtkMarchingCubes
> 
>>
> 
>>  Vetria,
> 
>>
> 
>>      What type of image are you reading ? Is it possible that you have a
> 
>>  negative spacing ? You might to avoid this.
> 
>>
> 
>>  HTH
> 
>>  Mathieu
> 
>>
> 
>>
> 
>>  Vetria Byrd wrote:
> 
>>
> 
>> >I am having a similiar problem with vtkMarchingCubes as posted at
> 
>> >http://public.kitware.com/pipermail/vtkusers/2003-March/017033.html
> 
>> >but I have not been able to find the reply or answer to the problem.
> 
>> >
> 
>> >I am reading several data files and using vtkMarchingCubes to display the
> 
>> >reconstructed object, but the positioning of the rendered object seems to
> 
>> >be off.  It shoud be centered within the view but no matter what I do it's
> 
>> >always off center.
> 
>> >
> 
>> >Can anyone give me an idea of what could be causing this?
> 
>> >
> 
>> >Thank you,
> 
>> >Vetria
> 
>> >
> 
>> >
> 
>> >
> 
>> >_______________________________________________
> 
>> >This is the private VTK discussion list.
> 
>> >Please keep messages on-topic. Check the FAQ at:
> 
>>
> 
>>  <http://public.kitware.com/cgi-bin/vtkfaq>
> 
>>
> 
>> >Follow this link to subscribe/unsubscribe:
> 
>> >http://www.vtk.org/mailman/listinfo/vtkusers
> 
>> >
> 
>>
> 
>>
> 
>>
> 
>>
> 
>  
> 






More information about the vtkusers mailing list