Ejemplo n.º 1
0
        public ObjRenderData GetRenderData()
        {
            var verts = GetVerts();

            var data = new ObjRenderData();

            if (ShowControlGrid)
            {
                data.Add(GetControlGrid(verts));
            }
            if (ShowGrid)
            {
                data.Add(GetGrid(verts));
            }

            return(data);
        }
Ejemplo n.º 2
0
        protected ObjRenderData GetGrid(List <List <Vector3> > verts)
        {
            var data = new ObjRenderData();

            var H = HeightPatchCount;
            var W = WidthPatchCount;

            for (int h = 0; h < H; h++)
            {
                for (int w = 0; w < W; w++)
                {
                    data.Add(GetGridForPatch(verts, h, w));
                }
            }

            return(data);
        }