Git Product home page Git Product logo

spheretri's Introduction

SPHERETRI

is a set of high-performance vectorized MATLAB functions for building a triangulation of a unit sphere based on recursive partitioning of each of Icosahedron faces into 4 triangles with vertices in the middles of original face edgeMidMat. spheretri function takes a number of requested points as an input. An exact number of points in the returned triangulation may not match this number, the function will choose a depth of Icosahedron partitioning minimally sufficient to provide the requested number of points. Alternatively you can use spheretribydepth function that expects a partitioning depth as an input.

Examples:
[vMat, fMat] = spheretri(500);
patch('Vertices',vMat,'Faces',fMat,'FaceColor','g','EdgeColor','k');

Result:

[vMat, fMat] = spheretribydepth(3);
patch('Vertices',vMat,'Faces',fMat,'FaceColor','g','EdgeColor','k');

Result:

Copyright:

Peter Gagarinov, PhD,
Moscow State University,
    Faculty of Computational Mathematics and Computer Science,
    System Analysis Department 2011-2017

Citing key:
	@misc{Gagarinov2017,
	  author = {Gagarinov, P.V.},
	  title = {SphereTri},
	  year = {2017},
	  publisher = {GitHub},
	  journal = {GitHub repository},
	  howpublished = {\url{https://github.com/pgagarinov/spheretri}},
	  commit = {a6c89644e2451b0cf73ce386e52ff37f75a503cc}
	}

spheretri's People

Contributors

mpcdesigner avatar ndattani avatar pgagarinov avatar

Watchers

 avatar  avatar

Forkers

mpcdesigner

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.