[Plugin] SliceModeler v1.3 released!

[Plugin] SliceModeler v1.3 released!

Postby asteronimo » Sat Dec 27, 2008 10:10 am

Based on TIG's Slicer script I wrote a plugin that slices a solid 3d model along 2 axes, f.i. an X- and a Z-axis.
You can enter separate parameters for each axis. After the slices have been created it calculates the slots for each intersection which allow the cross sections to interlock in an open cell framework, like an egg crate. This process is used in rapid prototyping and can be used to create molds for casting or forming parts.

These are sometimes called slicemodels or sliceforms.
There is a nice book about this subject, "Surfaces: Explorations with Sliceforms" by John Sharp.

The script can slice complex forms like a cone, a torus or a 'C' correctly.

Tested with SU 6 on Mac OSX.

Version history:
1.0 - First working version based on TIG's Slicer script but without transforming the slots to flattened slices.
1.1 - Solved bug in slot position calculation
1.2 - Using additional slices (3 for each intersection) to calculate slot holes. Improved parameter dialog and transforming slots to flattened slices.
1.3 - Discovered that text labels add size to to bounding box dimensions. Corrected text labeling. Corrected contour cutting. Slices now keep their attributed thickness. Improved code for slicing in Z-direction and spreading the flattened slices.

IF YOU FIND THIS SCRIPT AT ALL USEFUL I'D WELCOME YOUR DONATION AT:
http://www.public-art-international.com/catalog/product_info.php/products_id/200/language/en
(newer version can be found there)

- asteronimo
1
Last edited by asteronimo on Sat Jan 10, 2009 6:58 pm, edited 10 times in total.

asteronimo 
 

Re: [Plugin] SliceModeler v1.0

Postby Ross Macintosh » Sat Dec 27, 2008 2:32 pm

Very interesting plugin asteronimo. I'm interested in your (and anyone elses) thoughts about what uses it might have.

I've had fun playing with it and have found it works well. I just posted an image here in the Gallery that features the use of your plugin. I hope you like it!

Thanks!
Regards, Ross
0

Ross Macintosh 
 

Re: [Plugin] SliceModeler v1.0

Postby asteronimo » Sat Dec 27, 2008 2:55 pm

Ross,

Most of the thanks should go to TIG for his excellent Slicer script that I used.

I use SliceModeler for rapid prototyping of 3d models made from 3mm MDF or plexiglas.
I cut the slices with a lasercutter and glue or interlock them, that's why I need the slots in the slices.

But there are still a few errors to solve (which I am sure there are) and functions to be written, so I could really use some help from greater minds than myself.

- asteronimo
0

asteronimo 
 

Re: [Plugin] SliceModeler v1.1

Postby MALAISE » Sat Dec 27, 2008 4:16 pm

Interesting idea, you've have done a lot writing this plugin. Let's test it :thumb:

MALAISE :)
0
La Connaissance n'a de valeur que partagée

MALAISE 
 

Re: [Plugin] SliceModeler v1.1

Postby bianhai » Sat Dec 27, 2008 5:03 pm

THAKS! :thumb:
0

bianhai 
Banned
 

Re: [Plugin] SliceModeler v1.2

Postby jumpjack » Tue Dec 30, 2008 6:19 pm

that's exactly the plugin I was trying to write! But I don't know anything about Ruby, I just started studying it this morning, so you can imagine results...

I was only able to get a section-plan moving across a model; I wanted to "extract" resulting section, and spread them around the model, but don't know where to start from; so I decided to just save a sequence of screenshots of the view at each step of section-plan moving, but I encountered another problem: can't figure out how to save the current view to image file!

Any idea about how to improve my script or yours to get this result? (a separate image per each slice)
0

jumpjack 
 

Re: [Plugin] SliceModeler v1.2

Postby boilingsnow » Wed Dec 31, 2008 4:09 pm

How can I adjust the thickness of the slices? It seems not to work...
0

boilingsnow 
 

Re: [Plugin] SliceModeler v1.2

Postby TIG » Wed Dec 31, 2008 5:57 pm

