We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c49e178 commit da55c5dCopy full SHA for da55c5d
1 file changed
src/main/java/eu/mihosoft/vrl/v3d/CSG.java
@@ -3161,9 +3161,7 @@ public CSG markForRegeneration() {
3161
public boolean touching(CSG incoming) {
3162
// Fast bounding box overlap check, quick fail if not intersecting
3163
// bounding boxes
3164
- if (this.getMaxX() > incoming.getMinX() && this.getMinX() < incoming.getMaxX()
3165
- && this.getMaxY() > incoming.getMinY() && this.getMinY() < incoming.getMaxY()
3166
- && this.getMaxZ() > incoming.getMinZ() && this.getMinZ() < incoming.getMaxZ()) {
+ if (isBoundsTouching(incoming)) {
3167
// Run a full intersection
3168
CSG inter = this.intersect(incoming);
3169
if (inter.getPolygons().size() > 0) {
0 commit comments