Skip to content

Instantly share code, notes, and snippets.

View Besjan's full-sized avatar

Cuku Besjan

  • Berlin
View GitHub Profile
@Besjan
Besjan / IfcToGlb.py
Created September 11, 2023 22:13
Convert IFC to GLB using BlenderBIM
import bpy
import os
import sys
addons = ["blenderbim"]
for addon in addons:
bpy.ops.preferences.addon_enable(module=addon)
# set input and output file paths
input_file = sys.argv[-2]
import bpy
import os
import sys
# set input and output file paths
input_file = sys.argv[-2]
output_file = sys.argv[-1]
# Delete the default cube, camera, and light
bpy.ops.object.select_all(action="SELECT")
@Besjan
Besjan / RemoveEmptyFolders.cs
Created June 24, 2020 06:27 — forked from mob-sakai/RemoveEmptyFolders.cs
Automatically remove empty folders in project for Unity.
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Linq;
using System;
/// <summary>
/// Remove empty folders automatically.
@Besjan
Besjan / BoundingFrustum.cs
Created June 16, 2020 05:40
Bounding Frustum implementation in C# for Unity.
namespace StagPoint.Math
{
using System;
using UnityEngine;
using Mono.Simd;
public class BoundingFrustum
{
#region Public fields
namespace Cuku.Geo
{
using MessagePack;
[MessagePackObject]
public class Feature
{
[Key(0)]
public Relation[] Relations { get; set; }
[Key(1)]