(config)
| 146 | return inflator.mesh; |
| 147 | |
| 148 | def tile_with_guide_mesh(config): |
| 149 | options = extract_options(config); |
| 150 | network = load_wire(str(config["wire_network"])); |
| 151 | parameters = load_parameters(network, config); |
| 152 | guide_mesh = pymesh.load_mesh(config["guide_mesh"]); |
| 153 | |
| 154 | tiler = Tiler(); |
| 155 | tiler.set_base_pattern(network); |
| 156 | tiler.tile_with_guide_mesh(guide_mesh, parameters); |
| 157 | network = tiler.wire_network; |
| 158 | |
| 159 | if config.get("trim", False): |
| 160 | network.trim(); |
| 161 | if "output_wire_network" in config: |
| 162 | network.write_to_file(config["output_wire_network"]); |
| 163 | |
| 164 | inflator = Inflator(network); |
| 165 | inflator.subdivide_order = options["subdiv"]; |
| 166 | inflator.subdivide_method = options["subdiv_method"]; |
| 167 | inflator.inflate(network.get_attribute("thickness").ravel(), |
| 168 | parameters.per_vertex_thickness); |
| 169 | return inflator.mesh; |
| 170 | |
| 171 | def tile_with_mixed_patterns(config): |
| 172 | options = extract_options(config); |
no test coverage detected