Hi everybody,
I have noticed that some objects may affect the way the conduit are drawn in my code. I have not been able to isolate the problem but, when a nearly degenerated object (a cube with height 10^-10 or a surface compressed to a line) is the first in the database or it is selected, the colors of the conduit seem to be assigned randomly. Of course, if this rings you a bell I would be glad to hear your opinion on that, but at the moment I am just preventing the creation of such objects.
However I was wondering if you know any tool built in Rhino that is capable to detect such badly shaped objects. I have tried the IsValid() method but it seems to make an evaluation on topology rather than geometry of the object…
Thanks in advance,
Gennaro