I try to check intersection between each sloped surfaces form one axis and each one from another,
it is my firs approach
but it is not work. I am beginner in Python. Is it problem with syntax, or mabye with import?
import sys
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
surf_x = IN[0]
surf_y = IN[1]
output =
for x in surf_x:
inlist =
for y in surf_y:
if x.DoesIntersect(y):
inlist.append(True)
else:
inlist.append(False)
output.append(inlist)
OUT = output
Alien
2
What’s the error message?
Alien
4
It says you’re feeding it with a boolean instead of a geometry.
I notice your lists are a mix of surfaces and falses.
Try it with just surfaces.
1 Like
You have right, now it’s work, but I need to left same numeration for next step
I try another approach to this example
but I don’t understand why first surface have only one intersection with surface on other axis
Than you very much, I will be greateful if you have an idea and can explain what can be wrong with this method