[Plugin] 2dBoolean ver1.2 beta
85 posts
• Page 1 of 3 • 1, 2, 3
[Plugin] 2dBoolean ver1.2 betaGreetings.
This is a spinoff from Hatchfaces, as can be seen here: http://forums.sketchucation.com/viewtopic.php?f=323&t=38637 Not everyone need tiling and dialogs etc, so this is a slimmed down version. Will work with groups and components. Nested Comps, not yet.... Can be a bit unpredictable in obscure angles. A lot of transformations to get right....... Big thank you to TIG, you can read in the link how he helped me with Hatchfaces. Note: Running this tool having Driving dimension installed may crash su7(not tested on su8). Please, register (free) to access all the attachments on the forums.
Last edited by jolran on Fri Sep 02, 2011 10:10 am, edited 8 times in total.
Re: 2dBoolean ver1 betaThis plugin does a boolean on 2d geometry. It will only work on faces. So you have to have a group or component lying on a face. When you execute the plugin, the group(or comp.) will be fitted to the face shape.
Now, even if you have a group it will be turned into a component that cuts and glue to the face. So materials can be used in the 2d geometry. From version 1.1 you don't have to select a face if you are using a gluing component. NOTE: If you copy a gluing component sideways on the face, be aware that it looses it's gluing behavior from the original. In thoose cases a face need to be selected.. Please, register (free) to access all the attachments on the forums.
Last edited by jolran on Fri Sep 02, 2011 11:55 am, edited 5 times in total.
Re: 2dBoolean ver1 betait's work for any version (6,7,8) ?
Re: 2dBoolean ver1 betabe more specific? There is a problem already?
Re: 2dBoolean ver1 betaPilou is a Luddite and still often uses v6 - he's asking it the tool will work with that too...
TIG
Re: 2dBoolean ver1 betaOhh I see. SPLAT in ver 7.
This can take a while. So If you have version 7. DONT use it yet. Im using the go speed thing in commit operation=true. Did use a recursive addition. will see..
Re: 2dBoolean ver1 beta
Ver 6 is a bit old..
Re: 2dBoolean ver1 betaUse this to avoid a crash
begin model.start_operation("2dboolean", true) rescue model.start_operation("2dboolean") end Then it should work in v6/7/8... BUT your 'version trap' should also work ??? TIG
Re: 2dBoolean ver1 betaNo it crashes ver 7. I will try your trap.
Re: 2dBoolean ver1 betaYour version did not work either
This can be difficult problem to spot. Typical
Re: 2dBoolean ver1 betaI have just tested it in a v7 SKP with your code intact... and it worked fine!
As it ought... Duh! TIG
Re: 2dBoolean ver1 betaI get big instant splats all the time?? Strange that it works for you.
Anyway, I will test it more later on ver7. Don't have ruby code editor installed there, so testing is a bit painful. Won't make much difference anyway since it splats all the time Edited: Well done some tests now. It's very timeconsuming to start up sketchup from a crash every time.. So. It crashes on a more than 1 place. Where I erase the groups gp3, and gp. NOT the components(comps) wich was a little surprising. Also it crashes when making group to component at the end. Really? That's not an excuse for me to make it work for ver 7, though. IF it can be done..
Re: 2dBoolean ver1 betaSo you have SketchyPhysics installed in v7?
If so try disabling it... and retest... TIG
Re: 2dBoolean ver1 betaHah! Well spotted TIG!!
It did not exactly have SketchyPhysic installed. BUT i temporarily moved all plugins in a different folder and then it worked! So it was in the same category of problem you where thinking at. Now, I guess I will move the plugins back one after the other to see which plugins is producing the hassle. I think I learned my lesson here... Should have tested it in ver 7 before releasing.
Re: 2dBoolean ver1 betaDo the testing 'by halves' it's quicker as you exponentially zoom in... 'one by one' takes longer...
You must have a script loading that's messing with the group base class methods ??? TIG
Re: 2dBoolean ver1 betaVery nice Jolran. I'll test it out and give a report back.
Thank you! A designer is an emerging synthesis of artist, inventor, mechanic, objective economist and evolutionary strategist. - R. Buckminster Fuller
Some of my 3D crap
Re: 2dBoolean ver1 beta
Haven't got a clue yet. I guess the only way is to test where 2dboolean will crash? Doing it 'by halves' as you say.
Please do, Earthmover! A part from this tool's bugs and issues, it would be nice to hear reported info about how big file sizes and performances are in a "real life" projects. When using edges instead of materials in Layout and so on. Last edited by jolran on Fri Aug 26, 2011 9:48 am, edited 1 time in total.
Re: 2dBoolean ver1 betaWell. I have found the 1 plugin that cause the crashes. Unfortunately I can't remember where it belongs to.
It's scrambled so there is no additional info. Anyway ldd.rbs is the name of the file. I'll update it in the starting info.
Re: 2dBoolean ver1 betaThe 'ldd*' greps to Ledas's 'Driving Dimensions', which probably does mess with several base classes, perhaps ill-advisedly - the earlier .rb versions I've seen certainly did! ...
As far as I can see your tool is not doing anything at all 'awkward' then I suggest that you PM the DD author about this issue... I loaded the latest DD with the .rbs files into v7 and it breaks your tool AND my EEbyRails etc and my olde Mirror tool - which also use some group copy code too... So there could be potentially many issues uncovered here I'll PM Dmitry Ushakov... TIG
Re: 2dBoolean ver1 betaWell there you go. Driving Dimension it was. If I remember correctly I uninstalled DD because of some crashes, this file must have been left behind. I will update this in the starting page.
Yes please. That would be good. I'm sure he would want to know, since it's not breaking only the 2dboolean script. Thank you.
Re: 2dBoolean ver1 betaBTW(If you would read this). Is it working for you, Pilou?
Re: 2dBoolean ver1 betaI obtain that with the V6, but I don't very well understood what must be inside the rectangle ?
An image, a texture, a color...? (here it's a texture) Result is on the right Please, register (free) to access all the attachments on the forums.
Re: 2dBoolean ver1 betaIn your example the 'face' is the blank top of the box, the 'group' is the face with the grouped 'image' material.
Select both then run the tool The result is that the grouped 'image' is trimmed to fit on the select face If the grouped 'image' were smaller and arrayed like tiles then the whole lot would would be trimmed...like this Please, register (free) to access all the attachments on the forums. TIG
Re: 2dBoolean ver1 betaOk. I should have made a better tutorial about this. Sorry
Tig has illustrated the whole purpose of the tool. It might not be clear WHY use this tool when you visually can get the same result from a material IN Sketchup. BUT when used with Layout to simulate vector color and edges, for printing you will get much more precision in quality. And edges can be used with styles. So some pretty nice sketchy effects can be made. This tool wasent originaly designed to use whole faces to texture and color things, it's an intersect tool for edgepatterns. From that perspective, modeling all those edge-patterns each time can be very tedious, so hence this tool.. The main difference compared to Sketchups internal intersect tool is that the face materials are kept, by turning them into a cutting component. I'm experiencing a little inconsistency in the intersections(you can call it a bug), so I will have a look at that. Faces with holes dont get erased at times.
Re: 2dBoolean ver1 betaSo I have made the exact inverse Now all works like a charm in the V6! Bravo! ![]() Except you have created a group (the initial group floating in the space with texture in my case now empty but always present! ) that you must kill after the process! You can only kill it with the Outliner! Please, register (free) to access all the attachments on the forums.
Re: 2dBoolean ver1 betaNice Pilou. From judging at your pictures, that is the desired behavior of the plugin.
What do you mean exactly? There is a group I have forgoten to delete? But maybe that method doesent work on SU6. Do you have this problem on all su versions? If you doubleclick the component in the outliner (to enter the group) and then exit again, the boundingbox will be reset. But that is just a workaround if this method doesent work on older su versions. Thanks for the feedback Pilou Please test in on holes and such.. It should work on all standard axis(Su views), but sometimes it fails on "in between" angles. I'm working on a solution to resque if the calculation fails.
Re: 2dBoolean ver1 betaIf you have an 'empty' group [or definition] that's been made or just emptied within a start/commit block, then it should be auto-deleted at the 'commit' [this is also a way to remove just one definition from the model - empty its entities...]
TIG
Re: 2dBoolean ver1 betaI did not know that. Good info. Garbage collection? Well in this case all the groups and defs are made within the block, so all good? Of course the group or definition would have to empty..
Re: 2dBoolean ver1 betaOf course if you have references to the groups etc then a simple group.erase! or inside a start/commit block the group.entities.erase_entities(group.entities.to_a) will both remove that one group [or instance OR definition when entities go!]... or groups[0]/parent.entities.erase_entities(groups) [where 'groups' is an array of all temporary groups]... will all work !
TIG
Re: 2dBoolean ver1 betaCool. So you can erase the group by erasing it's entities while inside a start/commit block? That could be useful, thanks.
SketchUcation One-Liner AdvertsNeed SketchUp Books, Models, Styles or Textures? Check out our One Stop Shop for SketchUp.
Premium Members get 20% discount!
85 posts
• Page 1 of 3 • 1, 2, 3
|