Copy Object, Slice Object, Fill Holes.

Copy Object, Slice Object, Fill Holes.

I am looking for a way to programmatically slice an object up and fill in the blank walls on the sliced sides.

It will be intended for a video game and the object is pre sliced up and lives inside the original shape until destruction time.

I can do it very slowly with boolean but would prefer a script if something exists.
 

Attachments

  • Screenshot 2016-05-30 15.32.07.png
    Screenshot 2016-05-30 15.32.07.png
    47.8 KB · Views: 382
There´s no script I´m aware of - but the new Boolean tool will be more than sufficient to do so.

Cheers
Frank
 

Attachments

  • Slicing.png
    Slicing.png
    14.5 KB · Views: 374
  • Slice2.png
    Slice2.png
    24.3 KB · Views: 371
Hi Frank, that is how I am doing it now as well.
I was hoping someone might have one that is automated and closes the holes.
 
* You may want to look at the jas sample for Rigid Body 2 in the help menu in the folder for dynamics.
* Substituting the simple cubes in this example with more complex polyhedral cyclopean masonry (where each block is a cluster of 2 or more elements) should get you to the required effect of a tank turning a wall into rubble.
 
Testing the script above.

What Have I missed>?

Script is in Polygon Obj
Cheetah has restarted.
 

Attachments

  • Screenshot 2016-06-06 08.37.44.jpg
    Screenshot 2016-06-06 08.37.44.jpg
    129.9 KB · Views: 241
Last edited:
Script is obviously not in its specific place and what do you expect from that box?
The script is called Voronoi Plane for some reason. :D
It goes: Mac/HD/Users/User/Library/Application Support/Cheetah3d/Scripts/Polygonobj

Cheers
Frank
 
Sorry Frank, obviously silly on my behalf, trying to go too fast, I was putting it in the scripts folder within the application and not in the application support.

P.S.
Some of the edges are still welded but this is good enough for me to get something started, thanks everyone.

PPS Solved the edges case. not firing on all cylinders today guys.
 

Attachments

  • Screenshot 2016-06-06 11.22.52.png
    Screenshot 2016-06-06 11.22.52.png
    464.4 KB · Views: 212
Last edited:
Here is the process I was hoping to automate in case someone knows how.

Make Plane
Add Material
Name Material : Fragment

Add Voronoi

Drag plane into Voroni

turn off inner edges

adjust site count


collapse voronoi


Select a face

Disconnect

Split

and then shell each new mesh

Repeat until all faces are disconnected, split and shelled.

--------------

Shell gives me a weird irregular height even when not adjusting anything between usage.
 

Attachments

  • ShellError.jpg
    ShellError.jpg
    387.6 KB · Views: 212
Back
Top