martinfrances107 / gyroid

Output a set of points that lie of the surface of a gyroid.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GYROID

Gytoid

A gyroid is a tripperly period minimal surface.

It has a approximate definition :-

f = sin(x) * cos(y) + sin(y) * cos(z) + sin(z) * cos(x) = 0

where

-π < x < π, -π < y < π, -π < z < π

Wikipedia reference

This rust binary generates a point cloud [ points on the surface.]

time cargo r --release  > pc.json

Marching Cubes

The included shell script uses sensible parameters to configure splashsurf. The output is a obj file which can be imported in a program like blender.

./go.sh

About

Output a set of points that lie of the surface of a gyroid.


Languages

Language:Rust 85.2%Language:Shell 14.8%