* Exploring Group/Part from an app perspective.

This commit is contained in:
lbsa71
2007-08-15 16:57:47 +00:00
parent 226339cd40
commit c47bca94d2
7 changed files with 125 additions and 14 deletions

View File

@@ -110,10 +110,11 @@ namespace OpenSim.Framework.Types
}
}
public class BoxShape : PrimitiveBaseShape
{
public BoxShape() : base()
public BoxShape()
: base()
{
PathCurve = 16;
ProfileShape = ProfileShape.Square;
@@ -121,10 +122,16 @@ namespace OpenSim.Framework.Types
PathScaleX = 100;
PathScaleY = 100;
}
public void SetSide( float side )
public BoxShape(float side)
: base()
{
Scale = new LLVector3( side, side, side );
SetSide(side);
}
public void SetSide(float side)
{
Scale = new LLVector3(side, side, side);
}
public static BoxShape Default
@@ -139,4 +146,33 @@ namespace OpenSim.Framework.Types
}
}
}
public class CylinderShape : PrimitiveBaseShape
{
public CylinderShape()
: base()
{
PathCurve = 16;
ProfileShape = ProfileShape.Circle;
PCode = 9;
PathScaleX = 100;
PathScaleY = 100;
}
public CylinderShape(float radius, float heigth)
: base()
{
SetRadius(radius);
SetHeigth(heigth);
}
private void SetHeigth(float heigth)
{
Scale.Y = heigth;
}
private void SetRadius(float radius)
{
Scale.X = Scale.Y = radius*2f;
}
}
}