class Wire(Validatable):
Method | __init__ |
Initializes an empty wire. A 3D piecewise linear curve with some DC current associated with it. |
Method | recalculate |
Slices wire segments into smaller ones until segment lengths equal or undershoot slicer limit. |
Method | set |
Sets the parameters. |
Instance Variable | bounds |
Undocumented |
Instance Variable | dc |
Undocumented |
Instance Variable | points_base |
Undocumented |
Instance Variable | points_transformed |
Bounding box: Minimum bounds (3D point), maximum bounds (3D point). |
Property | elements |
Wire elements |
Property | length |
Wire length |
Property | points_sliced |
Returns this wire's points after slicing. |
Static Method | _transform_rotational_symmetry |
This transformation replicates and rotates this curve `count` times about an `axis` with radius `radius`. |
Static Method | _transform_stretch |
This transformation stretches (and/or mirrors) this curve by some factor in any direction. Use the factor +1 / -1 to retain / mirror the curve in that direction. |
Instance Variable | _elements |
Undocumented |
Instance Variable | _length |
Wire Elements: Ordered list of segment center points and directions. |
Instance Variable | _points_sliced |
Undocumented |
Instance Variable | _slicer_limit |
Undocumented |
Inherited from Validatable
:
Method | valid.setter |
|
Property | valid |
True if valid, False if invalid |
Instance Variable | _valid |
Undocumented |
Parameters | |
progress_callback:Callable | Progress callback |
Returns | |
bool | True if successful, False if interrupted |
Parameters | |
points:np.ndarray | Ordered list of 3D coordinates (see presets) |
stretch:np.ndarray | XYZ stretch transform factors (3D point) |
rotational_symmetry:Dict | Dictionary for rotational symmetry transform |
close_loop:bool | Enable to transform the wire into a closed loop (append first point) |
slicer_limit:float | Slicer limit |
dc:float | Wire current (A) |
Parameters | |
axes:np.ndarray | Transposed array of Wire points |
parameters:Dict | Dictionary containing the transformation parameters (number of replications, radius, axis and offset angle) |
close_loop:bool | Enable to transform the wire into a closed loop (append first point) |
Returns | |
np.ndarray | Transposed array of Wire points |
Parameters | |
axes:np.ndarray | Transposed array of Wire points |
stretch:np.ndarray | XYZ stretch transform factors (3D point) |
Returns | |
np.ndarray | Transposed array of Wire points |