Example #1
0
 def _arguments_types(cls):
     return {
         'grid_name': comopt.BasicOption(str),
         'cont_name': comopt.BasicOption(str, None),
         'simplify': comopt.BoolOption(True),
         'separate': comopt.BoolOption(False),
     }
Example #2
0
 def _arguments_types(cls):
     """ name - new contour name,
         filename - filename
         simplify - bool
         btypes - if false read (x y). (x y boundary_type_integer) otherwise
         force_closed - treat contour as closed even if end points are not
                 equal
     """
     return {
         'name': co.BasicOption(str, None),
         'filename': co.BasicOption(str),
         'simplify': co.BoolOption(False),
         'btypes': co.BoolOption(False),
         'force_closed': co.BoolOption(False)
     }
Example #3
0
 def _arguments_types(cls):
     return {
         'name': co.BasicOption(str, None),
         'area': co.ListOfOptions(co.BasicOption(float)),
         'crad': co.BasicOption(float),
         'strict': co.BoolOption(False),
     }
Example #4
0
 def _arguments_types(cls):
     return {
         'name': comopt.BasicOption(str, None),
         'src': comopt.ListOfOptions(comopt.BasicOption(str)),
         'fix': comopt.ListOfOptions(comopt.BasicOption(int), []),
         'close': comopt.BasicOption(str, 'no'),
         'shiftnext': comopt.BoolOption(False)
     }
Example #5
0
 def _arguments_types(cls):
     """ name - name of the new grid,
         fix_bnd - whether to fix all boundary points (=False)
         keepsrc - whether to remove source grids (=True)
         empty_holes - keep all empty zone in 2nd grid (=False)
         base - name of base grid,
         plus - list of UniteOptions: entries define each next imposition
     """
     return {
         'name': co.BasicOption(str, None),
         'fix_bnd': co.BoolOption(False),
         'empty_holes': co.BoolOption(False),
         'base': co.BasicOption(str),
         'plus': co.ListOfOptions(UniteGrids.Option()),
         'angle0': co.BasicOption(float, 1.),
         'filler': co.BasicOption(str, '3')
     }
Example #6
0
 def _arguments_types(cls):
     return {
         'name': comopt.BasicOption(str, None),
         'c1': comopt.BasicOption(str),
         'c2': comopt.BasicOption(str),
         'oper': comopt.BasicOption(str),
         'simplify': comopt.BoolOption(True),
     }
Example #7
0
 def _arguments_types(cls):
     """ [names] - list of sources contours
         [new_names] - list of names for created contours
         simplify - do simplification: make all nodes non-collinear
                    Edges will not be splitted if they have different
                    boundary types.
         angle - minimum acute angle between edges lines
                 after simplification (deg)
         separate - separate contour to ones with not-connected geometry
     """
     return {
         'names': comopt.ListOfOptions(comopt.BasicOption(str)),
         'new_names': comopt.ListOfOptions(comopt.BasicOption(str), []),
         'separate': comopt.BoolOption(False),
         'simplify': comopt.BoolOption(True),
         'angle': comopt.BasicOption(float, 1.0),
     }
Example #8
0
 def _arguments_types(cls):
     return {'name': co.BasicOption(str, None),
             'base': co.BasicOption(str),
             'p1': co.Point2Option(),
             'p2': co.Point2Option(),
             'phi': co.ListOfOptions(co.BasicOption(float)),
             'bt1': co.BasicOption(int, 0),
             'bt2': co.BasicOption(int, 0),
             'center_tri': co.BoolOption(True)
             }
Example #9
0
 def _arguments_types(cls):
     return {
         'name': co.BasicOption(str, None),
         'algo': co.BasicOption(str),
         'left': co.BasicOption(str),
         'bot': co.BasicOption(str),
         'right': co.NoneOr(co.BasicOption(str), None),
         'top': co.NoneOr(co.BasicOption(str), None),
         'her_w': co.ListOfOptions(co.BasicOption(float), [0., 0., 0., 0.]),
         'return_invalid': co.BoolOption(False),
     }
Example #10
0
 def _arguments_types(cls):
     """ name - new grid name,
         grid_name - source grid name,
         cont_names - contours names,
         is_inner - exclude inner (True) or outer (False) contour area
     """
     return {
         'name': co.BasicOption(str, None),
         'grid_name': co.BasicOption(str),
         'cont_names': co.ListOfOptions(co.BasicOption(str)),
         'is_inner': co.BoolOption(),
     }
