SET LIMB SMOOTHING This command will smooth the sharp edges of the mesh within a limb by adjusting the normals data.
Syntax
    SET LIMB SMOOTHING Object Number, Limb Number, Percentage
Parameters
    Object Number
Integer The object number
    Limb Number
Integer The limb number
    Percentage
Float A percentage value of zero will perform no smoothing and create a facet surface for the limb. A percentage value of 100 will perform full smoothing
Returns
This command does not return a value.
Description
A percentage value of zero will perform no smoothing and create a facet surface for the limb. A percentage value of 100 will perform full smoothing, averaging all normals that share a vertex position and create a smoothing effect elimiating all edges. A value between these two limits will determine the degree beyond which an edge will be smoothed or left sharp.
Example Code
    sync on : sync rate 0 : hide mouse:cls 0

    MeshNumber=1

    LimbNumber=1

    ObjectNumber=1

    load mesh "mesh.x",MeshNumber

    make object sphere ObjectNumber,10

    color object ObjectNumber,rgb(0,255,0)

    add limb ObjectNumber,LimbNumber,MeshNumber

    link limb ObjectNumber,0,LimbNumber

    offset limb ObjectNumber,1,8,0,0

    SET LIMB NORMALS 1,LimbNumber

    SET LIMB SMOOTHING 1,LimbNumber,100

    while mouseclick()=0

    rotate limb ObjectNumber,LimbNumber,0,wrapvalue(limb angle y(ObjectNumber,LimbNumber)+1),0

    sync

    endwhile

    delete mesh MeshNumber

    delete object ObjectNumber

    end
See also
BASIC3D Commands Menu Index