This repository has been archived by the owner on Mar 4, 2023. It is now read-only.
/
IgnoredEdge.py
89 lines (69 loc) · 2.77 KB
/
IgnoredEdge.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
class IgnoredEdge:
"""An IgnoredEdge object is a one-dimensional region of geometry that has been abstracted
away by a virtual topology feature.
Attributes
----------
index: int
An Int specifying the index of the IgnoredEdge in the IgnoredEdgeArray.
pointOn: float
A tuple of Floats specifying the **X**-, **Y**-, and **Z**-coordinates of a point located on
the edge.
Notes
-----
This object can be accessed by:
.. code-block:: python
import part
mdb.models[name].parts[name].ignoredEdges[i]
import assembly
mdb.models[name].rootAssembly.allInstances[name].ignoredEdges[i]
mdb.models[name].rootAssembly.instances[name].ignoredEdges[i]
"""
# An Int specifying the index of the IgnoredEdge in the IgnoredEdgeArray.
index: int = None
# A tuple of Floats specifying the *X*-, *Y*-, and *Z*-coordinates of a point located on
# the edge.
pointOn: float = None
def getSize(self, printResults: str = True):
"""This method returns a Float indicating the length of the edge.
Parameters
----------
printResults
A Bool specifying whether verbose output is printed. The default is True.
Returns
-------
A Float.
"""
pass
def getRadius(self):
"""This method returns the radius of a circular IgnoredEdge object.
Returns
-------
A Float specifying the radius.
Raises
------
The given IgnoredEdge object is not circular.
"""
pass
def getCurvature(self, parameter: float, point: tuple):
"""This method returns curvature information at a location on the IgnoredEdge object.
Parameters
----------
parameter
A Float specifying the normalized parameter location on the IgnoredEdge where the
curvature is to be computed. This argument is mutually exclusive with the argument
*point*.
point
A tuple of *X*-, *Y*-, and *Z*-coordinates of a point at which the curvature is to be
computed. If *point* does not lie on the IgnoredEdge an attempt is made to project it
onto the IgnoredEdge and use the projected point.
Returns
-------
A dictionary with keys 'evaluationPoint', 'curvature', 'radius', 'tangent'. Where
'evaluationPoint' specifies the location at which the curvature was computed.
'curvature' specifies the curvature vector at that location. 'radius' is the Radius of
curvature and 'tangent' specifies the tangent to the IgnoredEdge at that location.
Raises
------
The given IgnoredEdge is straight.
"""
pass