<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/wrapping-meshes-with-geodesic-walks-r3mjzk3i3" -->

---
title: Wrapping Meshes With Geodesic Walks | daily.dev
description: A developer details how they built a system to wrap procedurally generated 2D path meshes around arbitrary 3D mesh surfaces using geodesic walking algorithms....
canonical: https://daily.dev/posts/wrapping-meshes-with-geodesic-walks-r3mjzk3i3
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Wrapping Meshes With Geodesic Walks | daily.dev
og:description: A developer details how they built a system to wrap procedurally generated 2D path meshes around arbitrary 3D mesh surfaces using geodesic walking algorithms....
og:url: https://daily.dev/posts/wrapping-meshes-with-geodesic-walks-r3mjzk3i3
og:image: https://api.daily.dev/og/posts/r3MjZk3i3.png
og:image:alt: Wrapping Meshes With Geodesic Walks
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Wrapping Meshes With Geodesic Walks

**[Casey Primozic](https://daily.dev/sources/cprimozic)** · 13 min read · 0 upvotes · 0 comments

## Summary

A developer details how they built a system to wrap procedurally generated 2D path meshes around arbitrary 3D mesh surfaces using geodesic walking algorithms. The process involves: generating intricate 2D paths with AABB tree-based collision detection, tessellating them into triangles using the Rust lyon crate, mapping vertices onto a 3D mesh surface via geodesic walks (using the C++ geometry-central library), and extruding the result along vertex normals. To handle distortion from long geodesic walks, a graph traversal approach is used so walks start from nearby already-mapped vertices. The whole pipeline runs in the browser via two WebAssembly modules (one from Rust, one from C++) glued together with TypeScript, running in a web worker to avoid blocking the main thread, with final output fed into Three.JS BufferGeometry.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://cprimozic.net/blog/wrapping-meshes-with-geodesic-walks/>

## Similar posts on daily.dev

- [Exploring Procedural Geometry with Three.js and WebGPU](https://daily.dev/posts/exploring-procedural-geometry-with-three-js-and-webgpu-fmy1y3gze) · Codrops · 1 upvotes · 0 comments
- [Building an Endless Procedural Snake with Three.js and WebGL](https://daily.dev/posts/building-an-endless-procedural-snake-with-three-js-and-webgl-1l0q79k9x) · Codrops · 2 upvotes · 0 comments
- [Building a Procedural Hex Map with Wave Function Collapse](https://daily.dev/posts/building-a-procedural-hex-map-with-wave-function-collapse-0wz2fqk8n) · Hacker News · 1 upvotes · 0 comments
- [Ray tracing massive amounts of animated geometry using tetrahedral cages](https://daily.dev/posts/ray-tracing-massive-amounts-of-animated-geometry-using-tetrahedral-cages-fepvmjmjr) · AMD GPUOpen · 0 upvotes · 0 comments
- [Introducing Three-Live: turning AI-generated Three.js into interactive 3D, AR, and WebXR across web and mobile](https://daily.dev/posts/introducing-three-live-turning-ai-generated-three-js-into-interactive-3d-ar-and-webxr-across-web--rhlauvxix) · Google Open Source Blog · 19 upvotes · 0 comments

---

Tags: [#rust](https://daily.dev/tags/rust), [#threejs](https://daily.dev/tags/threejs), [#webassembly](https://daily.dev/tags/webassembly)

[View this post on daily.dev](https://daily.dev/posts/wrapping-meshes-with-geodesic-walks-r3mjzk3i3)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Wrapping Meshes With Geodesic Walks","url":"https://daily.dev/posts/wrapping-meshes-with-geodesic-walks-r3mjzk3i3","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/wrapping-meshes-with-geodesic-walks-r3mjzk3i3"},"datePublished":"2026-03-31T12:30:17.181Z","dateModified":"2026-04-02T02:16:18.288Z","description":"A developer details how they built a system to wrap procedurally generated 2D path meshes around arbitrary 3D mesh surfaces using geodesic walking algorithms....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ebd60628e261cbea0b5350d0d3fc237c?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ebd60628e261cbea0b5350d0d3fc237c?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Casey Primozic","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Casey Primozic","logo":"https://media.daily.dev/image/upload/s--LrHsyt2T--/f_auto/v1692632054/squad_placeholder_sfwkmj","url":"https://daily.dev/sources/cprimozic"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/wrapping-meshes-with-geodesic-walks-r3mjzk3i3","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"rust,threejs,webassembly","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Casey Primozic","item":"https://daily.dev/sources/cprimozic"},{"@type":"ListItem","position":3,"name":"Wrapping Meshes With Geodesic Walks"}]}
```

