Three dimensional orthogonal grid generation is able to control effectively the grid spacing near the boundaries, but there are some difficulty to meshing complex geometry. The mesh complex geometry by orthogonal grid generation method must divide block of geometry It is required a careful skill, and long time. Its also difficulty to make unstructured mesh on complex geometry. Particularly, three dimensional geometry must have more time and effort. Recently, there have been growing interests in mesh generation of complex grometry, aslike an automobile headlamp, the heart. The method of easily meshing complex geometry is resarched to solve them. We suggest octree grid into one among these methods. As octrce grid is automaticaly adapted at the boundaries by determine the level operations to control the grid spacing near the boundaries are unnecessary. In this paper we showed throe dimensional mesh generation, and heat-flow analysis on the octree mesh.