The Open FUSION Toolkit 1.0.0-8905cc5
Modeling tools for plasma and fusion research and engineering
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Mesh Class Reference

Detailed Description

Mesh builder class for triangle library.

Public Member Functions

 __init__ (self, region_list, merge_thresh=1.E-4, debug=False, extra_reg_defs=[])
 Initialize Mesh builder object.
 
 get_mesh (self)
 Generate mesh using triangle.
 

Protected Attributes

 _merge_thresh
 
 _reg_defs
 
 _reg_seg_map
 
 _resampled_points
 
 _resampled_segments
 
 _segments
 
 _unique_points
 

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
  region_list,
  merge_thresh = 1.E-4,
  debug = False,
  extra_reg_defs = [] 
)

Initialize Mesh builder object.

Parameters
region_listList of oftpy.Region objects that define mesh
merge_threshDistance threshold for merging nearby points

Member Function Documentation

◆ get_mesh()

get_mesh (   self)

Generate mesh using triangle.

Returns
pts[np,2], tris[nc,3], regions[nc]

Member Data Documentation

◆ _merge_thresh

_merge_thresh
protected

◆ _reg_defs

_reg_defs
protected

◆ _reg_seg_map

_reg_seg_map
protected

◆ _resampled_points

_resampled_points
protected

◆ _resampled_segments

_resampled_segments
protected

◆ _segments

_segments
protected

◆ _unique_points

_unique_points
protected

The documentation for this class was generated from the following file: