Skip to content

Instantly share code, notes, and snippets.

@Epihaius
Epihaius / main.py
Created August 5, 2021 17:39
Region-selection of objects in Panda3D
from panda3d.core import *
from direct.showbase.ShowBase import ShowBase
from direct.showbase.DirectObject import DirectObject
from region_selection import RegionSelector
class MyApp(ShowBase):
def __init__(self):
@Epihaius
Epihaius / catmull_clark.py
Created April 6, 2020 16:00
Procedural Catmull-Clark subdivision surfaces
# This module contains a Python adaptation of the Catmull-Clark subdivision
# surface algorithm implemented in JavaScript, as found here:
# https://github.com/Erkaman/gl-catmull-clark/blob/master/index.js
# Its license is included below:
'''
This software is released under the MIT license:
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