protected void PrintFbxLayerContainer(FbxLayerContainer obj, TextWriter writer)
        {
            _PrintFbxLayerContainer(obj, writer);

            if (obj is FbxGeometryBase)
            {
                PrintFbxGeometryBase((FbxGeometryBase)obj, writer);
            }
        }
示例#2
0
        protected void AcceptFbxLayerContainer(FbxLayerContainer obj, ISet <object> visitedObjects = null)
        {
            Visit(obj);

            _AcceptFbxLayerContainer(obj, visitedObjects);

            if (obj is FbxGeometryBase)
            {
                AcceptFbxGeometryBase((FbxGeometryBase)obj, visitedObjects);
            }
        }
示例#3
0
        protected void _PrintFbxLayerContainer(FbxLayerContainer obj, TextWriter writer)
        {
            int i;

            writer.WriteLine("    LayerCount = {0}", obj.GetLayerCount());
            for (i = 0; i < obj.GetLayerCount(); i++)
            {
                FbxLayer layer = obj.GetLayer(i);
                writer.WriteLine("        #{0}", i);
                _PrintFbxLayer(layer, writer);
            }
        }
示例#4
0
文件: Visitor.cs 项目: shoff/FbxSharp
        protected void AcceptLayerContainer(FbxLayerContainer layerContainer, ISet <object> visitedObjects)
        {
            AcceptNodeAttribute(layerContainer, visitedObjects);
            Visit(layerContainer);

            int j;

            for (j = 0; j < layerContainer.GetLayerCount(); j++)
            {
                FbxLayer layer = layerContainer.GetLayer(j);

                int i;
                FbxLayerElementMaterial mats = layer.GetMaterials();
                if (mats != null)
                {
                    FbxLayerElementTemplate <FbxSurfaceMaterial> _mats  = mats;
                    LayerElementArrayT <FbxSurfaceMaterial>      marray = _mats.GetDirectArray();
                    //for (i = 0; i < marray.GetCount(); i++)
                    //{
                    //    Accept(marray.GetAt(i));
                    //}
                }

                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureEmissive));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureEmissiveFactor));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureAmbient));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureAmbientFactor));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureDiffuseFactor));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureSpecular));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureNormalMap));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureSpecularFactor));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureShininess));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureBump));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureTransparency));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureTransparencyFactor));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureReflection));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureReflectionFactor));
                //Accept(this, layer.GetTextures(LayerElement.EType.eTextureDisplacement));
            }
        }
示例#5
0
文件: Visitor.cs 项目: shoff/FbxSharp
 public virtual void Visit(FbxLayerContainer layerContainer)
 {
 }
示例#6
0
 public virtual void Visit(FbxLayerContainer obj)
 {
 }