It is currently Sat Aug 22, 2020 3:39 am


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: SimpleVolume and SurfaceExtractor bounds bug
PostPosted: Tue Jun 05, 2012 9:09 pm 

Joined: Tue Jun 05, 2012 8:49 pm
Posts: 2
Code:
PolyVox::SimpleVolume <PolyVox::MaterialDensityPair44> volData (PolyVox::Region (PolyVox::Vector3DInt32(0,0,0), PolyVox::Vector3DInt32 (120, 120, 120)));
createSphereInVolume (volData, 60);


Results in the following:
Image

Using a slightly smaller Sphere or increasing the Volume Size avoids the problem, probably because the Sphere reaches the bounds of the Volume? I have no idea.

If I use a Cubic Surface extractor, there are no issues with the vertices themselves though the cubes stop appearing at the edge like I expect it to.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: SimpleVolume and SurfaceExtractor bounds bug
PostPosted: Wed Jun 06, 2012 2:15 pm 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
Hi, thanks for reporting this. It probably is a bug as these edge cases can be tricky to handle...

Unfortunatly I'm not in a position to fix it at the moment as PolyVox is undergoing some changes, but I'll be sure to take a look before the next release.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: SimpleVolume and SurfaceExtractor bounds bug
PostPosted: Fri Jun 08, 2012 8:07 am 

Joined: Tue Jun 05, 2012 8:49 pm
Posts: 2
Thanks for your reply, David!


Top
Offline Profile  
Reply with quote  
 Post subject: Re: SimpleVolume and SurfaceExtractor bounds bug
PostPosted: Fri Oct 12, 2012 11:39 am 
Developer
User avatar

Joined: Sun May 04, 2008 6:35 pm
Posts: 1827
I just had a go at reproducing this but without any success. I tried both the current Git version and also the last snapshot (Dec 2011). If anyone else sees this issue and is able to provide a more complete example then I'd be interested to see it. The original report contains some interesting use of materials which I don't know exactly how to reproduce... perhaps that was relevent?

I will leave this bug report open but will proceed with the next release regardless of whether it gets fixed.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net