Skip to content

Instantly share code, notes, and snippets.

View Rainyan's full-sized avatar

Rainyan

  • Finland
  • 14:12 (UTC +02:00)
View GitHub Profile
@Rainyan
Rainyan / concave_object_to_convex_objects_by_face.py
Created March 19, 2026 16:41 — forked from GuyPaddock/concave_object_to_convex_objects_by_face.py
Blender 2.91 Script for Convex Hull Decomposition into Separate Shapes Using Blender's Convex using "Split Concave Faces"
##
# A script to split simple, architectural geometry into convex pieces.
#
# This script makes use of Blender's built-in "Split Concave Faces" clean-up
# algorithm to break-up the faces of an object into convex pieces. The script
# attempts to identify all the edges that represent convex boundaries, and then
# it splits objects up along those edges. Each resulting piece is then made into
# a closed object by converting it into a convex hull.
#
# Be sure to select the object you wish the split into convex pieces before
@Rainyan
Rainyan / SteamUserFunctions.php
Created June 18, 2017 16:56 — forked from rannmann/SteamUserFunctions.php
Convert Steam IDs to and from Community IDs and User IDs
<?php
/* Examples
toSteamID(25490879) // STEAM_0:1:12745439
toSteamID(76561197985756607) // STEAM_0:1:12745439
toSteamID("STEAM_0:1:12745439") // STEAM_0:1:12745439
toUserID(25490879) // 25490879
toUserID(76561197985756607) // 25490879
toUserID("STEAM_0:1:12745439") // 25490879