MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / toString

Method toString

src/main/java/field/graphics/BaseMesh.java:479–494  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

477 }
478
479 @Override
480 public String toString() {
481
482 if (this.elements == null)
483 return "Mesh(" + this.vertex(true).limit() / 3 + "("+getVertexLimit()+") points)";
484
485 int d = this.elements.getDimension();
486 int num = this.elements.ints(true)
487 .limit() / d;
488 if (d == 2)
489 return "Mesh(" + num + " lines / " + this.vertex(true).limit() / 3 +"("+getVertexLimit()+") vertices)";
490
491 return "Mesh(" + num + " triangles / " + this.vertex(true).limit() / 3 + "("+getVertexLimit()+") vertices)";
492
493// return "Mesh:"+(this.elements==null ? null : d)+"/"+(this.elements==null ? null : (this.elements.ints(true).limit()/ d))+" "+(this.vertex(true).limit()/3);
494 }
495}

Callers

nothing calls this directly

Calls 5

vertexMethod · 0.95
getVertexLimitMethod · 0.95
getDimensionMethod · 0.65
intsMethod · 0.65
limitMethod · 0.45

Tested by

no test coverage detected