예제 #1
0
    public Fingerprint(Mesh mesh, Quaternion orientation, bool top = false)
    {
        this.Rotated = Enumerable.Range(0, 4).Select(i => Fingerprint.create(mesh, orientation, i, false, top)).ToArray();
        this.Base    = this.Rotated[0];
        this.Flipped = Fingerprint.create(mesh, orientation, 0, flipX: true);

        this.Symmetric = Fingerprint.Compare(this.Base, this.Flipped);
        this.Invariant = Fingerprint.Compare(this.Rotated[0], this.Rotated[1]);
    }