Groups | Blog | Home
all groups > dotnet drawing api > february 2004 >

dotnet drawing api : Drawing different roofs


Rameshika
2/19/2004 11:41:05 PM
Hi All,
I want to draw roof shapes in my program using user entered roof angle, height, width, length etc. I develop this application in C#. I'm new to drawing and need some guidance to start off. I also want to see the possibility of drawing 3D models in C#. where shoudl i start? what methods and techniques could be used to draw a roof...?

roof shapes - sloped roof with an angle , roof with a skylight etc.
Thanks a lot
James Westgate [Crainiate]
2/20/2004 5:01:59 PM
Add a panel control to a form. Override the OnPaint event
with the graphics object passed into the paint event, make calls to
..DrawLine, .DrawRectangle, .FillRectangle etc.

Im assuming you are going to need to use some trig to work out angles and
lengths between 2 points.

You can use managed directx 9 for 3D work but if you're new to drawing you
may want to try the basic GDI+ stuff first.

http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28000410

James

--
Create interactive diagrams and flowcharts with ERM3 at
http://www.crainiate.net


[quoted text, click to view]
height, width, length etc. I develop this application in C#. I'm new to
drawing and need some guidance to start off. I also want to see the
possibility of drawing 3D models in C#. where shoudl i start? what methods
and techniques could be used to draw a roof...?
[quoted text, click to view]

Rameshika
2/21/2004 12:11:05 AM
Hi

I have created shapes such as triangles,traingle with a small space in between(monitored roof), angle between two lines etc seperately, as the user enters his requirements. For an example ( when the user specifies a sloped roof with an angle 50 it will be drawn on a picture box)
I also get inputs such as height, length and width of the roof or whether it has eaves,openning on top of the roof etc.
Could you please be kind enough to tell me how can I combine all these parameters (Seperately taken) and draw the enire roof in 2D
Parameters will be shape, angle,height, length,width, material type, ceiling type(flat or pitched) etc.If user picks eaves then it should be shown in the drawing

Thanks and Regards
Rameshik

James Westgate [Crainiate]
2/21/2004 11:49:39 PM
Sure, give me a spec and Ill send you a quote ;)

J

[quoted text, click to view]
between(monitored roof), angle between two lines etc seperately, as the user
enters his requirements. For an example ( when the user specifies a sloped
roof with an angle 50 it will be drawn on a picture box).
[quoted text, click to view]
ceiling type(flat or pitched) etc.If user picks eaves then it should be
shown in the drawing.
[quoted text, click to view]

Rameshika
2/25/2004 11:56:05 PM
Sorry, I didn't get what you have written as the reply for my question.Could you please explain me.Thanks
clueless
4/20/2005 3:22:25 PM
this made me laugh!

From http://www.developmentnow.com/g/20_2004_2_0_0_102369/Drawing-different-roofs.htm

Posted via DevelopmentNow.com Groups
AddThis Social Bookmark Button