Tesla Graphics Engine Documentation (January 2012)
BoundingVolume Class
TeslaTesla.BoundingBoundingVolume
BoundingVolume is an abstract class that represents a 3D shape that encapsulates some volume, which are used to represent a more complex 3D mesh. All volumes inherit from this base class, and contain a variety of helpful methods for checking intersections.
Declaration Syntax
C#
public abstract class BoundingVolume : ISavable
Members
All Members Constructors Methods Properties Fields



Icon Member Description
BoundingVolume()()()()
Default constructor, bounding volume will have its center at the origin.

BoundingVolume(Vector3)
Instantiate a new bounding volume with the specified center.

_center
BoundingVolume center.

BoundingType
Gets the bounding type.

Center
Gets or sets the center of the bounding volume.

Clone()()()()
Returns a new instance of this bounding volume.

ComputeFromPoints(array<Vector3>[]()[][])
Computes this bounding volume from a set of 3D points

ComputeFromPoints(DataBuffer<(Of <<'(Vector3>)>>))
Compute this bounding volume from a set of 3D points.

ComputeFromPrimitives(array<Vector3>[]()[][], array<Int32>[]()[][])
Compute this bounding volume from a set of primitives.

ComputeFromPrimitives(DataBuffer<(Of <<'(Vector3>)>>), DataBuffer<(Of <<'(Int32>)>>))
Compute this bounding volume from a set of primitives.

ComputeFromPrimitives(array<Vector3>[]()[][], array<Int16>[]()[][])
Compute this bounding volume from a set of primitives.

ComputeFromPrimitives(DataBuffer<(Of <<'(Vector3>)>>), DataBuffer<(Of <<'(Int16>)>>))
Compute this bounding volume from a set of primitives.

Contains(Vector3)
Determines if the point is contained within this bounding volume

Contains(BoundingVolume)
Determines if the volume is contained within this bounding volume.

Contains(BoundingBox)
Determines if the AABB is contained within this bounding volume.

Contains(BoundingSphere)
Determines if the sphere is contained within this bounding volume.

Contains(OrientedBoundingBox)
Determines if the oriented bounding box is contained within this bounding volume.

DistanceTo(Vector3)
Computes the distance from the center of this volume to the point.

DistanceToEdge(Vector3)
Compute the distance to the nearest edge of the volume from the point

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Intersects(BoundingVolume)
Tests if the volume intersects with this bounding volume.

Intersects(BoundingBox)
Tests if the volume intersects with this bounding volume.

Intersects(BoundingSphere)
Tests if the volume intersects with this bounding volume.

Intersects(OrientedBoundingBox)
Tests if the volume intersects with this bounding volume.

Intersects(Ray)
Tests if the ray intersects with this bounding volume.

Intersects(Ray%, Boolean%)
Tests if the ray intersects with this bounding volume.

Intersects(Plane)
Tests if the plane intersects with this bounding volume, and if not which side the volume is on relative to the plane.

Intersects(Plane%, PlaneIntersectionType%)
Tests if the plane intersects with this bounding volume, and if not which side the volume is on relative to the plane.

IntersectsWhere(Ray)
Tests where on the volume the ray intersects, if it does.

IntersectsWhere(Ray%, BoundingIntersectionRecord%)
Tests where on the volume the ray intersects, if it does.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Merge(BoundingVolume)
Merges this bounding volume with a second one. The resulting bounding volume is returned as a new object and will contain the original volumes completely. The returned value will be of the same bounding type as the caller.

MergeLocal(BoundingVolume)
Merges this bounding volume with a second one. The resulting bounding volume is stored locally and will contain the original volumes completely.

Read(ISavableReader)
Deserializes this BoundingVolume.

Set(BoundingVolume)
Sets this bounding volume to contain the specified volume or to copy from.

SetCenter(Single, Single, Single)
Sets the center of the volume from the specified coordinates.

ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Transform(Transform)
Transforms this volume by the SRT transform and creates a new bounding volume that contains the result. The bounding volume will be of the same type as the caller.

TransformLocal(Transform)
Transforms this volume by the SRT transform. The transformed volume is stored locally.

Volume
Gets the volume of the bounding volume.

Write(ISavableWriter)
Serializes this BoundingVolume.

Inheritance Hierarchy

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)