cone
A truncated conus with circular or ellipical bases.
Signatures
- cone()
- cone( float height, float radius1, float radius2 )
- cone( float height, float radius1, float radius2, vector position )
- cone( float height, float radius1X, float radius1Y, float radius2X, float radius2Y )
- cone( vector direction, float radius1, float radius2 )
- cone( vector direction, vector radial1A, vector radial1B, vector radial2A, vector radial2B )
- cone( vector direction, vector radial1A, vector radial1B, vector radial2A, vector radial2B, vector position )
Details
Constructors (1), (2), (3) and (5) create cones with two circular bases. The bases radii are 1.0 and 0.5 for constructor (1), radius1 and radius2 for constructors (2), (3) and (5).
Constructors (4), (6) and (7) can have elliptical bases with two radii each. The radii values are radius1X, radius1Y, radius2X, radius2Y for basis 1 and 2 in X and Y directions (constructor (4)) or the length of vectors radial1A, radial1B, radial2A and radial2B for constructors (6) and (7).
For constructors (1) to (5) the basis plane is orthogonal to the cone direction (i.e. the plane normal is parallel to the direction vector) whereas constructors (6) and (7) allow a tilting of the basis planes. This is defined by the radial vectors radial1A and radial1B for the first and radial2A and radial2B for the second base plane. The radial vectors are in-plane and each two vectors A and B are expected to be rectangular on each other.
The cone height is either given by parameter height or by the length of vector direction. direction can also be used to align the cone within an arbitrary directon.
Casts To
Parameters
- height
-
Height of the cone (in Z direction).
- radius1
-
Radius of the lower cylindrical basis of the cone.
- radius2
-
Radius of the upper cylindrical basis of the cone.
- radius1X
-
Radius in X direction of the lower elliptical basis of the cone.
- radius1Y
-
Radius in Y direction of the lower elliptical basis of the cone.
- radius2X
-
Radius in X direction of the upper elliptical basis of the cone.
- radius2Y
-
Radius in Y direction of the upper elliptical basis of the cone.
- direction
-
Vector defining the axis direction and length of a cone that is aligned along an arbitrary direction.
- radial1A
-
Vector defining direction and length of one basis radius of the lower elliptical basis of the cone with arbitrarily aligned base plates.
- radial1B
-
Vector defining direction and length of another basis radius of the lower elliptical basis of the cone with arbitrarily aligned base plates.
- radial2A
-
Vector defining direction and length of one basis radius of the upper elliptical basis of the cone with arbitrarily aligned base plates.
- radial2B
-
Vector defining direction and length of another basis radius of the upper elliptical basis of the cone with arbitrarily aligned base plates.
- position
-
Translation vector that is applied to the cone.