Author |
Message |
Ara Knaian (ara)
New member Username: ara
Post Number: 1 Registered: 05-2005
| Posted on Tuesday, May 17, 2005 - 04:44 pm: | |
I need to create a (3D) geometry with two seperate right circular cylinders. I need to orient the cylinders at an (arbitrary 3D) angle to one another. The best I can come up with so far in order to create each cylinder is to: A. Create a sloping planar surface (e.g. z=2*x + 3*y) B. draw a circular (not elliptical) region onto that planar surface C. extrude that region perp. to the planar surface, not purely in the Z direction. Step A is no problem, and I might be able to do step B with a spline, but I don't know how to do step C. Perhaps there is an entirely better way to do this? Thanks, Ara
|
Robert G. Nelson (rgnelson)
Moderator Username: rgnelson
Post Number: 364 Registered: 06-2003
| Posted on Wednesday, May 18, 2005 - 02:12 pm: | |
Extrusion is always performed in the Z direction. You cannot do oblique extrusion. I suggest that you construct a cylinder with its axis lying along the X coordinate axis, by defining upper and lower surfaces with circular shape (similar to the way 3d_toggle.pde or 3d_torus.pde do it). Then construct the second cylinder above the first with its axis lying in the XY plane but oriented at the desired angle to the first cylinder. Altogether, this will require six surfaces (including a top and bottom surface of the containing medium). Layers 1, 3 and 5 are the containing medium. Layers 2 and 4 are the cylinders, defined as Limited regions containing the appropriate cylinder boundaries.
|
|