🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
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 endthx

-
I think this will work. It checks the loops of
face1and 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