Skip to content

Instantly share code, notes, and snippets.

@kiyuka829
kiyuka829 / LICENSE
Created April 29, 2024 01:18
License
This license applies to all public Gists in my GitHub account, unless otherwise noted in each Gist
MIT License
Copyright (c) 2023 kiyuka
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@kiyuka829
kiyuka829 / ifc2gltf.py
Created April 28, 2024 07:07
Convert IFC to glTF
from types import SimpleNamespace
from functools import partial
import pygltflib
import numpy as np
import ifcopenshell
import ifcopenshell.geom
from tqdm.auto import tqdm
settings = ifcopenshell.geom.settings()