Instantly Auto Edges

27 votes
Version: 
1.0
Date Updated: 
01/17/2010
Author Name: 
Anubis

Performs auto edge on all selected Editable Meshes,
making imported Revit or AutoCAD meshes more readable.

Additional Info: 

[*] UNDO is turned OFF, so use Max Hold commands before execution!
[*] Hold CTRL key to enter threshold value (else will used default value = 5)

Speed test (PC with 4GB Ram):
Scene with all unique objects and 9 million edges end for 3.141 sec.
Which means almost 3 million edges per second !
Also large scenes with many instances end in no time !

Version Requirement: 
Tested on 3ds Max 2009
AttachmentSize
InstantlyAutoEdges_1.ms2.3 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Fabrizio17's picture

Grazie

Your script save my time after meny years that I spend for optimize STEP or IGES files. I admit I have like a drug dependance by optimizing also non visible object, but your job is a disinctoxicant medicine for me. Thank you

Anubis's picture

no prob ;)

Here is a quick function for this purpose:

fn selEdgeVis objs = (
    for o in objs do (
        edgeSelSet = #()
        for f = 1 to o.numFaces do
        for e = 1 to 3 where (getEdgeVis o f e) do
            append edgeSelSet (((f - 1) * 3) + e)
        setEdgeSelection o edgeSelSet
    )
)

and to edit the script just...

(
    --// >> insert above function here <<
    mapped fn setVisibilityEdges ...
    ...
    ...
    else (
        ...
        ...
        format "\nTotal Time:\t\t% sec.\n" ...
        --// >> insert next line code here:
        selEdgeVis filtSet
    )
)

that's it :)

my recent MAXScripts RSS (archive here)

rs3d's picture

Idea

Would be great if you select the Visible Edges right after the Auto Edge.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.