Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.GetNumberOfSides C# (CSharp) Method

GetNumberOfSides() protected method

protected GetNumberOfSides ( ISceneChildEntity part ) : int
part ISceneChildEntity
return int
        protected int GetNumberOfSides(ISceneChildEntity part)
        {
            int sides = part.GetNumberOfSides();

            if (part.GetPrimType() == PrimType.SPHERE && part.Shape.ProfileHollow > 0)
            {
                // Make up for a bug where LSL shows 4 sides rather than 2
                sides += 2;
            }

            return sides;
        }
LSL_Api