From aae94a8c802817e2d103c2d112fc3a280acc0c01 Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Wed, 1 Jul 2009 01:27:36 +0000 Subject: add some more intuitive overloads for PrimitiveBaseShape SetPathRange and SetProfileRange --- OpenSim/Framework/PrimitiveBaseShape.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs index cb203b9..b646f92 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs @@ -316,6 +316,12 @@ namespace OpenSim.Framework _pathEnd = Primitive.PackEndCut(pathRange.Y); } + public void SetPathRange(float begin, float end) + { + _pathBegin = Primitive.PackBeginCut(begin); + _pathEnd = Primitive.PackEndCut(end); + } + public void SetSculptData(byte sculptType, UUID SculptTextureUUID) { _sculptType = sculptType; @@ -328,6 +334,12 @@ namespace OpenSim.Framework _profileEnd = Primitive.PackEndCut(profileRange.Y); } + public void SetProfileRange(float begin, float end) + { + _profileBegin = Primitive.PackBeginCut(begin); + _profileEnd = Primitive.PackEndCut(end); + } + public byte[] ExtraParams { get -- cgit v1.1