示例#1
0
        protected RoamTriangle AllocTriangle()
        {
            var triangle = new RoamTriangle();

            triangle.InsertBefore(ActiveTriangles);
            return(triangle);
        }
示例#2
0
        public void SetTriangles(RoamTriangle t0, RoamTriangle t1, RoamTriangle t2, RoamTriangle t3)
        {
            Triangles0 = t0;
            Triangles1 = t1;
            Triangles2 = t2;
            Triangles3 = t3;

            t0.Diamond = this;
            t1.Diamond = this;
            t2.Diamond = this;
            t3.Diamond = this;
        }
示例#3
0
 protected void FreeTriangle(RoamTriangle triangle)
 {
     triangle.Remove();
 }
示例#4
0
 // {
 //     vertex.LinearPosition = normal;
 //     vertex.Normal = normal;
 //     vertex.Position = normal;
 // }
 protected abstract void ComputeVertexAltitude(RoamVertex vertex, RoamTriangle triangle);
示例#5
0
 protected abstract bool SubdivideTriangle(RoamTriangle triangle);