|
The Open FUSION Toolkit 1.0.0-beta6
Modeling tools for plasma and fusion research and engineering
|
Region class for oftpy.Mesh class.
Public Member Functions | |
| __init__ (self, points, dx=None, dx_curve=None, angle_tol=30.0, sliver_tol=120.0, small_thresh=None, id=0, load_dict=None) | |
| Create Region object from a closed bounding curve. | |
| check_in_poly (self, pt) | |
| Check if point is inside region (polygon-based approach) | |
| get_in_point (self, i, dx) | |
| Get a suitable point for defining the "inside" of the region for triangle. | |
| get_json (self) | |
| get_resampled_points (self) | |
| Get resampled points for bounding curve. | |
| get_segments (self) | |
| plot_segments (self, fig, ax, linewidth=None) | |
| Plot boundary curve. | |
Protected Attributes | |
| _dx_curve | |
| _dx_vol | |
| _id | |
| _points | |
| _resampled_points | |
| _segments | |
| _small_thresh | |
| __init__ | ( | self, | |
| points, | |||
dx = None, |
|||
dx_curve = None, |
|||
angle_tol = 30.0, |
|||
sliver_tol = 120.0, |
|||
small_thresh = None, |
|||
id = 0, |
|||
load_dict = None |
|||
| ) |
Create Region object from a closed bounding curve.
| points | List of points forming region boundary [:,2] |
| dx | Target mesh resolution inside region |
| angle_tol | Corner tolerance used when resampling curve at desired resolution |
| sliver_tol | Tolerance used for "sliver" region warnings |
| small_thresh | Tolerance used for "small" curve warnings (default: dx/2) |
| id | Region id number (default: 0) |
| check_in_poly | ( | self, | |
| pt | |||
| ) |
Check if point is inside region (polygon-based approach)
| pt | Point to check [2] |
| get_in_point | ( | self, | |
| i, | |||
| dx | |||
| ) |
Get a suitable point for defining the "inside" of the region for triangle.
| i | Index of desired nearest boundary point |
| dx | Offset distance from bounding curve |
| get_json | ( | self | ) |
| get_resampled_points | ( | self | ) |
Get resampled points for bounding curve.
| get_segments | ( | self | ) |
| plot_segments | ( | self, | |
| fig, | |||
| ax, | |||
linewidth = None |
|||
| ) |
Plot boundary curve.
| fig | Figure to add curves to |
| ax | Axis to add curves to |
| linewidth | Line width for plots |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |