#include
#include
#include
#define VERTEX_NUM 8
typedef enum {FALSE = 0, TRUE = 1}BOOL;
typedef struct ArcNode {
int adjvex;
struct ArcNode *nextarc; // struct不能少
}ArcNode;
BOOL visi...
分类:
其他好文 时间:
2015-03-30 09:26:01
阅读次数:
201
You are given a tetrahedron. Let’s mark its vertices with letters A, B, C and D correspondingly.An ant is standing in the vertex D of the tetrahedron. The ant is quite active and he wouldn’t stay idle....
分类:
其他好文 时间:
2015-03-21 12:42:08
阅读次数:
155
http://poj.org/problem?id=1179
Description
Polygon is a game for one player that starts on a polygon with N vertices, like the one in Figure 1, where N=4. Each vertex is labelled with an integer...
分类:
其他好文 时间:
2015-03-18 12:23:19
阅读次数:
147
class Graph: def __init__(self): self.V = []class Vertex: def __init__(self, x): self.key = x self.color = 'white' s...
分类:
编程语言 时间:
2015-03-17 17:37:35
阅读次数:
182
class Graph: def __init__(self): self.V = []class Vertex: def __init__(self, x): self.key = x self.color = 'white' s...
分类:
编程语言 时间:
2015-03-17 00:28:51
阅读次数:
295
转载自风宇冲Unity3D教程学院Shader有Fixed Function, Vertex and Fragment, Surface, 而Vertex and Fragmen里又有CG和GLSL两种。为什么选CG做重点讲解呢?Fixed Function:老式的固定管线,实现功能有限,不必多说。...
分类:
编程语言 时间:
2015-03-11 12:23:17
阅读次数:
162
原创文章如需转载请注明:转载自风宇冲Unity3D教程学院Vertex and Fragment Shader例子二,制作一个自动旋转的3D地球。下载美丽的地球工程原理是 2张贴图,一张地球图,一张云层分布图(1)通过uv.x即纹理坐标的横轴与时间相乘,产生球在移动的效果(2)通过地球和云的颜色值叠...
分类:
编程语言 时间:
2015-03-10 21:03:43
阅读次数:
438
原创文章如需转载请注明:转载自风宇冲Unity3D教程学院 Vertex and Fragment Shader:最强大的Shader类型,也是本系列的重点,下文中简称V&F Shader,属于可编程渲染管线. 使用的是CG/HLSL语法。分为2个部分vertex顶点部分和Fragme...
分类:
编程语言 时间:
2015-03-10 20:59:35
阅读次数:
237
1、什么是图表示多对多的关系包含一组顶点:通常用V(Vertex)表示顶点集合一组边:通常用E(Edge)表示边的集合2、抽象数据类型定义类型名称:图(Graph)数据对象集:G(V,E)由一个非空的有限顶点集合V和一个有限边集合E组成。操作集:对于任意图G 属于 Graph,以及v 属于 V,e ...
分类:
其他好文 时间:
2015-03-10 16:51:29
阅读次数:
176
1.有向图:有向图G是由一个非空有限集合V和V中某些元素的有序对集合A构成的二元组,记作:G=(V,A),其中V(Vertex)是图G(Graph)的顶点集,A(Arc)是图G的弧集。2.关联矩阵:有向图G=(V,A)的关联矩阵定义为矩阵B:B是一个n*m的矩阵,n为顶点数,m为弧数,即B[i][k...
分类:
其他好文 时间:
2015-03-10 00:01:05
阅读次数:
289