PrimitiveBaseShape boxShape = PrimitiveBaseShape.CreateBox();
PrimitiveBaseShape cylShape = PrimitiveBaseShape.CreateCylinder(); cylShape.PathCurve = (byte)Extrusion.Flexible; cylShape.PathBegin = 0.2f; cylShape.ProfileBegin = 0.25f; cylShape.ProfileHollow = 0.25f;
PrimitiveBaseShape sphereShape = PrimitiveBaseShape.CreateSphere(); sphereShape.PathCurve = (byte)Extrusion.Straight; sphereShape.PathScaleX = 1.5f; sphereShape.PathScaleY = 1.5f; sphereShape.ProfileCurve = (byte)ProfileShape.Rectangle;This code creates a sphere shape with straight extrusion curve and customized path and profile parameters. In summary, the OpenSim.Framework PrimitiveBaseShape class provides methods and properties to customize and create different primitive shapes used in virtual world environments.