473,394 Members | 1,866 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,394 software developers and data experts.

Shaping Polygons

Hi All,

I am developing a application in VB 6.0. I need to plot a 3D mesh of
quadrilateral and triangular polygons. I have this working OK in
wireframe. The question I have is what is the easiest way to shade the
polygons so that I can render the surface. Each polygon is defined by
the coordinates in space of its corners. Initially I would be happy
with a uniform shading (i.e. constant color) and that is really what I
am asking for help with. However I would also like to eventually shade
the polygons with a color graduation based on value of a parameter at
each of the corners (i.e. to generate a contoured plot on the surface
of the body) where the color represents the value at a particular
point. Any comments on how this would be achieved would also be
appreciated.

Thanks,

Steve
Jul 17 '05 #1
1 3328

"smjmitchell" <sm*********@yahoo.com> wrote in message
news:de**************************@posting.google.c om...
Hi All,

I am developing a application in VB 6.0. I need to plot a 3D mesh of
quadrilateral and triangular polygons. I have this working OK in
wireframe. The question I have is what is the easiest way to shade the
polygons so that I can render the surface. Each polygon is defined by
the coordinates in space of its corners. Initially I would be happy
with a uniform shading (i.e. constant color) and that is really what I
am asking for help with. However I would also like to eventually shade
the polygons with a color graduation based on value of a parameter at
each of the corners (i.e. to generate a contoured plot on the surface
of the body) where the color represents the value at a particular
point. Any comments on how this would be achieved would also be
appreciated.

Thanks,

Steve


VB6 is not so strong on graphics. I think you really have only a few choices
here:
1. Use Windows API calls, such as FloodFill, passing the hDC (device context
handle) from your form.
2. Buy a graphics control. There must be dozens, some not too spendy, that
could save lots of time.
3. Bump up to VB.Net, which has most of the GDI built in, including a
Graphics.FillPolygon method.

Steve G.

Jul 17 '05 #2

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

Similar topics

1
by: David | last post by:
i am using the imagepolygon function to create a shape on an image i have, however i want to put more than just one polygon onto this image, i have no idea how to do this. Do i have to call the...
2
by: flamesrock | last post by:
Just curious - is there an easy way to shape bandwith in python. If I wanted to have a max download speed for instance -thanks
0
by: Mike Kingscott | last post by:
Hi all, I wonder if anyone can help? I have a need to display some data on my web page (the results of a search) for links. Here's the thing: Each link can belong to one or more category (yes, I...
2
by: doar123 | last post by:
Hello, I'm using a shape query, but instead of using a simple clause "RELATE field1 to field2" (relates the parent to the child), i wan't to use 2 relates. somthing like "RELATE field1 to field2...
0
by: mir | last post by:
hi, i want to develop an application which take to words for users, go to goole and try for a google wack, an program similar to google wack using c#.net language. please help me.
1
by: weberwhennner | last post by:
Hi All, Since two days Ive been trying to draw lines and polygons interactively (using mouse clicks), but all ive found is some libraries that draw shapes using predefined cooredinates. Ive...
6
by: Number 11950 - GPEMC! Replace number with 11950 | last post by:
Are polygonal buttons or perhaps polygons with tooltips and and click events available in VS8 or is it too early yet? Thanks in advance... -- Timothy Casey GPEMC! >11950 is the...
3
by: TimVtoo | last post by:
Hello everyone. This pretty much the first time posting in a forum, so please dont shout at me for doing something wrong :). SQL SERVER 2005 CLASSIC ASP VBSCRIPT SQL Server And IIS are running...
1
by: nttamdn | last post by:
Anyone help me please. I want anytime mousemove to one polygon, it's opacity becomes 0.3, and mouseout polygon, i'ts opacity return to 0 again. I means mousemove to show the polygon and hiding it...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.