forked from izrik/FbxSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFbxGeometry.cs
57 lines (45 loc) · 1.4 KB
/
FbxGeometry.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
using System;
namespace FbxSharp
{
public abstract class FbxGeometry : FbxGeometryBase
{
protected FbxGeometry(string name="")
: base(name)
{
Deformers = SrcObjects.CreateCollectionView<FbxDeformer>();
}
#region Deformer Management
public readonly CollectionView<FbxDeformer> Deformers;
public int AddDeformer(FbxDeformer pDeformer)
{
ConnectSrcObject(pDeformer);
return Deformers.IndexOf(pDeformer);
}
public FbxDeformer RemoveDeformer(int pIndex/*, FbxStatus pStatus=null*/)
{
var deformer = Deformers[pIndex];
return DisconnectSrcObject(deformer) ? deformer : null;
}
public int GetDeformerCount()
{
return Deformers.Count;
}
public FbxDeformer GetDeformer(int pIndex/*, FbxStatus pStatus=null*/)
{
return Deformers[pIndex];
}
//public int GetDeformerCount(Deformer::EDeformerType pType)
//{
// throw new NotImplementedException();
//}
//public Deformer GetDeformer(int pIndex, Deformer::EDeformerType pType, FbxStatus pStatus=null)
//{
// throw new NotImplementedException();
//}
#endregion
public override string GetNameSpacePrefix()
{
return "Geometry::";
}
}
}