问题
I can modify the line color of the mesh using the following code.
extension ARMeshClassification {
var description: String {
switch self {
case .ceiling: return "Ceiling"
case .door: return "Door"
case .floor: return "Floor"
case .seat: return "Seat"
case .table: return "Table"
case .wall: return "Wall"
case .window: return "Window"
case .none: return "None"
@unknown default: return "Unknown"
}
}
var color: UIColor {
switch self {
case .ceiling: return .red
case .door: return .green
case .floor: return .blue
case .seat: return .cyan
case .table: return .magenta
case .wall: return .yellow
case .window: return .black
case .none: return .systemOrange
@unknown default: return .gray
}
}
}
But I can't find a way to modify the content of the mesh,let the monitored grid plane display other colors. same effect as 3d scanner app.
eg: https://i.stack.imgur.com/NhNdx.png
来源:https://stackoverflow.com/questions/64796845/how-to-re-render-the-scanned-mesh-content-with-realitykits-arview