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

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

            pc.Clustering();
        }
Beispiel #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();
        }
Beispiel #3
0
 protected override bool DoCleanup()
 {
     pc       = null;
     refverts = null;
     return(base.DoCleanup());
 }