🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #527

How to access Co-ordinates & other Qs?

#527
From: cpmcgann
Date: Tue, 25 Aug 1992 18:36
44 lines
2002 bytes
I am currently developing a modelling application using InterViews and 
Unidraw. I have succesfully constructed an idraw type interface using ibuild.
I now need to combine this interface  with my modelling application. A number
of basic questions have arisen:

	How do I access the co-ordinate information from the polygons,
	rectangles, ellipses which I have draw using the interface?
	(I need this information for processing by the application)
	
	I need to associate a material type (steel, graphite etc..)
	to each component. To do this must I derive new components 
	from the existing Unidraw polygons, rectangles etc.. ?

	The following is a more general graphics problem:

	The modelling application requires polygons and ellipses 
	which do not intersect. Thus once I obtain the coordinates 
	from the interface they must have a clipping operation to
	produce non intersecting components. Does such a clipping 
	algorithm exist? (I do not need to actually display the 
	result of the operation as it would look the same, but I
	need the result for the application). So for example a
	bolt can be created simply by drawing a polygon and the
	a circle concentrically. Unidraw sees this as two components
	a filled polygon and an ellipse. My application needs to
	see a polygon with a hole and an ellipse. This is a simple 
	example but the possibilities are complex. I would appreciate
	any pointers to a good graphics book which may deal with this
	topic.


Thanks in advance for any help.



Trinity College
Dublin
Ireland

--------------------------------------------------------------------------------


  
Technical Details
Message-ID: <1992Aug25.183626.8464@swift.cs.tcd.ie>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!ieunet!swift.cs.tcd.ie!cpmcgann

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!ieunet!swift.cs.tcd.ie!cpmcgann
From: cpmcgann@swift.cs.tcd.ie
Newsgroups: comp.windows.interviews
Subject: How to access Co-ordinates & other Qs?
Message-ID: <1992Aug25.183626.8464@swift.cs.tcd.ie>
Date: 25 Aug 92 18:36:25 GMT
Organization: Computer Science Department, Trinity College Dublin
Lines: 46