GetObject Class Help


#1

Hello,

I started reading the sample file about how to get the surface normal in python;

But I do not understand this part;
face = gs.Object(0).Face()

gs.Object - to refrence the object
but what does “(0)” do? What does .Face() do?


(Dale Fugier) #2

It returns the 0th item into the zero-based

Returns the BrepFace that picked (on).

– Dale


#3

Thank you Dale,

Yes, this is what I assumed.