add_ncone

Draw a cone (or truncated cone) in 3D.

Parameters

center : array
Center point: center = [x0,y0,z0]
N : int
Number of linearly spaced faces.
radius0 : float
Bottom radius.
radius1 : float
Top radius (0 for a pointed cone).
height : float
Height of cone.

Examples

model3d.add_cone([0,0,0], N=12, radius0=3, radius1=0, height=5)
model3d.add_cone([5,0,0], N=6, radius0=2, radius1=1, height=4)