Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Identifying straight cylindrical polysurfaces

$
0
0

Hi guys,

In the attached file I’ve got a bunch of straight and curved tubular surface (that I didn’t make and are often broken into more surfaces than makes any sense) and I’m trying to identify and distinguish the straight from the curved ones. I don’t know if the problem is a bug in my logic or something is returning results I don’t expect, but my code is not working at all. I’m using brep.IsCylinder and .IsPlanar to identify them–if any surface is not cylindrical OR planar, it’s a curved pipe, is that the wrong approach?

Itentifying polysurfaces.3dm (464.0 KB)

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles