コード例 #1
0
ファイル: PrimMesher.cs プロジェクト: gumho/diva-distribution
        public ViewerFace(int primFaceNumber)
        {
            this.primFaceNumber = primFaceNumber;

            this.v1 = new Coord();
            this.v2 = new Coord();
            this.v3 = new Coord();

            this.coordIndex1 = this.coordIndex2 = this.coordIndex3 = -1; // -1 means not assigned yet

            this.n1 = new Coord();
            this.n2 = new Coord();
            this.n3 = new Coord();

            this.uv1 = new UVCoord();
            this.uv2 = new UVCoord();
            this.uv3 = new UVCoord();
        }
コード例 #2
0
 public static Vector2D convVect2d(UVCoord uv)
 {
     return new Vector2D(uv.U, uv.V);
 }
コード例 #3
0
ファイル: VertexIndexer.cs プロジェクト: huanvn/PrimMesher
 public ViewerVertex(Coord coord, Coord normal, UVCoord uv)
 {
     this.v = coord;
     this.n = normal;
     this.uv = uv;
 }
コード例 #4
0
ファイル: PrimMesher.cs プロジェクト: ChrisD/opensim
        public ViewerFace(int primFaceNumber)
        {
            this.primFaceNumber = primFaceNumber;

            this.v1 = new Coord();
            this.v2 = new Coord();
            this.v3 = new Coord();

            this.n1 = new Coord();
            this.n2 = new Coord();
            this.n3 = new Coord();

            this.uv1 = new UVCoord();
            this.uv2 = new UVCoord();
            this.uv3 = new UVCoord();
        }