[Plugin] Polyreducer 0.1

[Plugin] Polyreducer 0.1

Postby Whaat » Sat May 17, 2008 4:29 am

Update 2019-07-26: Hey there! Polyreducer is a really old and slow plugin! It has a lot of major limitations. If you are looking for a new, fast and incredibly powerful polygon reduction extension for SketchUp, you should check out Skimp at https://skimp4sketchup.com. Skimp can also import and simplify fbx, obj, stl, among other file formats.

Below is the original post from 2008.

-----------------
Hi all,

I want to release this script so I can get on to other things. It's not perfect but it works pretty well. I don't know if I will work on this script any more. Anyone is free to take over where I left off.

If anyone is interested, I have also attached the reference material for the algorithm that the plugin is based on. (Thanks to Stan Melax for the article)

Usage:

1) Select the faces that you want to perform the reduction on.
2) Right click and select 'Polyreduce' from the context menu.
3) Input the percentage reduction. For example, select 20 to reduce the number of vertices by 20%.
4) A recommended workflow is to perform several reductions using a smaller percentage (50% or less). Then, use the 'undo' and 'redo' commands to cycle through the reduction operations to choose the level of detail you are most satisfied with.

Issues:

1) It is highly recommended not to use this plugin on faces that have free edges. It will likely not work as expected.
2) The plugin must triangulate all faces that are connected to the selected faces prior to performing the reduction.
3) The plugin is quite slow and may cause SketchUp to hang. It is usuallly successful in completing the reduction if given enough time.
4) Material assignment is maintained but UVs (texture position) are not.
5
Last edited by Whaat on Fri Jul 26, 2019 3:45 pm, edited 1 time in total.

Whaat 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Polyreducer 0.1

Postby boofredlay » Sat May 17, 2008 5:10 am

Thanks Dale. This should prove very useful indeed.
I just got your Subdivide and Smooth tonight... starting to play.
0
User avatar
boofredlay 
Global Moderator
 

Re: [Plugin] Polyreducer 0.1

Postby lewiswadsworth » Sat May 17, 2008 6:03 am

Thank you, Dale.

I had an interesting conversation with John Bacus and several other Google people about your recent scripts at the AIA convention today (or rather yesterday). I'll summarize sometime tomorrow (its 1:30 AM, and I've been grading assignments for the past few hours) in your subdivide and smooth thread, because that was the item that dominated our talk.
0

lewiswadsworth 
 

Re: [Plugin] Polyreducer 0.1

Postby remus » Sat May 17, 2008 7:38 am

Cheers whaat, another useful plugin to add to the arsenal.

(perhaps i should setup a shortcut key for saying that ^ , it seems to be a recurring thing :P )
0

remus 
 

Re: [Plugin] Polyreducer 0.1

Postby watkins » Sat May 17, 2008 7:56 am

Dear Dale,

I too would like to add my thanks for a very useful script.

I have been playing around with a new bathroom design (for myself), and so I will try your script on some of the high poly models of basins and toilets I have found on the web.

Kind regards,
Bob
0

watkins 
 

Re: [Plugin] Polyreducer 0.1

Postby pichuneke » Sat May 17, 2008 10:12 am

:o


You could have earned some money! You know it. If you had developed the rb a bit more, you could have done a new plugin like subsmooth rb...

Thanks a lot. I don't have enough words.
0
Forgive my spanglish...

pichuneke 
 

Re: [Plugin] Polyreducer 0.1

Postby Jon » Sat May 17, 2008 10:28 am

Thanks so much, Dale. Very useful. :D
And thanks again for making it free. :D :D
0
Jon
KT Team member

Jon 
 

Re: [Plugin] Polyreducer 0.1

Postby solo » Sat May 17, 2008 10:47 am

Dang! another excellent addition.



Thanks mate.

We gonna have to start naming this software 'Whaats-up' soon.
0
If you see a toilet in your dreams do not use it.
User avatar
solo 
Global Moderator
 

Re: [Plugin] Polyreducer 0.1

Postby ilay7k » Sat May 17, 2008 11:02 am

Thank you!

Pete, you need assembly sketchup - whaat edition :)... don't forget other talented ruby-writers of our community ;)...
0

ilay7k 
 

Re: [Plugin] Polyreducer 0.1

Postby juju » Sat May 17, 2008 11:36 am

Sweet man, thanks!
0
Save the Earth, it's the only planet with chocolate.
User avatar
juju 
Premium Member
Premium Member
 

Re: [Plugin] Polyreducer 0.1

Postby kwistenbiebel » Sat May 17, 2008 11:43 am

Thank you Whaat.
A great contribution again to the SU community!
:thumb: :thumb: :thumb:
0

kwistenbiebel 
 

Re: [Plugin] Polyreducer 0.1

Postby Mike Lucey » Sat May 17, 2008 11:51 am

Thanks Dale,

Again a most generous ccontribution that is truly appreciated by the Community.

Mike

PS: Will you be at 3DBC, I'd like to buy you a drink!
0
User avatar
Mike Lucey 
Mayor
 

Re: [Plugin] Polyreducer 0.1

Postby johnsenior1973 » Sat May 17, 2008 12:00 pm

I've only done some quick tests, but so far I'm struggling to find any reason for this plugin. Following on from Solo, I pulled a model of Bender from the 3DW. I tried a poly reduction of 30% on it, it messed up the model slightly and actually increased the file size from 1500 kb to 1639 kb.
0

johnsenior1973 
 

Re: [Plugin] Polyreducer 0.1

