Raytesting and Voxels, exploring possible cnc toolpath simulation

voxels! hur!

code

This code is pretty simple, it grabs the bounding box of the mesh, and walks through it x,y,z by the size of one voxel cell, then it fires a ray cast in all 6 axes from each of those positions, if anything is hit, it instances a cube at the hit location.

Advertisements
This entry was posted in Realtime Interactive Visualization. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s