Ejemplo n.º 1
0
    // Use this for initialization
    public void Init()
    {
        initMaterial = Resources.Load("IFCDefault", typeof(Material)) as Material;

        /* prepare material assignment */
        if (MaterialAssignment != null)
        {
            for (int i = 0; i < MaterialAssignment.MaterialDB.Length; ++i)
            {
                IFCMaterialAssoc mas = MaterialAssignment.MaterialDB[i];
                classToMat.Add(mas.IFCClass, mas.Material);
            }
        }
    }
Ejemplo n.º 2
0
    // Use this for initialization
    public void Init()
    {
        meshToIfcType = new Dictionary <Mesh, string>();
        meshToIfcVars = new Dictionary <Mesh, List <IFCVariables.IfcVar> >();
        initMaterial  = Resources.Load("IFCDefault", typeof(Material)) as Material;

        /* prepare material assignment */
        if (MaterialAssignment != null)
        {
            for (int i = 0; i < MaterialAssignment.MaterialDB.Length; ++i)
            {
                IFCMaterialAssoc mas = MaterialAssignment.MaterialDB[i];
                classToMat.Add(mas.IFCClass, mas.Material);
            }
        }
    }
Ejemplo n.º 3
0
    // Use this for initialization
    public void Init()
    {
        meshToIfcType = new Dictionary <Mesh, string>();
        meshToIfcVars = new Dictionary <Mesh, List <IFCVariables.IfcVar> >();

        initMaterial = Resources.Load("IFCDefault", typeof(Material)) as Material;
        print("initMat:" + initMaterial);
        /* prepare material assignment */
        if (MaterialAssignment != null)
        {
            for (int i = 0; i < MaterialAssignment.MaterialDB.Length; ++i)
            {
                IFCMaterialAssoc mas = MaterialAssignment.MaterialDB[i];
                if (classToMat.ContainsKey(mas.IFCClass))
                {
                    continue;
                }
                classToMat.Add(mas.IFCClass, mas.Material);
            }
        }
        print("Made it past Init()");
    }