[Plugin] TIG-Split_to_plane v1.1 20130107

[Plugin] TIG-Split_to_plane v1.1 20130107

Postby TIG » Sun Oct 07, 2012 5:35 pm

TIG (c) 2013
###
TIG-Split_to_plane.rb
###
Installation: Place this file in the Plugins folder and restart Sketchup.

Usage:
Plugins menu > 'TIG-Split_to_plane' or with a suitable selection use the context-menu 'TIG-Split_to_plane'

Note: for Pro >=v.8 only...

Preselect a 'solid' object [group or component_instance].

Activate the tool.

Follow the prompts and pick 3 points to define a plane.

If you press <Enter> rather than picking the 3rd point the plane is assumed to be vertical, passing through points 1 and 2.

If points 1 and 2 are aligned vertically and you press <Enter> theres an error message and you need to pick point 3, OR abort, say by pressing <Spacebar>.

The selected object will then be split along the defined plane.

The two new part-groups made from the 'split' operation retains the original object's locked/hidden-state, shadow-casting/receiving-behavior, name*, material, layer and any attribute-dictionaries attached to it.

*If the original was a group the 'split' groups take its name, if it was a component-instance the 'split' group takes its definition name, but if that instance also had a name then this is appended to the new name inside [].

The two parts are also given a suffix to differentiate them - '-A' or '-B'.

The 'splitting' is one step undo-able.

Donations: PayPal.com info @ revitrev.org
Version:
1.0 20121007 First issue.
1.1 20130107 Now at Point 3 an alternative <Enter> press splits vertically.
Context-menu if selection suitable.
8
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] TIG-Split_to_plane v1.0 20121007

Postby jorge2011 » Sun Oct 07, 2012 6:27 pm

exelente. thank you very much :D
0

jorge2011 
 

Re: [Plugin] TIG-Split_to_plane v1.0 20121007

Postby Trogluddite » Mon Oct 08, 2012 9:01 am

That's brilliant, thanks TIG.
Beautifully simple to use - yet another of your creations that makes me think "Why wasn't that in the standard toolbox all along?"
0

Trogluddite 
PluginStore Author
PluginStore Author
 

Re: [Plugin] TIG-Split_to_plane v1.0 20121007

Postby Ben Ritter » Mon Oct 08, 2012 2:20 pm

TIG, thank you, for both of these plugins.
0

Ben Ritter 
 

Re: [Plugin] TIG-Split_to_plane v1.0 20121007

Postby gilles » Mon Oct 08, 2012 2:40 pm

May I suggest to add [ProV8] to [Plugin] so free users are aware of the restriction?
0
" c'est curieux chez les marins ce besoin de faire des phrases "
User avatar
gilles 
Top SketchUcator
 

Re: [Plugin] TIG-Split_to_plane v1.0 20121007

Postby rilian » Sat Oct 13, 2012 7:04 am

Seems like both plane tools would be very useful. Too bad they don't work on the free version.
0

rilian 
 

Re: [Plugin] TIG-Split_to_plane v1.0 20121007

Postby guanjin » Sat Oct 13, 2012 4:32 pm

qiege.gif


Good tool, if the shape of the cut is even more useful。
未命名.jpg
0
I come from China, is to learn
User avatar
guanjin 
 

Re: [Plugin] TIG-Split_to_plane v1.0 20121007

Postby tulacong » Mon Oct 15, 2012 4:02 pm

oh zeee...thank you
0

tulacong 
 

Re: [Plugin] TIG-Split_to_plane v1.0 20121007

Postby simon le bon » Tue Oct 16, 2012 12:47 am

Dear Tig,

This is the 101 eme tool links I bookmark coming from you !!!! :bounce: :D

Each are useful, some are absolutely unavoidable, the suite tools are always stunning :thumb: :thumb: :thumb:

Thank you for this new one +++

Simon
0
User avatar
simon le bon 
 

Re: [Plugin] TIG-Split_to_plane v1.0 20121007

Postby kingsi » Tue Oct 16, 2012 8:15 am

Thanks for the Ruby TIG
0
Noobtastic
User avatar
kingsi 
 

Re: [Plugin] TIG-Split_to_plane v1.0 20121007

Postby bagatelo » Thu Oct 18, 2012 9:47 pm

I see fantastic tool for this in the future. Line to cut solids.
0
While the cat's away, the mice will play
User avatar
bagatelo 
 

Re: [Plugin] TIG-Split_to_plane v1.1 20130107

Postby TIG » Mon Jan 07, 2013 5:49 pm

Here's v1.1 viewtopic.php?p=433732#p433732
Now at Point 3 an alternative <Enter> press splits vertically.
Also Context-menu if selection suitable.
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] TIG-Split_to_plane v1.0 20121007

Postby cotty » Mon Jan 07, 2013 8:42 pm

gilles wrote:May I suggest to add [ProV8] to [Plugin] so free users are aware of the restriction?

+1 :thumb:
0
User avatar
cotty 
Top SketchUcator
 

Re: [Plugin] TIG-Split_to_plane v1.1 20130107

Postby KE6CVH » Mon Jan 21, 2013 1:30 pm

Hi, I'm getting ready to download and try the awesome plugin but see where recommendations twice have been made to put proV8 on it so people know restrictions. Does that mean it will not work with version 8 free? If it works with free then I'll give it a try immediately for a much needed sketchup task. Thanks, Mike :enlight:
0

KE6CVH 
Premium Member
Premium Member
 

Re: [Plugin] TIG-Split_to_plane v1.1 20130107

Postby TIG » Mon Jan 21, 2013 1:34 pm

As it says early on in the tool's download page notes in bold "Note: for Pro >=v.8 only..."
It uses API solids-methods only availed in Pro.
Sorry...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] TIG-Split_to_plane v1.1 20130107

Postby smicha » Sat Mar 02, 2013 10:32 am

TIG,

Splitting removes co-planar edges. Is it possible to add extra option to prevent the plugin from deleting the edges?


Sebastian

BTW. This plugin is just a miracle :) Now I cannot work without it.


0

smicha 
 

Re: [Plugin] TIG-Split_to_plane v1.1 20130107

Postby TIG » Sat Mar 02, 2013 10:45 am

@Smicha

Unfortunately this tool uses the API's solid-methods, which always remove coplanar-edges from any coplanar-faces sharing a material [even when one is reversed!]: so it's an unavoidable side-effect.
If alternate coplanar-faces have different materials then their coplanar-edges are kept.
But then redrawing a few edges, or using my 'SplitSausage'/'SplitDonut' tools to reinstate the removed coplanar-edges, is done quickly enough...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] TIG-Split_to_plane v1.1 20130107

Postby smicha » Sat Mar 02, 2013 11:52 am

Thanks TIG for reply. I just figured out the proper way of using SplitSausge and this helps a lot.
0

smicha 
 

Re: [Plugin] TIG-Split_to_plane v1.1 20130107

Postby Box » Sun Oct 21, 2018 6:25 am

I've noticed an occasional oddity with this Tig, sometimes the split produces one half and a whole.
I'll add the model in case you can see what it is about this component that makes it happen.
0
User avatar
Box 
 

Re: [Plugin] TIG-Split_to_plane v1.1 20130107

Postby TIG » Sun Oct 21, 2018 1:46 pm

The problem object has several small facets forming the rounded parts.
I suspect this is the issue.
If a 'solid-tools' operation [done manually or in code] fails because tiny edges don't get made and a face is missed out, then usually it bales out with an error.
It's failing to fail properly !

The way the 'split' tool works is that a copy is made on top of the original instance, then a large 'block' group is made to one side of the defined 'plane' and it is then subtracted from the original; next another large 'block' group is made to the other side of the plane and subtracted from the copy.
If all goes well you should get two solid groups abutting at the defined 'plane'.
In your case, one side fails to be made and the subtract tool bales out leaving one of the instances unchanged, sometimes it will make the other part 'solid', but oddly it doesn't always make it as a 'solid' group on the partially successful side either - try a few tests and check it in Entity Info...
The solid-tool's subtract should fail but it doesn't in this occasional odd case !!
1
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] TIG-Split_to_plane v1.1 20130107

Postby Box » Sun Oct 21, 2018 1:53 pm

Thanks Tig, that makes sense. I know what to look for if it does it in future. It was only a random doodle in this case but I have had it happen 'rarely' when working on something specific. I took this accidental opportunity to show it to you.
Thanks again for looking and explaining.
0
User avatar
Box 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: Google Bot, hoang giang, Kevin Cucumber and 9 guests

Visit our sponsors: