-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
EllipseByCenterPerimeter.py
36 lines (27 loc) · 1.23 KB
/
EllipseByCenterPerimeter.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from __future__ import annotations
from typing import Sequence
from abqpy.decorators import abaqus_class_doc, abaqus_method_doc
from .ConstrainedSketchGeometry import ConstrainedSketchGeometry
@abaqus_class_doc
class EllipseByCenterPerimeter(ConstrainedSketchGeometry):
@abaqus_method_doc
def __init__(self, center: Sequence[float], axisPoint1: Sequence[float], axisPoint2: Sequence[float]):
"""This method constructs an ellipse using a center point, a major axis point, and a minor axis point.
The ellipse is added to the geometry repository of the ConstrainedSketch object.
.. note::
This function can be accessed by::
mdb.models[name].sketches[name].EllipseByCenterPerimeter
Parameters
----------
center
A pair of Floats specifying the center point of the ellipse.
axisPoint1
A pair of Floats specifying the major or minor axis point of the ellipse.
axisPoint2
A pair of Floats specifying the minor or major axis point of the ellipse.
Returns
-------
ConstrainedSketchGeometry
A ConstrainedSketchGeometry object (None if the ellipse cannot be created).
"""
...