Skip to content

Instantly share code, notes, and snippets.

Below I collected relevant links and papers more or less pertaining to the subject of tetrahedral meshes.
It's an ever-growing list.
------------------------------
Relevant links:
http://en.wikipedia.org/wiki/Types_of_mesh
http://en.wikipedia.org/wiki/Tetrahedron
http://en.wikipedia.org/wiki/Simplicial_complex
@moeseth
moeseth / waveform.py
Created October 12, 2015 08:19
Create Soundcloud style waveform from Audio in Python
from pydub import AudioSegment
from matplotlib import pyplot as plot
from PIL import Image, ImageDraw
import numpy as np
import os
src = "./test.mp3"
audio = AudioSegment.from_file(src)
data = np.fromstring(audio._data, np.int16)
@davidejones
davidejones / pyglet_triangle.py
Created December 13, 2015 23:45
Pyglet Triangle OpenGL
import pyglet
from pyglet.gl import *
from ctypes import create_string_buffer, cast, sizeof, c_int, c_char, pointer, byref, POINTER
width = 800
height = 600
ratio = float(width) / float(height)
window = pyglet.window.Window(config=Config(major_version=2, minor_version=2), width=width, height=height, vsync=True)
program = glCreateProgram()
vertex_shader = b'''
@Ybalrid
Ybalrid / tutorial.md
Created February 24, 2019 00:56
Physicsfs tutorial

Note: original document at this address: https://icculus.org/physfs/physfstut.txt, I just put some markdown markup tomake it easier to read for myself.

Here are some simple steps to getting PhysicsFS working in your program.
This tutorial was created by some friendly people in #icculus.org in the freenode IRC network.

First thing you need to do is initialize the filesystem. You simply call PHYSFS_init(argv[0]); to do this.

@kzerot
kzerot / sobel.shader
Created March 5, 2019 07:11
Simple sobel edge detection for Godot
shader_type canvas_item;
uniform vec4 edge_color : hint_color = vec4(0.4, 0.4,0.4,1);
uniform vec2 resolution = vec2(800.0,600.0);
void fragment(){
float width = resolution.x;
float height = resolution.y;
float w = 1.0 / width;
float h = 1.0 / height;
@JShorthouse
JShorthouse / gba-gcc-compiling-linux.md
Last active May 25, 2024 18:19
Compiling GBA programs on Linux with GCC

Compiling GBA programs on Linux with GCC

There is a strange lack of guides and tools online for compiling Gameboy Advance homebrew programs on Linux. I didn't want to use devkitpro - their installation method of requiring you to use a forked version of pacman is extemely strange and I didn't want to install all of that on my system just to complile some programs.

The only other guides I found for Linux were this one and this one which both involve compiling custom versions of GCC and assosicated libraries. This lead me down a road of pain, after spending multiple hours fixing compiler errors only to create new errors I gave up. I thought that their had to be a simpler way, and there is!

The solution

Debian already has a version of GCC that can compile ARM programs in the repos, no manual compiling necessary! The package is called arm-none-eabi-gcc.