Function Reference / computeSubsetVertexNormalsCall this function to update the normals of the subset.
prototype
mesh.computeSubsetVertexNormals ( hMesh, nSubset, nAngle )
description
Use this function after changing the mesh or changing its vertex positions.
The angle should be between 0 and 180. If the angle between the normal of a face and the one of the adjacent faces are lesser than the nAngle value, the final normal will be a merge of the normals. Else, the normal will be the base normal of the face.
parameters
hMesh - The mesh handle
nSubset - The subset index nAngle - The angle User Contributed Notes computeSubsetVertexNormals
Welcome to the ShiVa Manual user note systemYou may contribute notes to the ShiVa manual by adding comments in the form below, and, optionally your email address and/or name. And the note will appear under the documentation as a part of the manual after about an hour. How to enter informationNote that HTML tags are not allowed in the posts, but the note formatting is preserved. LUA code blocks will be source highlighted automatically. (Double-check that your note appears as you want during the preview. That's why it is there!) The Anti bot challenge requires only to leave the field empty. What not to enterUser notes may be edited or deleted, and usually a note is deleted because of the following reasons:
Additional informationPlease note that periodically the developers go through the notes and may incorporate information from them into the documentation. This means that any note submitted here becomes the property of Stonetrip. |