Not sure where this goes - question about software

F

foonicate

I apologize if I posted this to the wrong group.

I am working with C code that (atm) draws a 2d polygon with an
exclusion polygon in the center. There are points located throughout
the polygon with a point that moves throughout the polygon in a pong-
like fashion, bouncing off any boundaries (ie. walls of the polygon).
I am looking for a program that I can plug this code into and it will
draw my polygon and the moving point's path.

Eventually I want to evolve this code into drawing a 3d polygon, but
that is later on. It would be nice to find a program that could do
both 2d and 3d, but everything I come across on the web is incredibly
fancy and seems to be primarily for graphic rendering. I'm not
looking for the big guns, just a simple program that draws polygons
and points, and traces a path.

Any suggestions? Or should I post this somewhere else? Please steer
me in the right direction if I'm in the wrong group.

Thanks!
 
D

Dave Vandervies

I apologize if I posted this to the wrong group.

You did.

comp.programming might be a good next stop.
I'm not familiar with the comp.graphics hierarchy, but there might be
a good place to ask somewhere in there.

If you find or write a C implementation and have problems with or
questions about the code, comp.lang.c might be the right place for that.
(Though if you're displaying it, it will probably use system-specific
extensions that should instead be asked in an appropriate place for
that system.)


dave

--
Dave Vandervies (e-mail address removed)
It's not normally necessary to say "please" to the compiler.
Maybe he's an old intercal programmer.
--Ben Pfaff and Nathan Wagner in comp.lang.c
 
M

Malcolm McLean

I apologize if I posted this to the wrong group.

I am working with C code that (atm) draws a 2d polygon with an
exclusion polygon in the center. There are points located throughout
the polygon with a point that moves throughout the polygon in a pong-
like fashion, bouncing off any boundaries (ie. walls of the polygon).
I am looking for a program that I can plug this code into and it will
draw my polygon and the moving point's path.

Eventually I want to evolve this code into drawing a 3d polygon, but
that is later on. It would be nice to find a program that could do
both 2d and 3d, but everything I come across on the web is incredibly
fancy and seems to be primarily for graphic rendering. I'm not
looking for the big guns, just a simple program that draws polygons
and points, and traces a path.

Any suggestions? Or should I post this somewhere else? Please steer
me in the right direction if I'm in the wrong group.
Do you want animated graphics or a still image?
 
S

SM Ryan

(e-mail address removed) wrote:
# I apologize if I posted this to the wrong group.
#
# I am working with C code that (atm) draws a 2d polygon with an
# exclusion polygon in the center. There are points located throughout
# the polygon with a point that moves throughout the polygon in a pong-
# like fashion, bouncing off any boundaries (ie. walls of the polygon).
# I am looking for a program that I can plug this code into and it will
# draw my polygon and the moving point's path.

You can create a Tk canvas and draw polygons and line segments
with a short script. If you're writing coordinates to stdout,
you can pipe your program to Tk and show the results interactively.
You can ask in comp.lang.tcl for advice.

# Eventually I want to evolve this code into drawing a 3d polygon, but
# that is later on. It would be nice to find a program that could do
# both 2d and 3d, but everything I come across on the web is incredibly

The released Tcl/Tk is 2D. I think there are opengl extensions.
 
F

foonicate

(e-mail address removed) wrote:

# I apologize if I posted this to the wrong group.
#
# I am working with C code that (atm) draws a 2d polygon with an
# exclusion polygon in the center. There are points located throughout
# the polygon with a point that moves throughout the polygon in a pong-
# like fashion, bouncing off any boundaries (ie. walls of the polygon).
# I am looking for a program that I can plug this code into and it will
# draw my polygon and the moving point's path.

You can create a Tk canvas and draw polygons and line segments
with a short script. If you're writing coordinates to stdout,
you can pipe your program to Tk and show the results interactively.
You can ask in comp.lang.tcl for advice.

# Eventually I want to evolve this code into drawing a 3d polygon, but
# that is later on. It would be nice to find a program that could do
# both 2d and 3d, but everything I come across on the web is incredibly

The released Tcl/Tk is 2D. I think there are opengl extensions.


I'll look into that, thank you!
 
M

Malcolm McLean

I am looking to be able to animate the moving point and watch it's
trajectory.
I've got a skeleton routine that will display quick and dirty graphics on
Windows. However it is OT here. If you email me I will send it to you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top