User Manual 3.3 Disk

De Wiki
Aller à : navigation, rechercher

Definition

Disks are used for the finite rectangle cones.

Disk.PNG

Implementation

The Disk object implements the SolidShape interface and extends the Disk and abstract ellipse class. Please refer to the Disk and AbstractEllipse javadoc for a complete list of public methods.


Instantiation

The disk object is built from a centre (Vector3D), one vector representing the normal to the disk surface (Vector3D) and one radius :

Vector3D center = new Vector3D(1.0, 1.0, 1.0);
Vector3D normal = new Vector3D(1.0, 1.0, 0.0);
double radius = 1;
Disk disk = new Disk(center, normal, radius);

The local frame of the disk is built from the normal vector.

Usage

See abstract ellipse and interactions with geometrical objects.