create_cone#

Modeler3D.create_cone(cs_axis, position, bottom_radius, top_radius, height, name=None, matname=None)[source]#

Create a cone.

Parameters:
cs_axisstr

Axis of rotation of the starting point around the center point. The default is None, in which case the Z axis is used.

center_positionlist, optional

List of [x, y, z] coordinates for the center position of the bottom of the cone.

bottom_radiusfloat

Bottom radius of the cone.

top_radiusfloat

Top radius of the cone.

heightfloat

Height of the cone.

namestr, optional

Name of the cone. The default is None, in which case the default name is assigned.

matnamestr, optional

Name of the material. The default is None, in which case the default material is assigned.

Returns:
pyaedt.modeler.cad.object3d.Object3d

3D object.

References

>>> oEditor.CreateCone

Examples

>>> from pyaedt import Hfss
>>> aedtapp = Hfss()
>>> cone_object = aedtapp.modeler.create_cone(cs_axis='Z', position=[0, 0, 0],
...                                           bottom_radius=2, top_radius=3, height=4,
...                                           name="mybox", matname="copper")