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

Method open

src/main/java/field/graphics/MeshBuilder.java:65–86  ·  view source on GitHub ↗

opens a MeshBuilder to get it ready for accepting geometry. The first call to open() will clear out all the geometry that was previously in this container. Nested calls to open() without a corresponding call to close() will append. Make sure that there's a matching close() for every open() (i.e. lea

()

Source from the content-addressed store, hash-verified

63 if (openCount == 0) {
64 doOpen();
65 target.attach("__forceClose__" + System.identityHashCode(this), new Scene.Perform() {
66 @Override
67 public boolean perform(int pass) {
68 if (openCount > 0) {
69 openCount = 0;
70 doClose();
71 }
72 return false;
73 }
74
75 @Override
76 public int[] getPasses() {
77 return new int[]{-1};
78 }
79 });
80 }
81 openCount++;
82 return this;
83 }
84
85 @Override
86 public boolean asMap_isProperty(String p) {
87 if (knownNonProperties == null) knownNonProperties = computeKnownNonProperties();
88
89 return !knownNonProperties.contains(p) && target.asMap_isProperty(p);

Callers 5

getLineMethod · 0.95
getMeshMethod · 0.95
getPointsMethod · 0.95
defaultMeshMethod · 0.95
asMap_callMethod · 0.95

Calls 2

doOpenMethod · 0.95
attachMethod · 0.45

Tested by

no test coverage detected