#### Archived

This topic is now archived and is closed to further replies.

# 3D Arcs?

This topic is 5195 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi, Can anyone help me with drawing a 3D arc (a bent cylinder)? Is there a library providing such function? Thanks!

##### Share on other sites
Why no try extruding a cricle along a 2D curve? You store all the points in the curve in an array and center a circle around each point joining up the poinst to make polygons (quads would be easiest).

##### Share on other sites
Is this reliable?
I mean, that is a huge number of polygons just to draw one arc.

what do you think?

Thanks

##### Share on other sites
It might take a while.
But it should work for you.

##### Share on other sites
Are you talking about a 3d line or a 3d curved surface?

##### Share on other sites
A 3d curved surface, a 3d line is actually a cylinder!

##### Share on other sites
hmm.. i have code for a dome that could be modified to function as an arc. ill work on it, then post the code lol

Thanks!

##### Share on other sites
quote:
Original post by FreakyMisfit
A 3d curved surface, a 3d line is actually a cylinder!

A line can move though a 3d area, I was wondering if you were looking a line that curves though 3d space.

As for a curved surface it''s not too hard to create a function that will draw it, where params can be size, detail(how many segments make up the surface), etc.

##### Share on other sites
oh, so ur talking about an arc, i was thinging something else.

the dome code wouldnt be as easy to modify as i thought then...

my suggestion would be to go to math.com and look up sin and cos. these will be very valuable to u and everyone must know how to use them. it would be better if u try to ficure out those, becuase with them, u can just create a loop for ur vertex arrays lol... im still modifying the dome code though lol

1. 1
Rutin
24
2. 2
3. 3
JoeJ
18
4. 4
5. 5

• 38
• 23
• 13
• 13
• 17
• ### Forum Statistics

• Total Topics
631706
• Total Posts
3001835
×