The original script "Slicer.rb" (by me) [ viewtopic.php?f=180&t=10413&p=68825&hilit=slicer.rb#p68820 ] simply slices the selected group/compo as desired - spacing, thickness etc are all adjustable...
What this version is trying to do is make sets of slices in two axes and then add slots into them so that 3mm foam-board cut-outs can be printed and made and then slotted together...

.
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SliceModeler v1.2

Postby asteronimo » Sat Jan 03, 2009 9:03 am

in this version the slices have no thickness. I thought there was no need for it
because my goal was to get the flattened slices with the slots. I export the flattened
slices as a DXF file and use that file in a program for my laser cutter to cut 3mm sheet
material like MDF or plexiglas.

The next version will have adjustable thickness for the slices and solve some bugs as well.
0

asteronimo 
 

Re: [Plugin] SliceModeler v1.2

Postby jumpjack » Sat Jan 03, 2009 10:13 am

asteronimo wrote:I export the flattened
slices as a DXF file and use that file in a program for my laser cutter to cut 3mm sheet
material like MDF or plexiglas.

How do you export them? One by one? Is it possible to place them side by side?
0

jumpjack 
 

Re: [Plugin] SliceModeler v1.2

Postby asteronimo » Sat Jan 03, 2009 12:51 pm

jumpjack,

From the menu: File -> Export -> 3D model -> type: Autocad 14 DXF
But maybe this menu option is only available in the SU Pro version?

The flattened slices ARE placed side by side.
0

asteronimo 
 

Re: [Plugin] SliceModeler v1.2

Postby jumpjack » Sat Jan 03, 2009 2:35 pm

asteronimo wrote:jumpjack,

From the menu: File -> Export -> 3D model -> type: Autocad 14 DXF
But maybe this menu option is only available in the SU Pro version?

The flattened slices ARE placed side by side.

yes, DXF export is only available in pro version.

But I can't see side-by-side slices! Do they appear only in exported model? I can only see a sliced model, but slices are still together.
Exporting to raster format would be the same for me...
0

jumpjack 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby asteronimo » Sat Jan 03, 2009 5:04 pm

jumpjack,

Please check my first post in this thread.
I uploaded SliceModeler v1.3.
Hopefully that version works for you.
0

asteronimo 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby jumpjack » Sat Jan 03, 2009 8:47 pm

asteronimo wrote:jumpjack,

Please check my first post in this thread.
I uploaded SliceModeler v1.3.
Hopefully that version works for you.


Thanks, I tested it.
Apart for a little bug due to missing default value for slices axis, it works fine, but I can just see all slice "piled up", so I must move thm by hand to place them on the same plan, which is quite uncomfortable.

I mean, from drawing 1 I get drawing 2, but I'd need drawing 3. Is this possible? It's very tricky to place various slices on the same plan by hand...
0

jumpjack 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby asteronimo » Sat Jan 03, 2009 8:53 pm

Can you send me the drawing you are using?
And are you sure you are using the right version?
Because there should be default values and the flattened slices should spread out nicely.
See the picture on the url in the first post of this thread.

What SU version do you use, and wat is your OS?
I tested in SU 6 Pro on Mac OSX.
0

asteronimo 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby Dave R » Sun Jan 04, 2009 1:22 pm

I can see a possible woodworker's application for this. It could be useful for creating templates for molds for laminating veneers to make complex shapes. Especially if they are compound curves. The illustration isn't a compund curve of course but gives the idea.
drawer.jpg


It would be nice if the plugin would give a thickness to the slices so that both sides of each part of the mold would be recognizable but that's alright.
0
Inspecting mirrors is a job I could easily see myself doing.

3 out 4 people make up 75% of the population.
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] SliceModeler v1.3 released!

Postby asteronimo » Sun Jan 04, 2009 1:59 pm

Dave R,

Go back to my first post in this thread and get the script there.
The latest version gives thickness to the slices.
0
Last edited by asteronimo on Sat Jan 10, 2009 8:04 pm, edited 1 time in total.

asteronimo 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby jumpjack » Sun Jan 04, 2009 2:03 pm

Sorry, my fault: after first slicing, when I saw the new dialog I thought it was the same of the first one shown again, so I canceled it.....
I didn't understand it was a multiple-stages input!
Maybe all inputs should be inserted by user into a single dialog at the beginning? (but this would require checkboxes into dialog, and I don't know if they are supported).

Thanks.
0

jumpjack 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby Dave R » Sun Jan 04, 2009 2:16 pm

Yes, I have the latest version but I can't seem to figure out how to generate just the mold shapes as I show in the image above. Perhaps you could demonstrate?

mold.skp
0
Inspecting mirrors is a job I could easily see myself doing.

3 out 4 people make up 75% of the population.
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] SliceModeler v1.3 released!

