create_ellipse#

Modeler2D.create_ellipse(origin, major_radius, ratio, is_covered=True, name=None, material=None, non_model=False, **kwargs)[source]#

Create an ellipse.

Parameters:
originlist of float

Center Position of the ellipse

major_radiusflost

Length of the major axis of the ellipse

ratiofloat

Ratio of the major axis to the minor axis of the ellipse

is_coveredbool

Specify whether the ellipse is a sheet (covered) or a line object

namestr, default=None

Name of the object. The default is None. If None , a unique name NewObject_xxxxxx will be assigned)

materialstr, default=None

Name of the material. The default is None. If None, the default material is assigned.

non_modelbool, optional

Either if create the new object as model or non-model. The default is False.

**kwargsoptional

Additional keyword arguments may be passed when creating the primitive to set properties. See pyaedt.modeler.cad.object3d.Object3d for more details.

Returns:
pyaedt.modeler.cad.object3d.Object3d

Object 3d.

References

>>> oEditor.CreateEllipse

Examples

>>> ellipse1 = aedtapp.modeler.create_ellipse([0, -2, -2], 4.0, 0.2)
>>> ellipse2 = aedtapp.modeler.create_ellipse(origin=[0, -2, -2], major_radius=4.0, ratio=0.2,
...                                           name="MyEllipse", material="Copper")