Voxel Workbench

Show off your FreeCAD projects here!
User avatar
JMG
Posts: 262
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Re: Voxel Workbench

Postby JMG » Sat Jan 21, 2017 9:24 am

Might be a lot of fun if this would be combined with Rolands Anker stones viewtopic.php?f=24&t=10802


Yes, the idea is to have something like that ;)
By now I am trying to get a stable "voxel engine" that accepts a lot of cubes without freezing FreeCAD.
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
ickby
Posts: 2422
Joined: Wed Oct 05, 2011 7:36 am

Re: Voxel Workbench

Postby ickby » Sat Jan 21, 2017 9:42 am

JMG wrote:By now I am trying to get a stable "voxel engine" that accepts a lot of cubes without freezing FreeCAD.

What do you use as voxel, a Part Cube? I could imagine that this gets too heavy. Have you tried to use a pure coin node, a SoCube? That should be way faster for large structures. https://grey.colorado.edu/coin3d/classSoCube.html
User avatar
JMG
Posts: 262
Joined: Wed Dec 25, 2013 9:32 am
Location: Spain
Contact:

Re: Voxel Workbench

Postby JMG » Sat Jan 21, 2017 11:18 am

That would be the perfect approach (and the first that I tried to implement), but do you know how to get the face selected by mouse actions?
Also, it is harder to interact between normal FreeCAD tools and coin3d objects.


But all could be done with time, I just wanted to have something fast to test some ideas ;)


Javier.

edit:
I just discovered this: http://www.freecadweb.org/wiki/index.ph ... low_cursor and I got some ideas to test :)
FreeCAD scripts, animations, experiments and more: http://linuxforanengineer.blogspot.com.es/
Open source CNC hot wire cutter project (NiCr): https://github.com/JMG1/NiCr
Exploded Assembly Workbench: https://github.com/JMG1/ExplodedAssembly
sliptonic
Posts: 596
Joined: Tue Oct 25, 2011 10:46 pm

Re: Voxel Workbench

Postby sliptonic » Sat Jan 21, 2017 2:31 pm

Could this be used as the basis of a cam simulation for Path? I'm thinking of a material stock object represented as voxels. Then a script walks along the Path and removes voxels that intersect within the radius of the cutter. The result, ideally, is the desired part but errors in the machining project could be visualized and corrected. The simulation could be run in real time or sped up.
User avatar
kkremitzki
Posts: 321
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: Voxel Workbench

Postby kkremitzki » Sat Jan 21, 2017 3:42 pm

sliptonic wrote:Could this be used as the basis of a cam simulation for Path? I'm thinking of a material stock object represented as voxels. Then a script walks along the Path and removes voxels that intersect within the radius of the cutter. The result, ideally, is the desired part but errors in the machining project could be visualized and corrected. The simulation could be run in real time or sped up.


Just for reference I saw these two videos recently with something similar:
phpBB [video]


phpBB [video]
Last edited by kkremitzki on Mon Feb 20, 2017 3:08 am, edited 3 times in total.
chrisb
Posts: 1658
Joined: Tue Mar 17, 2015 9:14 am

Re: Voxel Workbench

Postby chrisb » Sat Jan 21, 2017 5:33 pm

I have a problem with the videos, I can see only two black rectangles with tiny text 'phpbb video' in the right lower corner, nothing happens on click. Anyone else having this?
User avatar
Kunda1
Posts: 631
Joined: Thu Jan 05, 2017 9:03 pm

Re: Voxel Workbench

Postby Kunda1 » Sat Jan 21, 2017 7:42 pm

chrisb wrote:I have a problem with the videos, I can see only two black rectangles with tiny text 'phpbb video' in the right lower corner, nothing happens on click. Anyone else having this?

likewise
User avatar
kkremitzki
Posts: 321
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: Voxel Workbench

Postby kkremitzki » Sat Jan 21, 2017 10:32 pm

chrisb wrote:I have a problem with the videos, I can see only two black rectangles with tiny text 'phpbb video' in the right lower corner, nothing happens on click. Anyone else having this?


This is an HTTPS issue with the forum. Open your browser''s dev console and you'll see the error:

Code: Select all

posting.php:535 Mixed Content: The page at 'https://forum.freecadweb.org/posting.php?mode=quote&f=24&p=154921' was loaded over HTTPS, but requested an insecure script 'http://phpbbex.com/api/bbmedia.js'. This request has been blocked; the content must be served over HTTPS.
User avatar
yorik
Site Admin
Posts: 8556
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Voxel Workbench

Postby yorik » Sun Jan 22, 2017 3:03 pm

kkremitzki wrote:This is an HTTPS issue with the forum.

I dont think we can fix that ourselves easily? In any case I see there is a phpbb update available, I'll update ASAP
User avatar
kkremitzki
Posts: 321
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: Voxel Workbench

Postby kkremitzki » Sun Jan 22, 2017 5:22 pm

yorik wrote:
kkremitzki wrote:This is an HTTPS issue with the forum.

I dont think we can fix that ourselves easily? In any case I see there is a phpbb update available, I'll update ASAP

Is the [video] tag implemented manually in the forum admin panel? That might be the issue. When I right click and inspect element, it looks like the HTTP request is hardcoded into each instance of the tag; note the "e src = 'http://phpbbex..."

forum.png
forum.png (67.49 KiB) Viewed 221 times