Postby jumpjack » Sun Jan 04, 2009 2:20 pm

Ok, now it's working for me.
But I can't figure out how to get slices as thick as their distance: using same number as input does not work, I always can see some empty space between slices.
0

jumpjack 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby TIG » Sun Jan 04, 2009 5:03 pm

Dave R wrote:Yes, I have the latest version but I can't seem to figure out how to generate just the mold shapes as I show in the image above. Perhaps you could demonstrate?

mold.skp

SlicModeler makes slices on two chosen axes and puts slots into them so when you make the physical pieces they'll slot together into a 3D shape...
I think that my original "Slicer" does more what you want... select the item and run Slicer - set the spacing at 1" and slice at 3/4" (1/4" gap), for your example you'd use Y axis. Don't adjust the spacing and finally say that you want flattened slices... You should then get what you want...

.
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] SliceModeler v1.3 released!

Postby Dave R » Sun Jan 04, 2009 5:12 pm

Thanks TIG.

You are indeed correct as you always are. Very good.

Dave
0
Inspecting mirrors is a job I could easily see myself doing.

3 out 4 people make up 75% of the population.
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] SliceModeler v1.3 released!

Postby cpeep » Sun Jan 04, 2009 7:08 pm

Thanks for posting on my blog about this. I had toyed with the idea of using Sketchup for sliceforms, but didn't realize you could write a plugin to slice up ANY shape. Fabulous!! I'm going to play around with it a bit. Stay tuned.

Carol
Extreme Cards and Papercrafting
http://extremecards.blogspot.com
0

cpeep 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby cpeep » Tue Jan 27, 2009 6:51 pm

I've had the opportunity to play around with this plugin a little. It works quite well, but I found that very often I want my center slice to cut through the center point of the model, thus creating two slices that intersect along the center line of each other. (The plugin creates four intersecting slices at the center of the model, equidistant from the center).

Maybe I missed a way to shift the slices along the model?

Carol
Extreme Cards and Papercrafting
0

cpeep 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby paolo99 » Thu Feb 12, 2009 5:00 pm

asteronimo - Is there any support for the new version. I've got a bit of a problem...

Just in case anyone can help -

I'm trying to slice an object made up of two different pieces - they are grouped so they do look like one. The object is a available to form the the Sketchup 3d Warehouse. It's a mushroom - "Mushroom Pilz' by moom.

The problem is that the slicer always seems to see the model as two separate entities - which, technically speaking it is. Is there a way to join faces in Sketchup?

If someone with more of an understanding of what's going on can get this to work properly, can you let me know.

Cheers

Paolo

p.s. It doesn't always ask if I want to output the flat images. This plugin clearly needs work if it's not a freebie!! WASTE OF TIME :!:
0

paolo99 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby xrok1 » Mon Mar 09, 2009 5:37 am

very nice. i've had this for a while but never tried it out till now. its very cool.

i do however have a file that it won't complete on, instead of discribing the problem i'll just post the file. could you please take a look at it to verify?
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby Ecuadorian » Mon Mar 09, 2009 6:13 am

Before using the slicemodeler, try getting rid of the internal faces. Make the whole model a single solid.
0

Ecuadorian 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby xrok1 » Mon Mar 09, 2009 6:25 am

thanks for the script. :D

and thanks for the tip. ;)
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby dcoop58 » Mon Apr 13, 2009 8:35 pm

Anybody using SliceModeler v1.4?
0
It's Technical...............

dcoop58 
 

Re: [Plugin] SliceModeler v1.3 released!

Postby xrok1 » Mon Apr 13, 2009 8:40 pm

dcoop58 wrote:Anybody using SliceModeler v1.4?

????????????????????????
0
“There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

http://www.Twilightrender.com try it!

xrok1 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Artisan Organic Toolset - a set of powerful organic modeling tools.

Premium Members get 20% discount!

Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: barnabygunning, doraemol, gregw, long and 11 guests

Visit our sponsors: