<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/speeding-up-geodesic-tracing-in-geometry-central-iln5l7jal" -->

---
title: Speeding Up Geodesic Tracing in geometry-central | daily.dev
description: A developer working on procedural mesh generation needed to trace millions of geodesic paths using the geometry-central C++ library (compiled to WebAssembly...
canonical: https://daily.dev/posts/speeding-up-geodesic-tracing-in-geometry-central-iln5l7jal
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Speeding Up Geodesic Tracing in geometry-central | daily.dev
og:description: A developer working on procedural mesh generation needed to trace millions of geodesic paths using the geometry-central C++ library (compiled to WebAssembly...
og:url: https://daily.dev/posts/speeding-up-geodesic-tracing-in-geometry-central-iln5l7jal
og:image: https://api.daily.dev/og/posts/ilN5l7jal.png
og:image:alt: Speeding Up Geodesic Tracing in geometry-central
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.

# Speeding Up Geodesic Tracing in geometry-central

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

## Summary

A developer working on procedural mesh generation needed to trace millions of geodesic paths using the geometry-central C++ library (compiled to WebAssembly via Emscripten). Profiling revealed that Eigen's ColPivHouseholder solver was the bottleneck in the Cartesian-to-barycentric coordinate conversion. By replacing the generic Eigen solver with a direct, inline math implementation sourced from Gamedev Stack Exchange (originally from Christer Ericson's Real-Time Collision Detection), the function achieved over 3x speedup. The optimized code was pushed to a public fork of geometry-central.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://cprimozic.net/notes/posts/speeding-up-geodesic-tracing-in-geometry-central/>

## Similar posts on daily.dev

- [A Unique Performance Optimization for a 3D Geometry Language](https://daily.dev/posts/a-unique-performance-optimization-for-a-3d-geometry-language-ia3ak1s5n) · Lobsters · 0 upvotes · 0 comments
- [Fast calculation of the distance to cubic Bezier curves on the GPU](https://daily.dev/posts/fast-calculation-of-the-distance-to-cubic-bezier-curves-on-the-gpu-h77osvxoc) · Hacker News · 3 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
- [Inscribed Spheres :: Box2D](https://daily.dev/posts/inscribed-spheres-box2d-dvq55o0po) · 
        
            Box2D 
        
     · 0 upvotes · 0 comments

---

Tags: [#performance](https://daily.dev/tags/performance), [#c++](https://daily.dev/tags/c++), [#webassembly](https://daily.dev/tags/webassembly)

[View this post on daily.dev](https://daily.dev/posts/speeding-up-geodesic-tracing-in-geometry-central-iln5l7jal)

```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":"Speeding Up Geodesic Tracing in geometry-central","url":"https://daily.dev/posts/speeding-up-geodesic-tracing-in-geometry-central-iln5l7jal","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/speeding-up-geodesic-tracing-in-geometry-central-iln5l7jal"},"datePublished":"2026-03-31T12:29:55.823Z","dateModified":"2026-03-31T12:55:49.461Z","description":"A developer working on procedural mesh generation needed to trace millions of geodesic paths using the geometry-central C++ library (compiled to WebAssembly...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e3230b12f876b5c86e256d2d00c51941?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e3230b12f876b5c86e256d2d00c51941?_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/speeding-up-geodesic-tracing-in-geometry-central-iln5l7jal","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"performance,c++,webassembly","timeRequired":"PT3M"}
{"@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":"Speeding Up Geodesic Tracing in geometry-central"}]}
```

