diff options
Diffstat (limited to 'indra/llmath')
| -rw-r--r-- | indra/llmath/llvolume.cpp | 10 | ||||
| -rw-r--r-- | indra/llmath/llvolume.h | 2 | 
2 files changed, 12 insertions, 0 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp index 1f15d5465c..b3a6880011 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -3044,6 +3044,16 @@ BOOL LLVolume::isFlat(S32 face)  } +bool LLVolumeParams::isSculpt() const +{ +	return mSculptID.notNull(); +} + +bool LLVolumeParams::isMeshSculpt() const +{ +	return isSculpt() && ((mSculptType & LL_SCULPT_TYPE_MASK) == LL_SCULPT_TYPE_MESH); +} +  bool LLVolumeParams::operator==(const LLVolumeParams ¶ms) const  {  	return ( (getPathParams() == params.getPathParams()) && diff --git a/indra/llmath/llvolume.h b/indra/llmath/llvolume.h index b4b59fd402..857188ed28 100644 --- a/indra/llmath/llvolume.h +++ b/indra/llmath/llvolume.h @@ -646,6 +646,8 @@ public:  	const F32&  getSkew() const			{ return mPathParams.getSkew();			}  	const LLUUID& getSculptID() const	{ return mSculptID;						}  	const U8& getSculptType() const     { return mSculptType;                   } +	bool isSculpt() const; +	bool isMeshSculpt() const;  	BOOL isConvex() const;  	// 'begin' and 'end' should be in range [0, 1] (they will be clamped)  | 
