Example #1
0
        void CreatePointCluster()
        {
            pc = new PointCluster(refverts.Count);

            foreach (Vertex i in refverts)
            {
                pc.Add(i.Pos);
            }

            pc.Clustering();
        }
Example #2
0
        private void CreatePointCluster(TSOFile tso)
        {
            vlst = new List <Vertex>();

            foreach (TSOMesh i in tso.meshes)
            {
                foreach (TSOSubMesh j in i.sub)
                {
                    vlst.AddRange(j.vertices);
                }
            }

            pc = new PointCluster(vlst.Count);

            foreach (Vertex i in vlst)
            {
                pc.Add(i.Pos.x, i.Pos.y, i.Pos.z);
            }

            pc.Clustering();
        }
Example #3
0
 protected override bool DoCleanup()
 {
     pc       = null;
     refverts = null;
     return(base.DoCleanup());
 }