|
|
|
|
@ -392,14 +392,11 @@ namespace Metamesh |
|
|
|
|
|
|
|
|
|
public void MapABOBtoOBOA() |
|
|
|
|
{ |
|
|
|
|
//var point = new Vector2Int(0, 0); |
|
|
|
|
for (var i = 0; i < this.isoVecsABOB.Count; i++) |
|
|
|
|
{ |
|
|
|
|
var temp = new List<Vector2Int>(); |
|
|
|
|
for (var j = 0; j < 3; j++) |
|
|
|
|
{ |
|
|
|
|
//point.x = this.isoVecsABOB[i][j].x; |
|
|
|
|
//point.y = this.isoVecsABOB[i][j].y; |
|
|
|
|
var point = this.isoVecsABOB[i][j]; |
|
|
|
|
if (this.vertexTypes[i][j] == 0) |
|
|
|
|
{ |
|
|
|
|
@ -415,14 +412,11 @@ namespace Metamesh |
|
|
|
|
|
|
|
|
|
public void MapABOBtoBAOA() |
|
|
|
|
{ |
|
|
|
|
//var point = new Vector2Int(0, 0); |
|
|
|
|
for (var i = 0; i < this.isoVecsABOB.Count; i++) |
|
|
|
|
{ |
|
|
|
|
var temp = new List<Vector2Int>(); |
|
|
|
|
for (var j = 0; j < 3; j++) |
|
|
|
|
{ |
|
|
|
|
//point.x = this.isoVecsABOB[i][j].x; |
|
|
|
|
//point.y = this.isoVecsABOB[i][j].y; |
|
|
|
|
var point = this.isoVecsABOB[i][j]; |
|
|
|
|
if (this.vertexTypes[i][j] == 1) |
|
|
|
|
{ |
|
|
|
|
@ -877,7 +871,7 @@ namespace Metamesh |
|
|
|
|
if (goldbergPolyhedronData.face.Count <= m) |
|
|
|
|
{ |
|
|
|
|
if (goldbergPolyhedronData.face.Count != m) |
|
|
|
|
Debug.Log($"goldbergPolyhedronData.face.Count != m: {goldbergPolyhedronData.face.Count} != {m}"); |
|
|
|
|
Debug.LogWarning($"goldbergPolyhedronData.face.Count != m: {goldbergPolyhedronData.face.Count} != {m}"); |
|
|
|
|
goldbergPolyhedronData.face.Add(tempFace); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
@ -901,8 +895,6 @@ namespace Metamesh |
|
|
|
|
|
|
|
|
|
goldbergPolyhedronData.vertex[el] = new Vector3(cx / 3, cy / 3, cz / 3); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return goldbergPolyhedronData; |
|
|
|
|
|