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

Method tile_with_mixed_patterns

tools/Wires/Tiler/WireTiler.cpp:30–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30WireNetwork::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}

Callers 1

Calls 1

tileMethod · 0.45

Tested by

no test coverage detected