Postby remus » Sat May 17, 2008 12:31 pm

File size isnt really very important unless your creating absolutely monstorous files. What does matter however is face count. You can have a 100mb file open easily if its got 50,000 faces, but if its got more than 200,000 faces your in for a hard time.

So basically face count is more important than file size pretty much all the time.
0

remus 
 

Re: [Plugin] Polyreducer 0.1

Postby ilay7k » Sat May 17, 2008 1:04 pm

ehhh...can you(Whaat) add real-time trigger as at standard smoothing tool?
0

ilay7k 
 

Re: [Plugin] Polyreducer 0.1

Postby ely862me » Sat May 17, 2008 1:11 pm

i don t know how this should woork but for me it doesn t
first i create a shape and when i clicked polyreduce it cuted half of the polys
then i take a hood of a car and i clicked polyreduce and it start counting something and doing nothing it says like that : colapsed (i wait until)2 milion from 98 edges
0
Elisei (sketchupper)
____________________________________________________________
Before no life was done on Earth it was THE LIFE ITSELF...GOD
Come and See EliseiDesign
User avatar
ely862me 
Top SketchUcator
 

Re: [Plugin] Polyreducer 0.1

Postby remus » Sat May 17, 2008 3:53 pm

No need to boast coen :P
0

remus 
 

Re: [Plugin] Polyreducer 0.1

Postby Whaat » Sat May 17, 2008 4:21 pm

solo wrote:We gonna have to start naming this software 'Whaats-up' soon.

:lol: :lol:
0

Whaat 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Polyreducer 0.1

Postby human » Sat May 17, 2008 5:08 pm

Wow, nice plugin. :thumb: compliments Subdivide and Smooth perfectly. Strange thing is...
Say i create a sphere. i right click and choose polyreduce. and it works, but i cant select all the faces with one click. now there are lots of faces that make up the poly-reduced sphere. :( Hmmmmmm...
0

human 
 

Re: [Plugin] Polyreducer 0.1

Postby Whaat » Sat May 17, 2008 6:10 pm

human wrote:but i cant select all the faces with one click. now there are lots of faces that make up the poly-reduced sphere. :( Hmmmmmm...

What do you mean by 'can't select all the faces with one click' :?

Maybe you can post a screenshot of the reduced sphere??
0

Whaat 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Polyreducer 0.1

Postby CadFather » Sat May 17, 2008 6:32 pm

Thanks Whaat - i have the feeling you will come back to it again if only as a module for something else.. very interesting!
0
User avatar
CadFather 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Polyreducer 0.1

Postby vampa » Sat May 17, 2008 8:54 pm

This is wonderful, im a noobie and have been trying to reduce polygones to a sphere until i found this, you made my day :D
0

vampa 
 

Re: [Plugin] Polyreducer 0.1

Postby farukahmet » Sun May 18, 2008 1:49 am

ely862me wrote:i don t know how this should woork but for me it doesn t
first i create a shape and when i clicked polyreduce it cuted half of the polys
then i take a hood of a car and i clicked polyreduce and it start counting something and doing nothing it says like that : colapsed (i wait until)2 milion from 98 edges


Same here :|
0

farukahmet 
 

Re: [Plugin] Polyreducer 0.1

Postby mpowell1234567890 » Sun May 18, 2008 9:36 am

Think I found a bug. Polyreducer 0.1 freezes sketchup. Whenever I try to click on the model, nothing happens..
0

mpowell1234567890 
 

Re: [Plugin] Polyreducer 0.1

Postby Gaieus » Sun May 18, 2008 9:58 am

Coen Naninck wrote:Not me. My comp starts choking at 1.2 million only. :knockout:

I could hardly get along with this model...

Statistics.jpg

:roll: :roll: :roll:

Sorry for keeping the thread OT, Dale- thanks for this gem again! :thumb:
0
User avatar
Gaieus 
 

Re: [Plugin] Polyreducer 0.1

Postby remus » Sun May 18, 2008 10:03 am

Mpowell, i think it freezes sketchup because it needs to do a lot of calculations. Its not really a bug, just a feature of the plugin.
0

remus 
 

Re: [Plugin] Polyreducer 0.1

Postby human » Sat May 24, 2008 7:32 pm

here is the sphere before polyreduce:



After:



But when i try to paint the sphere:

0

human 
 

Re: [Plugin] Polyreducer 0.1

Postby Whaat » Sun May 25, 2008 2:36 am

ok, I understand what your question is. When the plugin reduces the polygons, it creates new polygons with hard edges. If you want to be able to select all the faces with one click:

1)triple click to select all connected faces
2) go to window->soften edges
3) drag the slider to the right until all of the edges are softened.

I think you may have edge display turned off (it's in your 'styles' window). Otherwise, you probably would have noticed the hard edges and figured out the problem.
0

Whaat 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Polyreducer 0.1

Postby TIG » Tue Jun 03, 2008 9:54 am

You could check the edge state of the faces before replacement. Normal, hidden, smoothed, soft etc and then for each new face make it's edges to match...
0
Last edited by TIG on Thu Oct 22, 2009 8:06 pm, edited 2 times in total.
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Polyreducer 0.1

Postby ilay7k » Tue Jun 10, 2008 6:32 pm

How do think Dale, can you make like this http://www.donyalabs.com/files/Polypen_ ... uction.wmv ?
It will be nice feature - backtracking reducer
0

ilay7k 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: Crossdangerous, pdtphong2195, SiliyJ, warujpong and 4 guests