diff options
| author | Dave Parks <davep@lindenlab.com> | 2010-10-01 13:33:14 -0500 | 
|---|---|---|
| committer | Dave Parks <davep@lindenlab.com> | 2010-10-01 13:33:14 -0500 | 
| commit | 11fce2013426c8472e9dba5dbf552fdd55259b86 (patch) | |
| tree | f0d7a1ca50c39b81aa9b1c6c8265702806c7edc6 /indra/llmath | |
| parent | 845f0049324d588de1c4f5096e646b5c8a7e1e8c (diff) | |
Add llhysicsshapebuilderutil
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) | 
