def getCarveIntersectionFromEdge(edge, vertexes, z):
 firstVertex = vertexes[edge.vertexIndexes[0]]
 firstVertexComplex = firstVertex.dropAxis(2)
 secondVertex = vertexes[edge.vertexIndexes[1]]
 secondVertexComplex = secondVertex.dropAxis(2)
 zMinusFirst = (z - firstVertex.z)
 up = (secondVertex.z - firstVertex.z)
 return (((zMinusFirst * (secondVertexComplex - firstVertexComplex)) / up) + firstVertexComplex)

def getCarveIntersectionFromEdge ( edge , vertexes , z ) : firstVertex = vertexes [ edge . vertexIndexes [ 0 ] ] firstVertexComplex = firstVertex . dropAxis ( 2 ) secondVertex = vertexes [ edge . vertexIndexes [ 1 ] ] secondVertexComplex = secondVertex . dropAxis ( 2 ) zMinusFirst = ( z - firstVertex . z ) up = ( secondVertex . z - firstVertex . z ) return ( ( ( zMinusFirst * ( secondVertexComplex - firstVertexComplex ) ) / up ) + firstVertexComplex )
get the complex where the carve intersects the edge .