Пример #1
0
        //constructor
        public FEIT3DCubes8Sight(double width, double height, LIGHT_MODE mode, bool bWire)
        {
            mGroup = new Model3DGroup();
            if (mode == LIGHT_MODE.TOP_PRIORITY)
            {
                mGroup.Children.Add(genLight(LIGHT_POS.TOP));//light
                mGroup.Children.Add(genLight(LIGHT_POS.PERSPECTIVE));
            }
            else if (mode == LIGHT_MODE.ALL_FACES)
            {
                mGroup.Children.Add(genLight(LIGHT_POS.RIGHT)); //light
                mGroup.Children.Add(genLight(LIGHT_POS.FRONT)); //light
                mGroup.Children.Add(genLight(LIGHT_POS.TOP));
            }

            mVp3d        = new Viewport3D();
            mVp3d.Height = height;
            mVp3d.Width  = width;

            mVp3d.Camera = genPersCamera();
            mVp3d.Children.Add(genScene(ref mGroup));//scene
            mBoxesGear = new FEITBoxesGear();

            if (bWire)
            {
                GenWireFrame();
            }
        }
Пример #2
0
 public FEIT3DCubes8Rotater(ref FEITBoxesGear boxGear)
 {
     mBoxesGear = boxGear;
 }