This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float C0 = 0.28209479177387814; | |
float C1 = 0.4886025119029199; | |
float C2[] = {1.0925484305920792, -1.0925484305920792, 0.31539156525252005, -1.0925484305920792, 0.5462742152960396}; | |
float C3[] = {-0.5900435899266435, 2.890611442640554, -0.4570457994644658, 0.3731763325901154, -0.4570457994644658, 1.445305721320277, -0.5900435899266435}; | |
// Function to evaluate spherical harmonics at unit directions | |
function float[] eval_sh(int deg; float sh[]; vector dir; float C0; float C1; float C2[]; float C3[]) | |
{ | |
float x, y, z; | |
x = dir.x; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# DevUtils | |
# =========================== | |
from DevUtils.OSP.PointCloudMarkup import PointCloud, PointInstance | |
# Houdini | |
# =========================== | |
from HoudiniUtils.Math.HoudiniMatrix4d import HoudiniMatrix4d | |
# 3rd Party | |
# =========================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import msvcrt | |
import maya.cmds as cmds | |
import functools | |
def interactive(fn): | |
EXIT = "exitObject" | |
@functools.wraps(fn) | |
def wrapped(*args, **kwargs): | |
if cmds.objExists(EXIT): | |
cmds.delete(EXIT) |