Skip to content

Instantly share code, notes, and snippets.

@liyonghelpme
liyonghelpme / ogre_import.py
Last active October 13, 2023 06:18
完美解决Bone Joint 动画方案
#!BPY
""" Registration info for Blender menus:
Name: 'OGRE (.mesh.xml)...'
Blender: 236
Group: 'Import'
Tip: 'Import an Ogre-Mesh (.mesh.xml) file.'
"""
'''
@liyonghelpme
liyonghelpme / ogre_import.py
Last active August 15, 2023 00:23
ogre skeleton import
#!BPY
""" Registration info for Blender menus:
Name: 'OGRE (.mesh.xml)...'
Blender: 236
Group: 'Import'
Tip: 'Import an Ogre-Mesh (.mesh.xml) file.'
"""
'''
@liyonghelpme
liyonghelpme / ogre_import.py
Last active July 19, 2023 07:17
ogre mesh skeleton导入到blender中,同时导入一个Animation的骨骼位置,并且将animation设置为一个pose
#!BPY
""" Registration info for Blender menus:
Name: 'OGRE (.mesh.xml)...'
Blender: 236
Group: 'Import'
Tip: 'Import an Ogre-Mesh (.mesh.xml) file.'
"""
'''
using System;
using System.Collections.Generic;
using System.Text.Json;
using VT = System.ValueTuple<int, int>;
class NoRepeatArr{
Dictionary<VT, int> cache = new Dictionary<VT, int>();
Dictionary<VT, VT> nextState = new Dictionary<VT, VT>();
//digitSeq e digit
enum NodeType {
Enter,
Digit,
Exponent,
End,
BeforePoint,
Point,
AfterPoint,
}
// import { isNumber } from 'util';
// class CurStep {
// wei : number
// curV : number
// }
// function IsNum( c : string) {
// return !isNaN(Number(c))
// }
//特定长度的整数最高位 > 0
enum OpType {
None,
Remove,
Add,
Replace,
}
class MethodDetail {
method : OpType
num : number
}
enum OpType {
None,
Remove,
Add,
Replace,
}
class MethodDetail {
method : OpType
num : number
}
//检查数量 满足 则 只Replace
//迭代修复
//1中行为 修复多个问题
//最优解
//解决问题顺序
//解决问题方法
//所有解中的最优解决方案
class LinkedNode<T>{
data : T = null
enum ProblemT {
Less,
More,
Same,
MisUp,
MisLow,
MisNum
}
class SNode {
start : number