Version 0.59.0

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( float height, float radius1X, float radius1Y, float radius2X, float radius2Y, vector position )
  •   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 (6) 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 (6).

Constructors (4), (5), (7) and (8) 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 (constructors (4) and (5)) or the lengths of vectors radial1A, radial1B, radial2A and radial2B for constructors (7) and (8).

For constructors (1) to (6) the basis plane is orthogonal to the cone direction (i.e. the plane normal is parallel to the direction vector) whereas constructors (7) and (8) 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

solid

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.

🗙

Search results for