Beispiel #1
0
 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);
         }
     }
 }
Beispiel #2
0
        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);
         }
     }
 }
Beispiel #4
0
        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);
            }
        }
Beispiel #5
0
 public virtual bool intersects(UWB_BoundingVolume other)
 {
     return(false);
 }
Beispiel #6
0
 public virtual void add(UWB_BoundingVolume other)
 {
 }
 public virtual bool intersects(UWB_BoundingVolume other)
 {
     return false;
 }
 public virtual void add(UWB_BoundingVolume other)
 {
 }
        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;
        }