forked from kscience/visionforge
layer marking
This commit is contained in:
parent
8f95d6f485
commit
38c76e824d
@ -76,15 +76,14 @@ public fun SolidGroup.markLayers(thresholds: List<Int> = listOf(500, 1000, 20000
|
|||||||
if (layerIndex == 0) break
|
if (layerIndex == 0) break
|
||||||
|
|
||||||
node.vision.layer = layerIndex
|
node.vision.layer = layerIndex
|
||||||
val removedCount = node.selfCount * node.children.size
|
remaining -= node.selfCount * node.childrenCount
|
||||||
logger?.apply {
|
logger?.apply {
|
||||||
if (node.selfCount > 1) {
|
if (node.selfCount > 1) {
|
||||||
info { "Prototype with name ${node.name} moved to layer $layerIndex" }
|
info { "Prototype with name ${node.name} moved to layer $layerIndex. $remaining nodes remains" }
|
||||||
} else {
|
} else {
|
||||||
info { "Vision with name ${node.name} moved to layer $layerIndex" }
|
info { "Vision with name ${node.name} moved to layer $layerIndex. $remaining nodes remains" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
remaining -= removedCount
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user