[Plugin] Voxelize - Updated 2011-04-04

Re: [Plugin] Voxelize - Updated 2011-04-04

Postby TheDro » Sat Jun 11, 2011 2:11 pm

I might eventually get to adding that feature but it's hard to say when. I've been pretty busy this summer and plan to be until September so I might not get to programming any time soon. I just checked out some of the methods of components (instance and definition) and there is a "bounds" method (not found in the api documentation...) which I could use to run my script. This means it should be possible to make it work for components but I might not get to it any time soon.

Have a great summer :D .
0

TheDro 
 

Re: [Plugin] Voxelize - Updated 2011-04-04

Postby TIG » Sat Jun 11, 2011 2:20 pm

Of course you could always explode the component-instance and immediately group the highlighted geometry that results... now you have a group to process...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Voxelize - Updated 2011-04-04

Postby Dave R » Sat Jun 11, 2011 2:25 pm

That's true, TIG. I guess for no more often than I would use the plugin, that wouldn't be too much trouble.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: Voxelize

Postby leminilab » Sun Jun 12, 2011 2:56 pm

Rich O'Brien wrote:This screams out for Sketchy Physics to drop all those cubes.

:thumb: That's what I thought too!
Can't wait to see that! :bounce:
0
- "Live every day as if it were your last and then some day you'll be right."
- "ThomThom rules!!!"

leminilab 
Premium Member
Premium Member
 

Re: [Plugin] Voxelize - Updated 2011-04-04

Postby octopus2 » Thu Jun 23, 2011 11:32 pm

Is there a way of knowing how many cubes were generated?
0

octopus2 
 

Re: [Plugin] Voxelize - Updated 2011-04-04

Postby Dave R » Fri Jun 24, 2011 1:18 am

Since the plugin creates the cubes as instances of a component, select one of them and look at the Entity Info box. It'll tell you how many there are.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Voxelize - Updated 2011-04-04

Postby TheDro » Fri Jun 24, 2011 1:33 am

If you open up Window>>Ruby Console, before running the plugin, the debug information will tell you how many cubes were created, among other things. The other things are the amount of time each step takes to run. This is probably more helpful to me than to you but remember, this is still in beta :D.
0

TheDro 
 

Re: [Plugin] Voxelize - Updated 2011-04-04

Postby Flashhawk » Tue Aug 02, 2011 10:54 pm

You are kidding me right? I mean you must kid me!! I did this by hand last week!!! I was totally not aware of your script and i made a voxelized soldier for a 3d Print project (3mm or 1/600 scale infantry) by overlaying a 3d-warehouse model with a matrix of 30x30x30 voxel and then deleting everything that was not used... (like in Michelangelos "I chipped off everything that did not look like a lion") Man i will so much use this next time!!!! Thanks alot!
Flashhawk
0

Flashhawk 
 

Re: [Plugin] Voxelize - Updated 2011-04-04

Postby Dan Rathbun » Wed Aug 03, 2011 4:01 am

TheDro wrote: I just checked out some of the methods of components (instance and definition) and there is a "bounds" method (not found in the api documentation...)

Yes it is.

bounds() is defined in class Drawingelement

Group, ComponentDefinition, ComponentInstance are all subclasses of Drawingelement, so they inherit their superclass' instance methods.

At the console:
Sketchup::Group.superclass()
>> Sketchup::Drawingelement

Sketchup::Drawingelement.superclass()
>> Sketchup::Entity

.. so they also have all Sketchup::Entity instance methods. And Sketchup::Entity is a subclass of Object so they have all of those instance methods, and module Kernel is mixed into Object, so they will have of those methods.
0
    I'm not here much anymore. But a PM will fire email notifications.
    User avatar
    Dan Rathbun 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] Voxelize - Updated 2011-04-04

    Postby pilou » Mon Mar 11, 2013 7:41 pm

    Try Qubicle :)
    0
    Last edited by pilou on Tue Oct 22, 2013 1:24 pm, edited 1 time in total.
    Frenchy Pilou
    Is beautiful that please without concept!
    Speedy Galerie
    User avatar
    pilou 
    Top SketchUcator
     

    Re: [Plugin] Voxelize - Updated 2011-04-04

    Postby Anton_S » Mon Mar 11, 2013 7:57 pm

    :lol: Does anyone play Minecraft? -- everything is made of cubes
    0

    Anton_S 
    PluginStore Author
    PluginStore Author
     

    Re: [Plugin] Voxelize - Updated 2011-04-04

    Postby Oxer » Thu Nov 28, 2013 12:56 pm

    Hi,
    Thanks for the plugin, I have made an icon for the plugin but I don't know ruby code to create the toolbar for the plugin, if you are insterested here the icons.

    Voxelize Icon.jpg


    Voxelize Icons.zip
    1
    "The result is the end what is important is the process" by Oxer
    http://www.oxervision.blogspot.com/
    User avatar
    Oxer 
     

    Re: [Plugin] Voxelize - Updated 2011-04-04

    Postby iasef25 » Tue Dec 03, 2013 11:42 am

    Hi,

    How can I count the the boxes (cubes) after voxelization? Is there any automatic method to count it?

    Thank you.

    Iasef.
    0

    iasef25 
     

    Re: [Plugin] Voxelize - Updated 2011-04-04

    Postby Dave R » Tue Dec 03, 2013 12:00 pm

    iasef25 wrote:Hi,

    How can I count the the boxes (cubes) after voxelization? Is there any automatic method to count it?

    Thank you.

    Iasef.


    The answer to your question is just a few posts above yours. It's amazing what you'll see if you spend a few seconds looking. ;)

    Since the plugin creates the cubes as instances of a component, select one of them and look at the Entity Info box. It'll tell you how many there are.
    0
    Etaoin Shrdlu


    %

    (THERE'S NO PLACE LIKE)

    G28 X0.0 Y0.0 Z0.0

    M30

    %
    User avatar
    Dave R 
    Global Moderator
     

    Re: [Plugin] Voxelize - Updated 2011-04-04

    Postby Box » Tue Dec 03, 2013 12:28 pm

    You can say that again.
    0
    User avatar
    Box 
     

    Re: [Plugin] Voxelize - Updated 2011-04-04

    Postby iasef25 » Tue Dec 03, 2013 2:16 pm

    Hi Dave R,

    Thank you so much !
    :)

    Iasef.
    0

    iasef25 
     

    Re: [Plugin] Voxelize - Updated 2011-04-04

    Postby pilou » Mon Apr 14, 2014 11:03 am

    Qubicle 2 soon! :D

    0
    Frenchy Pilou
    Is beautiful that please without concept!
    Speedy Galerie
    User avatar
    pilou 
    Top SketchUcator
     

    Re: [Plugin] Voxelize - Updated 2011-04-04

    Postby fionmacool » Sun Aug 31, 2014 11:51 pm

    Cool plugin. Cheers.
    0
    Zere are still some architectes zat do not know ow to use ze SketchUp..... Zis is unbelievable....
    User avatar
    fionmacool 
    Premium Member
    Premium Member
     

    SketchUcation One-Liner Adverts

    by Ad Machine » 5 minutes ago



    Ad Machine 
    Robot
     

    Previous


     

    Return to Plugins

    Who is online

    Users browsing this forum: Mouy Suong and 10 guests

    Visit our sponsors: