[Plugin] FloorGenerator ( Updated 6-Apr-2017)

[Plugin] FloorGenerator ( Updated 6-Apr-2017)

Postby sdmitch » Wed Apr 23, 2014 8:26 pm


This extension is no longer available.




Update 30-Jun-2015
Current Material taken from picked face if it has material applied.
Random Textures from folder or model. New multiple selection window.
New Irregular Polygon generator.
Option to create Pattern behind face if face represents finished floor or wall.
Option to create each Brick, Tile, etc. as a individual group.

Update 7-Mar-2015
Saves last pattern from session to session
Random texture folder selectable and saved from session to session

Update 21-Sep-2014
Corrected Random Imperfection logic and added inputs for min and max values.
Added Add Bevel size input.

Update 02-Jun-2014
Hopefully fixed the problem for those of you who insist on X'ing out of the WebDialog.
Added Toolbar Icon and a new pattern or two.

Update 13-May-2014
Latest version uploaded to the Plugin Store. Added "Seed" option to enable repeatable random results.

Update 7-May-2014
Fixed a couple of bugs dealing with align with edge and random imperfections. Added two more patterns. If you have previously downloaded and used this plugin, I strongly recommend that you use the reset option when you run this version for the first time.

Update 4-May-2014
Eliminated the Update button. All drop lists and checkboxes automatically update when selection changes or clicked. Input boxes update when changed and exited using Tab key. Added Fixed Depth option. Several new patterns added including an irregular polygon pattern.

Update 30-Apr-2014:
Changed pattern selection from Radio Buttons to a Drop List.
Added Align Texture to Edge option. The longest edge is used.
Added Hopscotch and Hexagon patterns. For Hexagon, the greater of the length and width is used as the radius/length of side.

Update 25-Apr-2014:
Added Basket Weave pattern and fixed minor bug with 0 texture size. Due to the nature of this pattern, length and width are "tied" to one another so the maximum of length or width*count is kept and the other adjusted to match.

My attempt to satisfy a request for a plugin that will generate typical floor patterns.

The plugin, when installed, will be found in Plugins>SDM Tools>Face Tool>FloorGenerator

FloorGenerator.jpg

Select a pattern option, modify the size and options as desired then click on the face to which the pattern is to be applied.

Random Position Texture moves the texture applied to each pattern face in a random direction. Rotate Texture rotates the texture applied to each pattern face by 90, 180 or a random number of degrees. Random Imperfections "unlevels" each pattern face a random amount and about a random axis. Texture size, when entered, allows you to specify the width and height of the texture applied to each pattern face. The %offset only applies to the Brick and Tile pattern options and will only be displayed when one of them is selected. The Fixed Depth option when unchecked will vary the Gap Depth by 0.5 to 1.5 the value entered.

Specific to the Wood pattern option is Fixed Length and Fixed Width. When checked, all full boards will be the length entered and all boards will be the width entered. When unchecked, both the length and width of each "row" will be random. They are independent of one another and can be used individually.

Wood.jpg
471
Last edited by sdmitch on Sat Apr 08, 2017 8:56 pm, edited 17 times in total.
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator

Postby Pixero » Wed Apr 23, 2014 8:50 pm

I've said it before, but thanks you! :ecstatic:


I think you forgot to say that if you place a folder called BTW_Textures in your plugin folder and choose use Apply material: Rand_Tex it will use all textures in that folder. Here are a few tests I've made:

Bricks01.jpg

Can you spot the tiling? No, because there is none. This is with 10 small seamless brick textures used.

floor03.jpg

This is just one single seamless texture used.

tiles01.jpg

This is also just one texture used.
12
Last edited by Pixero on Wed Apr 23, 2014 9:18 pm, edited 2 times in total.
User avatar
Pixero 
 

Re: [Plugin] FloorGenerator

Postby Vicspa » Wed Apr 23, 2014 9:05 pm

Thank you!!! :thumb:
2

Vicspa 
 

Re: [Plugin] FloorGenerator

Postby Pixero » Wed Apr 23, 2014 9:26 pm

Just two closeups that show the "Random imperfections".

