473,382 Members | 1,407 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Not sure where this goes - question about software

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!

May 10 '07 #1
6 1314
In article <11*********************@q75g2000hsh.googlegroups. com>,
<fo*******@gmail.comwrote:
>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 dj******@csclub.uwaterloo.ca
>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
May 10 '07 #2

<fo*******@gmail.comwrote in message
news:11*********************@q75g2000hsh.googlegro ups.com...
>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?

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

May 10 '07 #3
fo*******@gmail.com 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.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
Raining down sulphur is like an endurance trial, man. Genocide is the
most exhausting activity one can engage in. Next to soccer.
May 10 '07 #4
On May 10, 2:03 am, "Malcolm McLean" <regniz...@btinternet.comwrote:
<foonic...@gmail.comwrote in message

news:11*********************@q75g2000hsh.googlegro ups.com...
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?

--
Free games and programming goodies.http://www.personal.leeds.ac.uk/~bgy1mm
I am looking to be able to animate the moving point and watch it's
trajectory.
May 10 '07 #5
On May 10, 7:28 am, SM Ryan <wyrm...@tango-sierra-oscar-foxtrot-
tango.fake.orgwrote:
foonic...@gmail.com 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.

--
SM Ryanhttp://www.rawbw.com/~wyrmwif/
Raining down sulphur is like an endurance trial, man. Genocide is the
most exhausting activity one can engage in. Next to soccer.

I'll look into that, thank you!

May 10 '07 #6

<fo*******@gmail.comwrote in message
news:11**********************@h2g2000hsg.googlegro ups.com...
On May 10, 2:03 am, "Malcolm McLean" <regniz...@btinternet.comwrote:
><foonic...@gmail.comwrote in message

news:11*********************@q75g2000hsh.googlegr oups.com...
>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?

--
Free games and programming
goodies.http://www.personal.leeds.ac.uk/~bgy1mm

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.
--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm
May 11 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: David Sworder | last post by:
Hi, A quick question (please let me know a more appropriate newsgroup, if any): When developing a new piece of software, how does one know whether or not the software needs to be "patented"?...
28
by: joe | last post by:
I have a simple .NET application with two or three listViews which are filled with icons and when the user click on the proper item, they display the related images. I use "image = null ; " for all...
2
by: Brian | last post by:
Greetings, I am trying to create a database program so that I can keep a record of the stock adjustments I do here at work. How should it work? I often have to do adjustments for 3-4 products...
96
by: Karen Hill | last post by:
SELECT surgeries.*, animals.* FROM surgeries INNER JOIN animals ON .=. AND WHERE ((.=Date()) Or .=Date()); I'm trying to write a query that joins two table together, animals and surgeries...
90
by: Bret Pehrson | last post by:
This message isn't spam or an advertisement or trolling. I'm considering farming some of my application development to offshore shops (I'm in the US). I have absolutely *no* experience w/ this,...
5
by: Charlie | last post by:
Hi: I'm working on an e-commerce site. Using the SMTP class, my site sends out confirmation messages. It works most of the time, but sometimes raises an error. I need a way of making sure it...
37
by: yogpjosh | last post by:
Hello All, I was asked a question in an interview.. Its related to dynamically allocated and deallocated memory. eg. //start char * p = new char; ...
2
by: Henry | last post by:
I am trying to work my way through a textbook on web services. I was running a help page and got this error message. To me it is vague. Not knowing the code well enough I am not sure which data...
12
by: Pioneer | last post by:
Hi, I would be installing a desktop application on a standalone PC. How do I make sure that owner should not be ableto copy that and/or give it to other folks. In short, how to build measures to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.