Added a primitive shape function for spheres

This commit is contained in:
Johan Berntsson
2009-01-14 07:16:03 +00:00
parent bfdf2479fb
commit a885d2a6ff

View File

@@ -247,6 +247,18 @@ namespace OpenSim.Framework
return shape;
}
public static PrimitiveBaseShape CreateSphere()
{
PrimitiveBaseShape shape = Create();
shape._pathCurve = (byte) Extrusion.Curve1;
shape._profileShape = ProfileShape.HalfCircle;
shape._pathScaleX = 100;
shape._pathScaleY = 100;
return shape;
}
public static PrimitiveBaseShape CreateCylinder()
{
PrimitiveBaseShape shape = Create();