public void SetupSubmeshes(aeObject abc, Mesh mesh, Material[] materials)
 {
     for (int smi = 0; smi < mesh.subMeshCount; ++smi)
     {
         abc.AddFaceSet(string.Format("submesh[{0}]", smi));
     }
 }
            public void WriteSample(aeObject abc)
            {
                var data = default(aePolyMeshData);

                data.visibility   = visibility;
                data.points       = points;
                data.pointCount   = points.Count;
                data.normals      = normals;
                data.uv0          = uv0;
                data.uv1          = uv1;
                data.colors       = colors;
                data.submeshes    = submeshData;
                data.submeshCount = submeshData.Count;
                abc.WriteSample(ref data);
            }
 public void SetupSubmeshes(aeObject abc, Mesh mesh, Material[] materials)
 {
     if (mesh.subMeshCount > 1)
     {
         for (int smi = 0; smi < mesh.subMeshCount; ++smi)
         {
             string name;
             if (smi < materials.Length && materials[smi] != null)
             {
                 name = materials[smi].name;
             }
             else
             {
                 name = string.Format("submesh[{0}]", smi);
             }
             abc.AddFaceSet(name);
         }
     }
 }
 public void WriteSample(aeObject abc)
 {
     {
         var data = default(aePolyMeshData);
         data.indices    = indices;
         data.indexCount = indices.Count;
         data.points     = points;
         data.pointCount = points.Count;
         data.normals    = normals;
         data.uv0        = uv0;
         data.uv1        = uv1;
         data.colors     = colors;
         abc.WriteSample(ref data);
     }
     for (int fsi = 0; fsi < facesets.Count; ++fsi)
     {
         var data = default(aeFaceSetData);
         data.faces     = facesets[fsi];
         data.faceCount = facesets[fsi].Count;
         abc.WriteFaceSetSample(fsi, ref data);
     }
 }
Exemple #5
0
 [DllImport("abci")] public static extern aeProperty  aeNewProperty(aeObject parent, string name, aePropertyType type);
Exemple #6
0
 [DllImport("abci")] public static extern void        aeCameraWriteSample(aeObject obj, ref aeCameraData data);
Exemple #7
0
 [DllImport("abci")] public static extern void        aePolyMeshWriteSample(aeObject obj, ref aePolyMeshData data);
Exemple #8
0
 [DllImport("abci")] public static extern void        aeXFormWriteSample(aeObject obj, ref aeXFormData data);
Exemple #9
0
 [DllImport("abci")] public static extern aeObject    aeNewPolyMesh(aeObject parent, string name, int tsi = 1);
 public RootCapturer(AlembicRecorder rec, aeObject abc)
 {
     recorder  = rec;
     abcObject = abc;
 }
 public abstract void CreateAbcObject(aeObject parent);
 public override void CreateAbcObject(aeObject parent)
 {
     m_abc = parent.NewPoints(gameObject.name);
 }
 public RootCapturer(AlembicExporter exp, aeObject abc)
     : base(exp, null, null)
 {
     m_abc = abc;
 }