Giter VIP home page Giter VIP logo

disk-conformal-map's Introduction

Disk Conformal Map

disk_conformal_map: Conformally map a simply-connected open triangle mesh to the unit disk

This code computes the disk conformal parameterizations (i.e. angle-preserving mappings onto the unit disk) of triangle meshes with disk topology using the fast method in [1], which has been applied for texture mapping, surface registration, mechanical engineering and so on.

Any comments and suggestions are welcome.

If you use this code in your own work, please cite the following papers:

[1] P. T. Choi and L. M. Lui, "Fast Disk Conformal Parameterization of Simply-Connected Open Surfaces." Journal of Scientific Computing, 65(3), pp. 1065-1090, 2015.

If the area correction code (mobius_area_correction_disk) is also used, please cite [1] as well as the following paper:

[2] G. P. T. Choi, Y. Leung-Liu, X. Gu, and L. M. Lui, "Parallelizable global conformal parameterization of simply-connected surfaces via partial welding." SIAM Journal on Imaging Sciences, 13(3), pp. 1049-1083, 2020.

Copyright (c) 2014-2024, Gary Pui-Tung Choi

https://www.math.cuhk.edu.hk/~ptchoi

===============================================================

Usage:

  • map = disk_conformal_map(v,f)

Input:

  • v: nv x 3 vertex coordinates of a simply-connected open triangle mesh
  • f: nf x 3 triangulations of a simply-connected open triangle mesh

Output:

  • map: nv x 3 vertex coordinates of the disk conformal map

Remark:

  • Please make sure that the input mesh does not contain any unreferenced vertices/non-manifold vertices/non-manifold edges.
  • Please remove all valence 1 boundary vertices (i.e. vertices with only 1 face attached to them) before running the program.

===============================================================

Some possible extensions/applications are also provided:

  • mobius_area_correction_disk (see demo_extension.m): We further reduce the global area distortion of a disk conformal parameterization while maintaining the conformality, using the Mobius area correction method in [2].
  • remeshing (see demo_remeshing.m): We can perform remeshing via the disk conformal parameterization as described in [2].

disk-conformal-map's People

Contributors

garyptchoi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.