tiles02.jpg


Bricks02.jpg
7
User avatar
Pixero 
 

Re: [Plugin] FloorGenerator

Postby Hieru » Wed Apr 23, 2014 9:32 pm

Really excited to try this out - looks fantastic!!!
0
User avatar
Hieru 
Premium Member
Premium Member
 

Re: [Plugin] FloorGenerator

Postby Krisidious » Wed Apr 23, 2014 9:39 pm

:ecstatic: Ahhhhh yeah Boooooi!!! :ecstatic:
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] FloorGenerator

Postby Krisidious » Wed Apr 23, 2014 9:51 pm

Any chance for custom patterns?
3
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] FloorGenerator

Postby pbacot » Wed Apr 23, 2014 11:05 pm

All hail Plugin Maestro!
0
MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] FloorGenerator

Postby utiler » Thu Apr 24, 2014 2:40 am

So many possibilities! Well done to you Sam! :thumb:
0
purpose/expression/purpose/....
User avatar
utiler 
Top SketchUcator
 

Re: [Plugin] FloorGenerator

Postby jonorman » Thu Apr 24, 2014 6:32 am

Brilliant, just Brilliant.. :-D
0

jonorman 
Premium Member
Premium Member
 

Re: [Plugin] FloorGenerator

Postby rviz » Thu Apr 24, 2014 6:50 am

Sdmitch, first off thank you for helpful tool!
Could you please polish the following things (though it was puplished as floor generator):
1. inconsistent grid origin\rotation (tried on simple cube, see pic.1)
2. additional option 'respect user's pattern- one tile per face, consistent gaps (pic.2).
3. 'don't penetrate corners' option (very important for metal panel siding\glazing)
I guess, to implement p.1 and 2, the tool would have to work with multiple faces.
4. respect adjacent faces!
5. pick up file's units (I'm on cm, for instance)?
6. presets saving?
Thank you once again.
1
User avatar
rviz 
 

Re: [Plugin] FloorGenerator

Postby srx » Thu Apr 24, 2014 8:36 am

:D Floor generator at last! Thank you sdmich! Very useful. :thumb:
0
www.saurus.rs
User avatar
srx 
 

Re: [Plugin] FloorGenerator

Postby l_breault » Thu Apr 24, 2014 12:17 pm

Thank you very much! I can't wait to give this a go!
0
Thanks,
Leo Breault
www.breaultdesignstudio.com
User avatar
l_breault 
Premium Member
Premium Member
 

Re: [Plugin] FloorGenerator

Postby sdmitch » Thu Apr 24, 2014 3:21 pm

rviz wrote:Sdmitch, first off thank you for helpful tool!
Could you please polish the following things (though it was puplished as floor generator):
Yes, I probably should have called it Pattern Generator instead.

1. inconsistent grid origin\rotation (tried on simple cube, see pic.1)
By design, the plugin aligns the pattern length with the longest edge of the face picked. In this case, I would undo and redo the face with 90 rotation selected.

2. additional option 'respect user's pattern- one tile per face, consistent gaps (pic.2).
?????????

3. 'don't penetrate corners' option (very important for metal panel siding\glazing)
I guess, to implement p.1 and 2, the tool would have to work with multiple faces.
This is a pattern generator not a groove cutter.

4. respect adjacent faces!
Nothing this plugin does should ever effect an adjacent face.

5. pick up file's units (I'm on cm, for instance)?
It does determine the units used but switches to inches or millimeters while executing then returns model to original units when exiting.

6. presets saving?
All the values for each option are saved in the registry and retrieved when needed.

Thank you once again.
1
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator

Postby rviz » Thu Apr 24, 2014 5:15 pm

