Description: Rubix Cube
The graphic part is ensured by the CCubes class and is helped of the classes CMatrix, CSide, CVertex and CVertexList. This gives an example of the functions to be performed to ensure a vision in prospect 3D or in flat unrolled. Rubik s cubic can be moved or deformed by using orders or of the mouse with a surprising fluidity. The Cube state running is stored in a table of 27 elements of the type t_Mask representative in a compacted way the relative position and the orientation of the 27 elementary cubies. Moreover, two 3*3 matrices, external with the CCubes class, lay down the general orientation of the Cube and the relative orientation of the part moving. At the end of a deformation, the table of the 27 elementary cubies is updated and the deformation matrix set to zero.
File list (Check if you may need any files):
ChildView.cpp
ChildView.h
Cubes.cpp
Cubes.h
CubeUtilities.cpp
CubeUtilities.h
Debug
.....\Arrow01.jpg
.....\Arrow02.jpg
.....\Avertis.jpg
DiagCmd.cpp
DiagCmd.h
DiagCtrl.cpp
DiagCtrl.h
DiagExtract.cpp
DiagExtract.h
DiagInp.cpp
DiagInp.h
DiagView.cpp
DiagView.h
Example.txt
Extract.cpp
Extract.h
GDIplus
.......\Includes
.......\........\GdiPlus.h
.......\........\GdiPlusBase.h
.......\........\GdiPlusBitmap.h
.......\........\GdiPlusBrush.h
.......\........\GdiPlusCachedBitmap.h
.......\........\GdiPlusColor.h
.......\........\GdiPlusColorMatrix.h
.......\........\GdiPlusEnums.h
.......\........\GdiPlusFlat.h
.......\........\GdiPlusFont.h
.......\........\GdiPlusFontCollection.h
.......\........\GdiPlusFontFamily.h
.......\........\GdiPlusGpStubs.h
.......\........\GdiPlusGraphics.h
.......\........\GdiPlusHeaders.h
.......\........\GdiPlusimageAttributes.h
.......\........\GdiPlusImageCodec.h
.......\........\GdiPlusImaging.h
.......\........\GdiPlusInit.h
.......\........\GdiPlusLineCaps.h
.......\........\GdiPlusMatrix.h
.......\........\GdiPlusMem.h
.......\........\GdiPlusMetaFile.h
.......\........\GdiPlusMetaHeader.h
.......\........\GdiPlusPath.h
.......\........\GdiPlusPen.h
.......\........\GdiPlusPixelFormats.h
.......\........\GdiPlusRegion.h
.......\........\GdiPlusStringFormat.h
.......\........\GdiPlusTypes.h
.......\Lib
.......\...\GdiPlus.lib
.......\license.txt
.......\redist.txt
GdiPlusUtil.cpp
GdiPlusUtil.h
MainFrm.cpp
MainFrm.h
ReadMe.txt
Release
.......\Arrow01.jpg
.......\Arrow02.jpg
.......\Avertis.jpg
RES
...\RubixCube.ico
...\RubixCube.rc2
...\RubixCube01.bmp
...\RubixCube_01.ico
...\sample.avi
...\Toolbar.bmp
resource.h
resource.hm
RubixCube.aps
RubixCube.clw
RubixCube.cpp
RubixCube.dsp
RubixCube.dsw
RubixCube.h
RubixCube.opt
RubixCube.plg
RubixCube.rc
Solver
......\Combinat.cpp
......\Combinat.h
......\Cube.cpp
......\Cube.h
......\Facecube.cpp
......\Facecube.h
......\Kcube.cpp
......\Kcube.h
......\Kocicube.cpp
......\Kocicube.h
......\Kocimovt.h
......\Movetabl.cpp
......\Movetabl.h