Esempio n. 1
0
    private void create_cut_p(ref List <MeshPoint> mesh_points, Vector3 pos)
    {
        MeshPoint MP = new MeshPoint(pos, true, this);

        MP.uv_cal();
        mesh_points.Add(MP);
        //Debug.Log("@@@@@1 " + MP.VarToString());
        //Debug.Log("@@@@@2 " + this.VarToString());
    }
Esempio n. 2
0
    public MeshData[] cut(MeshPoint MP1, MeshPoint MP2)
    {
        //Debug.Log("cut1 " + MP1.pos);
        //Debug.Log("cut2 " + MP2.pos);
        MeshLine cut_line = new MeshLine();

        cut_line.line_cal(MP1, MP2);
        MP1.uv_cal();
        MP2.uv_cal();

        return(points_cal(cut_line, MP1, MP2));
    }