Make object in rectangular shape

I have created a pipe using CreateTube() method, but I don’t want to make it look in a circular shape, I want it to be in a rectangular shape, however, I have tried setting the radius value to 0, but it didn’t work out. Can any one suggest me any property that could help me in CreateTube() method?

Do you mean tesselation? Something like that, may be:

1 Like

Yes, that’s what I needed thanks!