DDGorgeous
A mini–C++ Geometry processing library based on a code skeleton provided by CMU’s Discrete Differential Geometry course & Geometry Central
Install / Use
/learn @hoskillua/DDGorgeousREADME
This repo contains implementations of a collection of discrete differnetial geometry algorithms. They are based on a C++ skeleton code for the course assignments from Discrete Differential Geometry (15-458/858).
This code framework uses Geometry Central for geometry processing utilities and Polyscope for visualization, which were developed by Nick Sharp and others in the Geometry Collective. Also, It must be acknowledged that most of the illustrations used in this readme come from the course notes text provided with the mentioned course by Keenan Crane.
Table of Contents
Results
Below are the highlights of the implemented algorithms.
1. Simplicial Complex Operations
<div align="center"> <img src="./image/README/Simplicial_complex_example.svg.png" style="width:350px;" alt="Simplicial Complex"> </div> <br />Given a mesh stored as a Halfedge structure, this part required building the incidence matrices and vector encodings for the mesh and its elements. These were then used to implement simple selection operations like Closure, Star, Link and boundary, as well as some simple boolen checks on a subcomplex of the mesh (isComplex(() and isPureComplex())
| Operator | Results (GIFs) |
| :---------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------: |
| Star & Closure<br />
<br />
| Can use them together repeateadly to grow a selection.<br />
|
| Link & Boundary<br />
<br />
| Can think of as an exclusive vs inclusive boundaries<br />
|
2. Discrete Exterior Calculus Operators
<div align="center"> <img src="./image/README/1650891936774.png" style="width:450px;" alt="Discrete Exterior Calculus"> </div> <br />I got to learn about the discrete exterior calculus operators. The implementation of the discrete exterior derivative and the discrete Hodge star operators mainly involved implementing cotan() and barycentricDualArea() functions and using them to compute the discrete exterior derivative and the discrete Hodge star operators as matrices.
| Operator | Results (GIF) |
| :-----------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------: |
| Exterior Deravtive & Hodge Star<br />
<br />
|
|
3. Normals & Curvatures
<div align="center"> <img src="./image/README/1676211408743.png" alt="Normals & Curvatures"> </div> <br />I learned about a variety of ways to compute vertex normals, some of which are based on weighted averages of neighboring face normals. I also implemented the computation of the mean and Gaussian curvatures. These two were used to compute the principal curvatures.
<br />| Algorithm | Results |
| :---------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Vertex Normal Computation Methods<br /><br />
|
|
| Curvatures Computation <br /><br />
| kmin & kmax:<br />
<br />Mean & Gaussian Curvature:<br />
|
4. The Laplace-Beltrami Operator & its Applications
<div align="center"> <img src="./image/README/1676214620423.png" style="width:500px" alt="Laplace-Beltrami"> </div> <br />I got to implement the Laplace-Beltrami based on the cotangent Laplacian. It was used to implement the Poisson equation solver which was used to smoothely interpolate a function on the mesh. It was also used to implement mesh smoothing using the mean curvature flow and the stationary Laplacian mean curvature flow.
<br />| Algorithm | Results (GIFs) |
| :-------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| Poisson Equation<br /><br />
|
|
| Smoothing using Curvature Flows<br /><br />
| Mean Curvature Flow (11 iterations)<br />(Updating Laplace Matrix in each iteration Vs using the initial one)<br />Using the initial matrix (only updating mass matrix) helps with avoiding singularities<br />
<br /><br />Stationary-Laplacian Mean Curvature flow<br />(~ 40 iterations, step size 0.001 vs 11 with step size 0.01)<br />step size affects speed of convergance<br />
|
5. Geodesics: The Heat Method
<div align="center"> <img src="./image/README/1676214445987.png" style="width:350px" alt="The Heat Method"> </div> <br />Distance Computation was implemented using the heat method. This is based on a paper by Crane et al. First, the heat equation is solved on the mesh to compute the heat flow. Then, the heat flow is used to compute the distance from a given vertex to all other vertices. This involves normalizing the heat flow and negating it to get a vector field pointing along geodesics. A function whose gradient follows this vector field reproduces the final distance.
<br />| Algorithm | Results | | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Related Skills
node-connect
353.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