Example #11
0
 def _arguments_types(cls):
     """ name - new grids name,
         filename - filename,
         contname - specific name,
         all
     """
     return {
         'name': co.BasicOption(str, None),
         'filename': co.BasicOption(str),
         'contname': co.BasicOption(str, ""),
         'all': co.BoolOption(False)
     }
Example #12
0
 def _arguments_types(cls):
     """ name - new surface name,
         filename - filename
         srfname - surface name if not all
         all - import all found contours?
     """
     return {
         'name': co.BasicOption(str, None),
         'filename': co.BasicOption(str),
         'srfname': co.BasicOption(str, ""),
         'all': co.BoolOption(False),
     }
Example #13
0
 def _arguments_types(cls):
     """ name - new grids name,
         filename - filename
         gridname -
         all -
     """
     return {
         'name': co.BasicOption(str, None),
         'filename': co.BasicOption(str),
         'gridname': co.BasicOption(str, ""),
         'all': co.BoolOption(False)
     }
Example #14
0
 def _arguments_types(cls):
     """ name - modified grid name,
         base - identifier of the basic grid
         target - identifier of contour
         base_points - points of the basic grid contour
         target_poitns - points of the target contour
         snap - snapping algo ("no", "add_vertices", "shift_vertices")
         btypes - source of boundary features ("from_grid", "from_contour")
         algo ('inverse_laplace', 'direct_laplace')
     """
     return {
         'name': co.BasicOption(str, None),
         'base': co.BasicOption(str),
         'target': co.BasicOption(str),
         'base_points': co.ListOfOptions(co.Point2Option()),
         'target_points': co.ListOfOptions(co.Point2Option()),
         'snap': co.BasicOption(str, 'no'),
         'btypes': co.BasicOption(str, 'from_contour'),
         'algo': co.BasicOption(str, 'inverse_laplace'),
         'is_reversed': co.BoolOption(False),
         'return_invalid': co.BoolOption(False),
     }
Example #15
0
 def _arguments_types(cls):
     return {
         'name': co.BasicOption(str, None),
         'p0': co.Point2Option(),
         'rad': co.BasicOption(float, 1.),
         'na': co.BasicOption(int, 8),
         'nr': co.BasicOption(int, 4),
         'coef': co.BasicOption(float, 1.),
         'is_trian': co.BoolOption(True),
         'custom_r': co.ListOfOptions(co.BasicOption(float), []),
         'custom_a': co.ListOfOptions(co.BasicOption(float), []),
         'bnd': co.BasicOption(int, 0),
     }
Example #16
0
 def _arguments_types(cls):
     return {
         'name': comopt.BasicOption(str, None),
         'algo': comopt.BasicOption(str),
         'step': comopt.ListOfOptions(comopt.BasicOption(float)),
         'angle0': comopt.BasicOption(float, 1.),
         'base': comopt.BasicOption(str),
         'keepbnd': comopt.BoolOption(True),
         'nedges': comopt.NoneOr(comopt.BasicOption(int), None),
         'crosses': comopt.ListOfOptions(comopt.BasicOption(str), []),
         'start': comopt.NoneOr(comopt.Point2Option(), None),
         'end': comopt.NoneOr(comopt.Point2Option(), None),
         'keep_pts': comopt.ListOfOptions(comopt.Point2Option(), [])
     }
Example #17
0
 def __init__(self):
     super(BuildBoundaryGrid.Option,
           self).__init__(source=co.BasicOption(str),
                          partition=co.ListOfOptions(
                              co.BasicOption(float)),
                          direction=co.BasicOption(int),
                          mesh_cont=co.BasicOption(int, 0),
                          mesh_cont_step=co.BasicOption(float, 1.),
                          step_start=co.BasicOption(float, 1.),
                          step_end=co.BasicOption(float, 1.),
                          algo_acute=co.BasicOption(float, 45.),
                          algo_right=co.BasicOption(float, 120.),
                          algo_straight=co.BasicOption(float, 240.),
                          algo_reentr=co.BasicOption(float, 300.),
                          start=co.NoneOr(co.Point2Option(), None),
                          end=co.NoneOr(co.Point2Option(), None),
                          force_conf=co.BoolOption(False))
Example #18
0
 def _arguments_types(cls):
     return {
         'surf_name': co.BasicOption(str, None),
         'grid_name': co.BasicOption(str),
         'separate': co.BoolOption(False),
     }