public class ConeFrustum extends Model
Cone
,
ConeSector
lineSegmentList, vertexList, visible
Constructor and Description |
---|
ConeFrustum()
Create a frustum of a right circular cone with its base in the
xz-plane, a base radius of 1, top radius of 1/2, and height 1/2.
|
ConeFrustum(double r1,
double r2,
double h,
int n,
int k)
Create a frustum of a right circular cone with its base in the
xz-plane, a base radius of
r1 , top radius of r2 ,
and height h . |
addLineSegment, addLineSegment, addVertex, setColor, setColorRandom, setRandomColors, setRandomLineSegmentColors, toString
public ConeFrustum()
public ConeFrustum(double r1, double r2, double h, int n, int k)
r1
, top radius of r2
,
and height h
.
Notice that this model works with either r1 > r2
or
r1 < r2
. In other words, the frustum can have its "apex"
either above or below the xz-plane.
There must be at least three lines of longitude and at least two circles of latitude.
r1
- radius of the base of the frustumr2
- radius of the top of the frustumh
- height of the frustumn
- number of circles of latitudek
- number of lines of longitude