From b46999097217e5b6dc9405ab410c5f79a71aeccf Mon Sep 17 00:00:00 2001 From: lbsa71 Date: Wed, 9 Jan 2008 18:26:40 +0000 Subject: * Added helpers to convert from LSL PrimitiveParams values to PrimitiveBaseShape values --- OpenSim/Framework/PrimitiveBaseShape.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'OpenSim/Framework') diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs index 1424395..abdd570 100644 --- a/OpenSim/Framework/PrimitiveBaseShape.cs +++ b/OpenSim/Framework/PrimitiveBaseShape.cs @@ -227,5 +227,17 @@ namespace OpenSim.Framework return shape; } + + public void SetPathRange( LLVector3 pathRange ) + { + PathBegin = LLObject.PackBeginCut(pathRange.X); + PathEnd = LLObject.PackEndCut(pathRange.Y); + } + + public void SetProfileRange( LLVector3 profileRange ) + { + ProfileBegin = LLObject.PackBeginCut(profileRange.X); + ProfileEnd = LLObject.PackEndCut(profileRange.Y); + } } } -- cgit v1.1