Notice: If you are member of any public project or group, please make sure that your GitLab username is not the same as the LRZ identifier/Kennung (see https://gitlab.lrz.de/profile/account). Please change your username if necessary. For more information see the section "Public projects / Öffentliche Projekte" at https://doku.lrz.de/display/PUBLIC/GitLab . Thank you!

Commit 7ac00df9 authored by BZoennchen's avatar BZoennchen

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