Notifications
Clear all

[Closed] Mesh Creation – Smoothing problem

Hi, I have a little problem. Just getting into the polygon creation business…
My box doesnt want to be properly smoother, now it looks like with very high smoothing angles. And running through all the faces and changing the degree doesnt do a thing.
Can anyone enlight me over this? Thanks a lot.
(other question how the get A face smoothing angle in mxs? I seen only the autosmooth command, there is no get smoothing angle, just command for getting and setting the smoothing gorups)


 clearlistener()
 vertarr = #()
 facearr = #()
 facelistarr = #()
 vertarr[1]=[-6.5936,-2.04629,0]
 vertarr[2]=[55.7045,-2.04629,0]
 vertarr[3]=[-6.5936,23.4186,0]
 vertarr[4]=[55.7045,23.4186,0]
 vertarr[5]=[-6.5936,-2.04629,32.2859]
 vertarr[6]=[55.7045,-2.04629,32.2859]
 vertarr[7]=[-6.5936,23.4186,32.2859]
 vertarr[8]=[55.7045,23.4186,32.2859]
 facearr[1]=[1,3,4]
 facearr[2]=[4,2,1]
 facearr[3]=[5,6,8]
 facearr[4]=[8,7,5]
 facearr[5]=[1,2,6]
 facearr[6]=[6,5,1]
 facearr[7]=[2,4,8]
 facearr[8]=[8,6,2]
 facearr[9]=[4,3,7]
 facearr[10]=[7,8,4]
 facearr[11]=[3,1,5]
 facearr[12]=[5,7,3]
 x = mesh vertices:vertarr faces:facearr
 for i=1 to x.numfaces do (
 meshop.autoSmooth x i 250.0
 )
 update x
 
3 Replies

You cannot loop through the Faces and apply autosmooth on them. This way it will always assign SG1 (No! This is not a Stargate pun!). Autosmooth wants a Facelist, since it has to compare the normals of neighboring faces.

Try this:

meshop.autosmooth x #all 45.0

Edit: don’t know if #all exists for meshops…if it throws an error try #(1…$.numfaces) instead.

actually I really liked a lot stargate.
thanks a lot!

Thanks for the helps everyone, here is my first prolygon generating script. A drawer generator. It works in max 2008&2009, I dont know if it doesn in the previous ones.

download