|
@@ -121,6 +121,11 @@ class SpaceAffectUtil {
|
|
// 与有变化的元空间有交集的空间
|
|
// 与有变化的元空间有交集的空间
|
|
val rsList: MutableList<DCSpace?> = ArrayList()
|
|
val rsList: MutableList<DCSpace?> = ArrayList()
|
|
for (space in spaces!!) {
|
|
for (space in spaces!!) {
|
|
|
|
+ println("spaceId============"+space!!.id)
|
|
|
|
+ println("bimLocation============"+space!!.bimLocation)
|
|
|
|
+ println("buildingId============"+space!!.buildingId)
|
|
|
|
+ println("floorId============"+space!!.floorId)
|
|
|
|
+ println("localName============"+space!!.localName)
|
|
if (space!!.outline.isNullOrEmpty()){
|
|
if (space!!.outline.isNullOrEmpty()){
|
|
continue
|
|
continue
|
|
}
|
|
}
|
|
@@ -130,7 +135,6 @@ class SpaceAffectUtil {
|
|
val polygon = createPolygonV2(subOutLine)
|
|
val polygon = createPolygonV2(subOutLine)
|
|
// 有交集则加入有变化的空间列表
|
|
// 有交集则加入有变化的空间列表
|
|
for(affect in affectList) {
|
|
for(affect in affectList) {
|
|
- println("space============"+space)
|
|
|
|
if (isGeoContains(polygon, affect!!)) {
|
|
if (isGeoContains(polygon, affect!!)) {
|
|
// state设置为1
|
|
// state设置为1
|
|
space.state = 1
|
|
space.state = 1
|
|
@@ -156,8 +160,6 @@ class SpaceAffectUtil {
|
|
if (fromPolygon == null || toPolygon == null) {
|
|
if (fromPolygon == null || toPolygon == null) {
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
- println("fromPolygon================"+fromPolygon)
|
|
|
|
- println("toPolygon================"+toPolygon)
|
|
|
|
//判断面-面包含关系
|
|
//判断面-面包含关系
|
|
return (fromPolygon.contains(toPolygon)
|
|
return (fromPolygon.contains(toPolygon)
|
|
|| fromPolygon.equalsTopo(toPolygon)
|
|
|| fromPolygon.equalsTopo(toPolygon)
|