No, parsing 0 as smooth angle would disable smoothing. To retain default behavior, parse 180 as the smooth angle. The original function smoothes everything, which is not always a good idea. A more moderate 30 degrees smooth angle is probably a better default - meaning: Faces with less than 30 degrees in between, share normals.
Jesper -----Oprindelig meddelelse----- Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne af Reed Hedges Sendt: 11. februar 2007 22:55 Til: Discussion about lib3ds Emne: Re: [Lib3ds-devel] Custom smooth angle on normal calculation Jesper Knudsen wrote: > Hi all > > These few fixes adds custom smoothing angle to normal calculation. The extra > line of code checks if the touching face normal is less than 'smooth angle' > away from face normal in question. > > - Jesper Knudsen > > void > //--> (1) new smooth angle argument > lib3ds_mesh_calculate_normals(Lib3dsMesh *mesh, Lib3dsVector *normalL , > Lib3dsFloat smoothangle_deg ) Will it behave the same as the old function if smoothangle_deg is 0 or something? If so then let's add a new function that does this, and retain the old function with this name (but it simply calls the new one). Reed ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ lib3ds-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lib3ds-devel ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ lib3ds-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lib3ds-devel
