Ejemplo n.º 1
0
        private void ExtractLightsAndPrimitives(Model3DGroup group)
        {
            ArrayList lightList     = new ArrayList();
            ArrayList primitiveList = new ArrayList();

            ExtractLightsAndPrimitivesRecursive(group.CloneCurrentValue(), Matrix3D.Identity, lightList, primitiveList);

            lights     = new Light[lightList.Count];
            primitives = new Model3D[primitiveList.Count];

            lightList.CopyTo(lights);
            primitiveList.CopyTo(primitives);
        }