diff options
Diffstat (limited to 'OpenSim/Framework/PrimitiveBaseShape.cs')
-rw-r--r-- | OpenSim/Framework/PrimitiveBaseShape.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs index adb55aa..2dfc321 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs | |||
@@ -247,6 +247,18 @@ namespace OpenSim.Framework | |||
247 | return shape; | 247 | return shape; |
248 | } | 248 | } |
249 | 249 | ||
250 | public static PrimitiveBaseShape CreateSphere() | ||
251 | { | ||
252 | PrimitiveBaseShape shape = Create(); | ||
253 | |||
254 | shape._pathCurve = (byte) Extrusion.Curve1; | ||
255 | shape._profileShape = ProfileShape.HalfCircle; | ||
256 | shape._pathScaleX = 100; | ||
257 | shape._pathScaleY = 100; | ||
258 | |||
259 | return shape; | ||
260 | } | ||
261 | |||
250 | public static PrimitiveBaseShape CreateCylinder() | 262 | public static PrimitiveBaseShape CreateCylinder() |
251 | { | 263 | { |
252 | PrimitiveBaseShape shape = Create(); | 264 | PrimitiveBaseShape shape = Create(); |