Added a primitive shape function for spheres

0.6.2-post-fixes
Johan Berntsson 2009-01-14 07:16:03 +00:00
parent bfdf2479fb
commit a885d2a6ff
1 changed files with 12 additions and 0 deletions

View File

@ -247,6 +247,18 @@ namespace OpenSim.Framework
return shape; 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() public static PrimitiveBaseShape CreateCylinder()
{ {
PrimitiveBaseShape shape = Create(); PrimitiveBaseShape shape = Create();