Displaying 1 to 14 from 14 results


A small jQuery plugin that helps you divide an element into four triangles and test co-ordinates on them.

is-triangle - return whether an array of 3 points (in any dimension) describe a triangle

Return whether an array of 3 points describe a triangle.Return whether the array of pts is a triangle, in any dimension.

ray-triangle-intersection - intersect a ray and triangle in 3 dimensions

Compute the intersection of the triangle tri and a ray described by a point pt and a direction dir.tri should be an array of [x,y,z] coordinate arrays.

meshpy - 2D/3D simplicial mesh generator interface for Python (Triangle, TetGen, gmsh)

MeshPy offers quality triangular and tetrahedral mesh generation for Python. Meshes of this type are chiefly used in finite-element simulation codes, but also have many other applications ranging from computer graphics to robotics. In order to generate 2D and 3D meshes, MeshPy provides Python interfaces to three well-regarded mesh generators, Triangle by J. Shewchuk, TetGen by Hang Si The former two are included in the package in slightly modified versions. A generic mesh reader for the latter is included, as is an easy way to run gmsh from a Python script.

simplicial-complex - Tools for manipulating simplicial complexes in JavaScript

This CommonJS module implements basic topological operations and indexing for abstract simplicial complexes (ie graphs, triangular and tetrahedral meshes, etc.) in JavaScript. You probably already know of many examples of simplicial complexes. Triangular meshes (as commonly used in computer graphics) are just 2d simplicial complexes; as are Delaunay triangulations. A more restricted example of a simplicial complex is the notion of a hypergraph, which is basically what you get when you forget the ordering of each cell.

TrimeshJS - Tools for working with triangulated models of embedded Riemannian surfaces.

... is an ever expanding collection of algorithms for processing triangulated meshes in Javascript. Which will create an object called trimesh in the global namespace that contains the API.

bunny - The Stanford bunny

That's pretty much it. The infamous bunny is part of the Stanford 3D scanning repository. For a short history, see Greg Turk's page.

3p - Progressive triangle streams

Progressive triangle streams are an implementation of Hugues Hoppe's progressive meshes with minor modifications favoring fast decoding over visual fidelity. The format is flexible and different codecs can choose different strategies for splitting vertices. This module documents progressive triangle streams and implements reference codecs for the binary and JSON formats. The intention of this file format is to provide a basic container format for experimenting with different strategies for performing edge collapses on meshes, and to provide a common language for processing progressive mesh data. Like the PLY file format, 3P files can specify arbitrary vertex and face data. 3P is also a lossless encoding, so attributes like vertex positions are not truncated in intermediate representations. 3P can be combined with standard HTTP compression schemes like gzip for further size reductions.

a-big-triangle - Draws a big triangle onto the screen

Draws a big triangle that covers the entire viewport. Useful for GPGPU or when applying fullscreen postprocessing effects. If you're wondering why a big triangle and not a big square made from two smaller triangles, there are potentially significant performance advantages in taking the former approach.

circumcenter - Computes the circumcenter of a simplex

Computes the circumcenter of a simplex. That is, it is the center of an n-sphere passing through n+1 points.