Skip to content

Commit f33be59

Browse files
Merge pull request #23 from petrasvestartas/pattern_mapping
Mapping 2D mesh to a 3D mesh. How it works: - Get a mesh, with at least one open boundary ( solid closed objects are not considered in this implementation ) - Create a 2D mesh you want to map - Parametrize 3D mesh to 2D - Place pattern and parametrized mesh on top of each other. - Then using barycentric mapping mesh vertices are mapped to 3D. - If there is at least one mesh vertex of a pattern outside the 2D mesh, this mesh face skipped. To have a clear boundary you can clip your pattern initially.
2 parents 60b563d + 88c8320 commit f33be59

24 files changed

+34123
-22
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1818

1919
### Added
2020

21+
* Add mesh_map using barycentric coordinates.
22+
* Add tessagon for mesh_map example.
23+
2124
### Changed
2225

2326
### Removed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,5 @@ add_nanobind_module(_isolines src/isolines.cpp)
171171
add_nanobind_module(_massmatrix src/massmatrix.cpp)
172172
add_nanobind_module(_meshing src/meshing.cpp)
173173
add_nanobind_module(_parametrisation src/parametrisation.cpp)
174-
add_nanobind_module(_planarize src/planarize.cpp)
174+
add_nanobind_module(_planarize src/planarize.cpp)
175+
add_nanobind_module(_mapping src/mapping.cpp)

0 commit comments

Comments
 (0)