[Script] Grouping faces to allow normal smoothing

Discussion related to the exporter plugin for SketchUp.

Moderators: Ratow, coordinators

[Script] Grouping faces to allow normal smoothing

Postby mimhotep » Fri Mar 26, 2010 4:52 pm

As seen in the main development topic, if objects are not grouped nor inside a component, Sketchup assign face normals to all the vertices.
The results of this behaviour are shown in this thread.
As a workaround, or until a solution is found to integrate inside SU2LUX, I coded this tiny script to group all "ungrouped" faces in a model, with a corresponding feature to ungroup those faces to their initial condition.

Hoping it could be useful in some way.

GOF_menu.jpg
Snapshot of the plugin menu
GOF_menu.jpg (3.14 KiB) Viewed 1186 times
Attachments
group_odd_faces.zip
(602 Bytes) Downloaded 94 times
Happy rendering
Cosimo Briganti aka Mimmo Briganti aka mImhotep
User avatar
mimhotep
 
Posts: 61
Joined: Wed Nov 25, 2009 12:20 pm
Location: Manduria (TA) - Italy

Re: [Script] Grouping faces to allow normal smoothing

Postby ivan.alvarado » Mon Mar 29, 2010 4:15 pm

Thank you very much. This will be helpful, while not made from su2lux

Best Regards!!
ivan.alvarado
 
Posts: 18
Joined: Wed Feb 03, 2010 1:28 am

Re: [Script] Grouping faces to allow normal smoothing

Postby mimhotep » Tue Mar 30, 2010 12:40 pm

Thank you ivan.alvarado!

A small fix!
Attachments
group_odd_faces.zip
(627 Bytes) Downloaded 84 times
Happy rendering
Cosimo Briganti aka Mimmo Briganti aka mImhotep
User avatar
mimhotep
 
Posts: 61
Joined: Wed Nov 25, 2009 12:20 pm
Location: Manduria (TA) - Italy


Return to SU2LUX (SketchUp Exporter)

Who is online

Users browsing this forum: No registered users and 0 guests

cron