| 28 | } |
| 29 | |
| 30 | WireNetwork::Ptr WireTiler::tile_with_mixed_patterns( |
| 31 | const std::vector<WireNetwork::Ptr>& patterns, |
| 32 | const MeshPtr mesh, |
| 33 | bool per_vertex_thickness, |
| 34 | bool isotropic) { |
| 35 | auto target_type = per_vertex_thickness ? |
| 36 | ParameterCommon::VERTEX: ParameterCommon::EDGE; |
| 37 | auto dof_type = isotropic ? |
| 38 | ParameterManager::ISOTROPIC : ParameterManager::ORTHOTROPIC; |
| 39 | MixedMeshTiler tiler(patterns, mesh, target_type, dof_type); |
| 40 | if (m_params) { |
| 41 | std::cerr << "Warning: user specified parameters will be ignored." |
| 42 | << std::endl |
| 43 | << "Mixed mesh tiler will extract parameters from mesh attributes" |
| 44 | << std::endl; |
| 45 | } |
| 46 | return tiler.tile(); |
| 47 | } |
no test coverage detected