sdmitch wrote:
rviz wrote:Sdmitch, first off thank you for helpful tool!
Could you please polish the following things (though it was puplished as floor generator):
Yes, I probably should have called it Pattern Generator instead.
>>>> (: I meant it's not only 'floor' but rather general building finishes modeller.
So it could be tweaked (or 'polished') for wider use.
1. inconsistent grid origin\rotation (tried on simple cube, see pic.1)
By design, the plugin aligns the pattern length with the longest edge of the face picked. In this case, I would undo and redo the face with 90 rotation selected.
>>> I see. But may for vertical\ surfaces the horizontal direction set the lenth?

2. additional option 'respect user's pattern- one tile per face, consistent gaps (pic.2).
?????????
>>>>> simply every single preselected polygon will turn into the single tile piece (multiple selection would be crucial in this case). see pic.2 in my previous reply.

3. 'don't penetrate corners' option (very important for metal panel siding\glazing)
I guess, to implement p.1 and 2, the tool would have to work with multiple faces.
This is a pattern generator not a groove cutter.
>>>> I'd call it building finishes modeler. So in addition to bricks, tiles and parquet
It'd be sweet to get metal panels which have special treatment at the corners. Please
see:


BTW have you ever thought about 'groove cutter'? It's really missing


Many thanks for attention
1
Last edited by rviz on Fri Apr 25, 2014 5:18 pm, edited 1 time in total.
User avatar
rviz 
 

Re: [Plugin] FloorGenerator

Postby JQL » Fri Apr 25, 2014 4:17 pm

I'm thrilled that finally this is available in Sketchup!

Unfortunatelly, it isn't available in the download link any more...

Updating?

EDIT: Yes... Updating! Can't wait to try it out!
0
User avatar
JQL 
Premium Member
Premium Member
 

Re: [Plugin] FloorGenerator (Update 25-Apr-2014)

Postby unearthed » Wed Apr 30, 2014 1:24 pm

Thanks sdmitch, another great tool, will speed up my decks and patios no end
0
Growplan - People ∩ Plants ∩ Place

Windows 10 64b, SU 8.0.16846
Gimp, QGIS, Vectorworks 2018, Bricscad 11

unearthed 
 

Re: [Plugin] FloorGenerator (Update 25-Apr-2014)

Postby Ben Ritter » Wed Apr 30, 2014 2:29 pm

SDMitch, thank you for your generosity and talent.
0

Ben Ritter 
 

Re: [Plugin] FloorGenerator

Postby Ben Ritter » Wed Apr 30, 2014 2:31 pm

Pixero wrote:I've said it before, but thanks you! :ecstatic:


I think you forgot to say that if you place a folder called BTW_Textures in your plugin folder and choose use Apply material: Rand_Tex it will use all textures in that folder. Here are a few tests I've made:

Bricks01.jpg

Can you spot the tiling? No, because there is none. This is with 10 small seamless brick textures used.

floor03.jpg

This is just one single seamless texture used.

tiles01.jpg

This is also just one texture used.


Pixero, thank you very much.
0

Ben Ritter 
 

Re: [Plugin] FloorGenerator (Update 30-Apr-2014)

Postby sdmitch » Wed Apr 30, 2014 4:11 pm

A new update. Added two new patterns.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Update 30-Apr-2014)

Postby Oxer » Wed Apr 30, 2014 4:19 pm

Thanks you very much for this useful plugin!! :thumb:
It works perfectly on Mac & SU2014. One question, the Row2Row Offset for Brick is 0.5 by default when you use mm units, I changed to 50 in line 69 of the rb file.

@defaults=["Corner","0","Current","Yes","Yes","50","No","No","0","No","No","30","150","50","12","6","3"] if @@opt=="Brick"

Pixero wrote:I think you forgot to say that if you place a folder called BTW_Textures in your plugin folder and choose use Apply material: Rand_Tex it will use all textures in that folder.


Thanks Pixero for the info and Textures :thumb:

Another question, what units uses the Texture Size, mm, inches or pixels?
0
"The result is the end what is important is the process" by Oxer
http://www.oxervision.blogspot.com/
User avatar
Oxer 
 

Re: [Plugin] FloorGenerator (Update 30-Apr-2014)

Postby sdmitch » Wed Apr 30, 2014 5:11 pm

Oxer wrote:Thanks you very much for this useful plugin!! :thumb:
It works perfectly on Mac & SU2014. One question, the Row2Row Offset for Brick is 0.5 by default when you use mm units, I changed to 50 in line 69 of the rb file.

@defaults=["Corner","0","Current","Yes","Yes","50","No","No","0","No","No","30","150","50","12","6","3"] if @@opt=="Brick"

Thanks for pointing that out. Originally I was using a fraction(0.5) instead of a %. Once it is corrected from within the plugin and Update is clicked, that should take care of it.


Pixero wrote:I think you forgot to say that if you place a folder called BTW_Textures in your plugin folder and choose use Apply material: Rand_Tex it will use all textures in that folder.


Thanks Pixero for the info and Textures :thumb:

Another question, what units uses the Texture Size, mm, inches or pixels?

What ever units you are using in the model, either mm or inches. The API says inches but mm seemed to work for me.
0
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Update 30-Apr-2014)

Postby Oxer » Wed Apr 30, 2014 5:25 pm

I use metric units in my models for that, I suppose the Texture Size it will expressed in mm, is it so?
The Options Window is a bit little on Mac, I changed the window hight to 530 so I can see all options.

@@dlg=UI::WebDialog.new("FloorGenerator", false,"BTW",300,530,10,10,true)
0
"The result is the end what is important is the process" by Oxer
http://www.oxervision.blogspot.com/
User avatar
Oxer 
 

Re: [Plugin] FloorGenerator (Update 30-Apr-2014)

Postby Oxer » Wed Apr 30, 2014 7:15 pm

I have created a icon for the plugin.

Icon.jpg


Floor 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] FloorGenerator (Update 30-Apr-2014)

Postby Krisidious » Wed Apr 30, 2014 8:18 pm

Can we get something like this as a pattern?

Can you show us some patterns to build for you? let us help.
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] FloorGenerator (Update 30-Apr-2014)

Postby sdmitch » Wed Apr 30, 2014 9:29 pm

Krisidious wrote:Can we get something like this as a pattern?

Can you show us some patterns to build for you? let us help.


That pattern is just a bit to random I think. the closest I could get is a random length, width and thickness using the wood pattern
2
Nothing is worthless, it can always be used as a bad example.

http://sdmitch.blogspot.com/
User avatar
sdmitch 
PluginStore Author
PluginStore Author
 

Re: [Plugin] FloorGenerator (Update 30-Apr-2014)

Postby pbacot » Wed Apr 30, 2014 10:12 pm

Still after the holy grail, ay Kris? lol. I am trying to figure out how to do a stone wall surface (with SU hole punch components for windows etc.) and make some sort of detail at the corners that suggests the stone profile...

That's not bad sdmitch Should keep looking at it!
0
MacOSX MojaveSketchUp Pro v19 Twilight v2 Thea v3 PowerCADD
User avatar
pbacot 
Top SketchUcator
 

Re: [Plugin] FloorGenerator (Update 30-Apr-2014)

Postby Krisidious » Wed Apr 30, 2014 11:02 pm

pbacot wrote:Still after the holy grail, ay Kris? lol. I am trying to figure out how to do a stone wall surface (with SU hole punch components for windows etc.) and make some sort of detail at the corners that suggests the stone profile...

That's not bad sdmitch Should keep looking at it!


lmao... And I will have it.
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] FloorGenerator (Update 30-Apr-2014)

Postby Krisidious » Wed Apr 30, 2014 11:06 pm

That looks pretty dame good sdmitch... if I had used a better tiling texture it would look better.
0
By: Kristoff Rand
Home Designer
Unique House Plans
User avatar
Krisidious 
 

Re: [Plugin] FloorGenerator (Update 30-Apr-2014)

Postby rviz » Thu May 01, 2014 9:50 am

1. inconsistent grid origin\rotation (tried on simple cube, see pic.1)
By design, the plugin aligns the pattern length with the longest edge of the face picked. In this case, I would undo and redo the face with 90 rotation selected.

After 90 rotating the tool takes origins randomly: sometimes it's the upper corner, sometimes the lower one.
----
But the most important: is there place for code optimization? It takes approx 5 min to put 2k tiles (to do it manually would take may be 0.5 min :? ).
0
User avatar
rviz 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: tppaeng, Vbmz12 and 19 guests