Tuesday, November 25, 2014

Graphics: Marching Squares - OOP Script



In this improved version of the Marching Squares algorithm - see description [Link] - I use an Object-Oriented Programming (OOP) approach...

Friday, November 14, 2014

Graphics: Marching Cubes - Results



From the script marchingCubes.js of the previous post [Link], here are some examples of isosurfaces rendered with Blender...


Graphics: Marching Cubes - Implementation




A javascript implementation of the Marching cubes algorithm...

Wednesday, November 12, 2014

Graphics: Marching Squares - No doubles



The previous implementation of the marching squares [Link] generates a lot of vertices because each segment line is defined by its own starting and ending points however all these line segments  are interconnected - forming a polyline - and this is not taken into account in the implementation. Here is a new version to reduce the number of vertices.

Tuesday, November 4, 2014

Graphics: Marching Squares



After describing the principle of the Marching Squares algorithm in a previous post [Link], it is time to implement it...

Graphics: Marching Squares - Javascript implementation



Last post of this series dedicated to Contoured Lines with the whole Javascript implementation of the Marching Squares algorithm described here [Link] and there [Link]...


Graphics: Marching Squares - Rendering with Blender



In the previous post, we wrote a Javascript program to compute the contour lines of an object of interest and save the results - a set of (X,Y) coordinates - in a Wavefront OBJ file.
The last step is to render this geometry in Blender [Link] - a very powerful and popular 3D software...