[Plugin] Component Comparison
-
The posted version will be confused by two boxes with the same dimmension, but where one lack a face. The one I got now compares these - so even that isn't any problem.
What I do seem to have problems with is face normals - checking if the normals are facing the same direction. I think I'm running into some precision problems... -
well, great news. i imported an xfrog 3ds young birch tree and after quite some time spent converting raw geometry to components, i have made every leaf the same component. your plugin worked extremely fast despite there being about 8000 leaf component instances. for whatever reason, it missed several hundred unique leaf comps, but identifying them in outliner and running the comp comparison in two smaller batches resolved the issue.
i was also unable to run the comparison on leaf components nested in the 'sub-groups' that are default with xfrog trees. exploding the groups and using free comps, worked as expected though.
tried to convert branch and root components to the same, but no luck. the branches appear visually to have the same structure, but even with a tolerance of 500" no luck. they are quite complex meshes as you know.
pre-comparison SKP file was 102Mb. post-comparison SKP file is 45.7Mb, 8048 comp instances, 11 comp definitions. amazing!
THANK YOU, thomthom.
-
@autarchos said:
for whatever reason, it missed several hundred unique leaf comps, but identifying them in outliner and running the comp comparison in two smaller batches resolved the issue.
That reason is me. A bug. well, at least this related to one of the bugs I found.
-
A small update - 0.2.0a.
It still doesn't handle sub-groups/components. Coming soon. -
great great plugin
questions...
i work with xfrog trees, when i insert the tree in sketchup an i explode it, the leaves are individual faces, but not groups or components.
its posible to use your plugin in this case, how???
thanks an sorry for my english
greetings from spain -
You manage to explode X-Frog trees??
When I try that SU sit sinks into a bog of eternal unresponsiveness and I never had the patience to wait for it to complete.You would need each leaf to be a group or component. Chris got a plugin that groups loose geometry: http://forums.sketchucation.com/viewtopic.php?t=16154
However, when I tried that on a X-Frog tree it took ages - and again I could not bother to wait for it to complete. You might have more luck than I though. -
thanks for your link
you can reduce the xfrog tree all you want with a very good definition. you can do this by two ways:
-reducing in 3dsmax by the option Modifiers Multires after selects all geometry
-and you can open the xfrog 3.5 and CHANGE the tree (not crunch) reducing the trunk scale, the number of branches, crockedness, growth scale, etc..
its simple and when you imports in sketchup explodes very well (10 minutes). the very best xfrog have finally in sketchup less than 20 mb. -
@guaucorreo said:
-and you can open the xfrog 3.5 and CHANGE the tree (not crunch) reducing the trunk scale, the number of branches, crockedness, growth scale, etc..
Oh - So not using the detail slider? (I've just tried that, and it eventual makes the trunk flat)
You got some screens of how you managed to process your X-Frog trees? And some stats? -
its an example, the olive of the mediterranean with a lot of modifications
-
I don't see any image.
-
you can use the detail slider a bit, but be carefoul with the third branches
(and of course in xfrog 3.5 you can reduce the section of this objetcs, trunks, branches, (a circle of 12 lines you can reduce manually to 6,etcc)
-
I really need to have a proper look at the X-Frog app. Got any good resource links?
Maybe we could start a X-Frog thread to collect tips and tricks for X-Frog in SU? -
the manual XFROG REFERENCE of the xfrog 3.5 explain in detail all the process to modify a tree
i am going to work with the link you bring me to make all the leaves individual groups and then apply your plugin similar objects.
this saturday i ve got a lot of workthanksss
pedro barrera from valencia, spain -
I'm not sure if CC will work on the X-Frog trees, since I've not gotten around to test it. (I'm not sure if the leafs are identical geometry...)
And remember that it doesn't deal with sub-groups/components yet. -
the leaves are identical geometry - just a simple rectangle. at least with the models i have. i converted the leaves of a young birch to identical components with matt666's component/groups plugin: http://forums.sketchucation.com/viewtopic.php?t=17590
it is quite slow, the plugin and the process - took me several hours: select 200-300 leaves at a time, select faces only with thomthom's selection tools, use matt666's plug to convert entities to components, and then run component comp to make them all the same. don't explode the leaf groups until you've converted them all to components, then it takes only seconds. -
Ohh, it worked? yay!
Cool. The process should be easier once I get support for sub-groups/components working. -
Thom,
I downloaded and installed the plugin and found it under your menu.
I opened my little atrium where I have several windows that I need to make.
I used your "groups to components" tool to change each of the window groups you see to components.
then I rebuilt the one on the end into a window.
then I select all of the instances (each of which are separate components) and run your tool replace similar objects.
it returns a menu item that says 0 Definitions replaced. it took 0.53
any ideas on what I'm doing wrong?
if I understand this plugin correctly it should replace each of the components with one instance? and how does it know which instance I want it to use?
-
@krisidious said:
any ideas on what I'm doing wrong?
Maybe nothing, this is very early experimental code.
@krisidious said:
if I understand this plugin correctly it should replace each of the components with one instance? and how does it know which instance I want it to use?
It doesn't, it just picks one and compares it.
Note that it takes all the components/groups you select and compares it against the whole of the model.Also beware that it's not working well with sub-components. Your model appear to be a complex one with many sub-components.
If you want you can send me the model and I can have a look at it. I'd be very useful to have more sample models to test against.
-
ok I sent you the model.
what's more I cut the groups and raised them to the top level of the model and ran the script again and it replaced 9 units... although it made 2 distinct groups of components and not the 1 it should have. they were the same so I'm not sure why.
-
Hi Thom:
First let me thank you for this and all awesome plugins you make.
I got today this huge and monstrous autocad 3d file that I need to convert to sketchup in order to do my job. I was kind of depressed after i imported it because it has about 500.000 faces, most of them autocad components imported as groups. So I went into sketchucation and voila! you just did a plugin for that.I wanted to share my experience so it may help in the development of the plugin.
Since the script just went on forever with the complete model, I thought to give it a hand and use a wall made of a exactly same block repeated in multiple positions.
The plugin was quite successful as it recognized 112 of the 122 component instances. But it did it as two separate entities.
(applause!!!)
But now I have a question: In the entity info it now says that there are X nunmbers of copies of the same group. I want to turn that into X copies of the same component for easy editing and memory optimization. Is that posible? Do you think that this file might be relevant to you?
Again thank you for this plugin. It will eventually save millions of lives.
Diego
PD: Wouldnt it be nice if a plug in had a way of saying: "-Hey im not dead, I have done X numbers of operations of a total of X"?
PD2: I succeeded. I just needed to use your old plugin groups to components. It reduced the 122 to 3 o 4 copies of the same component. I will keep experimenting.
PD3: I funny thing is that when i try to edit any of those components (or groups) they dissapear until i click elsewhere and return to the model. Does anyone know why this happen?
Advertisement