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
|
||||
|
||||
node.vision.layer = layerIndex
|
||||
val removedCount = node.selfCount * node.children.size
|
||||
remaining -= node.selfCount * node.childrenCount
|
||||
logger?.apply {
|
||||
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 {
|
||||
info { "Vision with name ${node.name} moved to layer $layerIndex" }
|
||||
}
|
||||
}
|
||||
remaining -= removedCount
|
||||
info { "Vision with name ${node.name} moved to layer $layerIndex. $remaining nodes remains" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user