public override void add(UWB_BoundingVolume other) { if (other != null) { eVolumeType vt = other.getType(); if (eVolumeType.box == vt) { UWB_BoundingBox box = other as UWB_BoundingBox; add(box); } } }
public override bool intersects(UWB_BoundingVolume other) { eVolumeType vt = other.getType(); if (eVolumeType.box == vt) { UWB_BoundingBox otherBox = other as UWB_BoundingBox; return(intesectBoxBox(mMin, mMax, otherBox.getMin(), otherBox.getMax())); } return(false); }
public override void add(UWB_BoundingVolume other) { if(other != null) { eVolumeType vt = other.getType(); if(eVolumeType.box == vt) { UWB_BoundingBox box = other as UWB_BoundingBox; add(box); } } }
public void drawBoundingVolume(eLevelofDetail lod, UWB_DrawHelper drawHelper, Color color) { UWB_BoundingVolume boundingVolume = getBoundingVolume(lod); if (boundingVolume != null && drawHelper != null) { drawHelper.resetAttributes(); drawHelper.setColor1(color); drawHelper.setShadeMode(eShadeMode.smFlat); drawHelper.setFillMode(eFillMode.fmWireframe); boundingVolume.Draw(ref drawHelper); } }
public virtual bool intersects(UWB_BoundingVolume other) { return(false); }
public virtual void add(UWB_BoundingVolume other) { }
public virtual bool intersects(UWB_BoundingVolume other) { return false; }
public override bool intersects(UWB_BoundingVolume other) { eVolumeType vt = other.getType(); if (eVolumeType.box == vt) { UWB_BoundingBox otherBox = other as UWB_BoundingBox; return intesectBoxBox(mMin, mMax, otherBox.getMin(), otherBox.getMax()); } return false; }