π‘ LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering
Download Trial
Code to check isFaceInFace
-
Hello, i need help!
exists a simple way to check if face 2 in face 1 ?
i need a function: (pseudocode)
def isFaceInFace(face1, face2){ CODE TO CHECKING if faceinface then return true else return false end end
thx
-
I think this will work. It checks the loops of
face1
and looks forface2
.def isFaceInFace(face1, face2){ face1.loops.each { |loop| next if loop.outer? return true if loop.edges.first.faces.include?(face2) } return false end
Advertisement