protected RoamTriangle AllocTriangle() { var triangle = new RoamTriangle(); triangle.InsertBefore(ActiveTriangles); return(triangle); }
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; }
protected void FreeTriangle(RoamTriangle triangle) { triangle.Remove(); }
// { // vertex.LinearPosition = normal; // vertex.Normal = normal; // vertex.Position = normal; // } protected abstract void ComputeVertexAltitude(RoamVertex vertex, RoamTriangle triangle);
protected abstract bool SubdivideTriangle(RoamTriangle triangle);