16.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 7ac00df9 authored by Benedikt Zoennchen's avatar Benedikt Zoennchen
Browse files

implement property management for AMesh (i.e. array-based). Default value...

implement property management for AMesh (i.e. array-based). Default value indicating null values not jet implemented.
parent cfc19a08
......@@ -695,6 +695,18 @@ public class AMesh implements IMesh<AVertex, AHalfEdge, AFace>, Cloneable {
list.set(i, tmp);
}
}
for(var list : verticesDoubleData.values()) {
if(vertexMap.length < facesDoubleData.size()) {
list.trim(vertexMap.length);
}
}
for(var list : verticesData.values()) {
if(vertexMap.length < facesDoubleData.size()) {
list.trim(vertexMap.length);
}
}
}
private void rearrangeHalfEdgesData(@NotNull int[] edgeMap) {
......@@ -709,6 +721,18 @@ public class AMesh implements IMesh<AVertex, AHalfEdge, AFace>, Cloneable {
list.set(i, tmp);
}
}
for(var list : halfEdgesDoubleData.values()) {
if(edgeMap.length < facesDoubleData.size()) {
list.trim(edgeMap.length);
}
}
for(var list : halfEdgesData.values()) {
if(edgeMap.length < facesDoubleData.size()) {
list.trim(edgeMap.length);
}
}
}
private void rearrangeFacesData(@NotNull int[] faceMap) {
......@@ -723,6 +747,18 @@ public class AMesh implements IMesh<AVertex, AHalfEdge, AFace>, Cloneable {
list.set(i, tmp);
}
}
for(var list : facesDoubleData.values()) {
if(faceMap.length < facesDoubleData.size()) {
list.trim(faceMap.length);
}
}
for(var list : facesData.values()) {
if(faceMap.length < facesDoubleData.size()) {
list.trim(faceMap.length);
}
}
}
private void copyFace(@NotNull final AFace face, @NotNull int[] vertexMap, @NotNull int[] edgeMap, @NotNull int[] faceMap, @NotNull final AMesh cMesh) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment