Giter VIP home page Giter VIP logo

vitorcarvalho67 / gyroid Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 40 KB

Generate and output a set of points that are located on the surface of a gyroid, providing a discrete representation of this complex and intriguing minimal surface

License: GNU General Public License v3.0

C 89.00% Shell 11.00%
c-lang gcc-complier gyroid math shell-script 3d-geometry engineering marching-cubes minimal-surfaces

gyroid's Introduction

Imagem logo

GYROID

The purpose of this program is to generate a discrete representation (set of points) of the gyroid surface, which is an interesting minimal surface with applications in various areas of science and engineering, such as porous materials, photonic structures, and biomimetics. Visualizing these points can help understand the shape and structure of the gyroid, and the resulting 3D mesh from the Marching Cubes algorithm can be used in simulations, analyses of material properties, or as a basis for the design of new materials and structures.

Here's a version with improved Markdown structure:


The gyroid has an approximate definition given by the equation:

$$ f(x, y, z) = \sin(x) \cdot \cos(y) + \sin(y) \cdot \cos(z) + \sin(z) \cdot \cos(x) = 0 $$

where the domain is defined as:

$$ -\pi < x < \pi, \quad -\pi < y < \pi, \quad -\pi < z < \pi $$


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

gcc main.c -o gyroid -lm 
time ./gyroid > 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.

./reconstruct.sh

gyroid's People

Contributors

vitorcarvalho67 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.