I just looked at some stuff on CSGs and ideally that would be the type of
stuff I would like to do (just union cylinders), but it seems like it would
be very slow and I am going to have to make several different arc
(different lengths & heights)..
What I was trying to do specify each vertex in one single quad array.. The
problem is just getting J3D to interpret the faces correctly after I have
all of those points. As for the coordinates I specify, I don't think there
should be any overlapping problems.
Just to make it easier to see what is happening, here is my Arc class and a
simple program for viewing it. I don't really know enough about Shape
creation to tell what might be going wrong. Any help would be appreciated.
If you run it w/o command line arguments there will be 5 sections or you
can specify the number of sections. For now, it is just being created as a
flattened triangle, so if you had 3 sections it would look like:
_
/ \
eventually I want to make this into a more circular arc, but just wanted to
make sure I could create a shape.
Thanks,
Dennis Goetz
At 05:04 PM 10/6/99 -0400, Casteel, Don wrote:
>if your making one large QuadArray consisting of the individual quads from
>several cylinders, what you're probably seeing is the attempt to draw quads
>from the end of one cylinder to the begining of the next, which when they
>overlap one another things will get really wierd.
>
>I think your running into the difference between an "ADD" operation and a
>"UNION" operation. (try searching the web for: Constructive Solid Geometry
>or CGS)
>
>Check the attached diagram, Hope this helps
ArcApp.jar