MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / extract_options

Function extract_options

scripts/microstructure_gen.py:100–112  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

98 return parameters;
99
100def extract_options(config):
101 options = {
102 "trim": config.get("trim", False),
103 "periodic": config.get("periodic", False),
104 "subdiv": config.get("subdiv", 1),
105 "subdiv_method": str(config.get("subdiv_method", "simple")),
106 "rel_geometry_correction": config.get("rel_geometry_correction"),
107 "abs_geometry_correction": config.get("abs_geometry_correction"),
108 "geometry_correction_cap": config.get("geometry_correction_cap"),
109 "geometry_spread": config.get("geometry_spread"),
110 "geometry_correction_lookup": config.get("geometry_correction_lookup"),
111 }
112 return options;
113
114def tile(config):
115 if "guide_mesh" in config:

Callers 3

tile_with_guide_boxFunction · 0.85
tile_with_guide_meshFunction · 0.85
tile_with_mixed_patternsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected