Hello, here are the results of our Therion meeting yesterday; An idea would be to add the factor for density/size of symbols in the source code and adjust these variables in the map editor by a -density {} command in the mapeditor\area\options. Also a -diameter {} command for block points would allow to change block size of each point individually. #POINT BLOCK +size adjust (symbolsize) code metapost def p_blocks_UIS (expr pos,theta,sc,al)= symbolsize:=1.0u; %Factor*u; Factor=size of the blocks U:=(.5u,.5u); T:=identity aligned al rotated theta scaled sc shifted pos; pickup PenC; thdraw (.0symbolsize,.0symbolsize)--(1.0symbolsize,-.5symbolsize)--(0.0symbolsize,-1.5symbolsize)--(-1.0symbolsize,-1.0symbolsize)--cycle; thdraw (.5symbolsize,-.25symbolsize)--(1.0symbolsize,.5symbolsize)--(0.0symbolsize,1.5symbolsize)--(-0.5symbolsize,.5symbolsize); thdraw (.0symbolsize,.0symbolsize)--(.0symbolsize,.5symbolsize)--(-1.5symbolsize,.5symbolsize)--(-1.5symbolsize,-0.5symbolsize)--(-0.5symbolsize,-0.5symbolsize); enddef; endcode #AREA BLOCK +density adjust (distance) code metapost def a_blocks (expr p) = distance:=1; T:=identity; pickup PenC; path q, qq; q = bbox p; picture tmp_pic; uu := max(u, (xpart urcorner q - xpart llcorner q)/100, (ypart urcorner q - ypart llcorner q)/100); tmp_pic := image( for i = xpart llcorner q step distance*uu until xpart urcorner q: for j = ypart llcorner q step distance*uu until ypart urcorner q: qq := punked (((-.5uu,-.5uu)--(.5uu,-.5uu)--(.5uu,.5uu)--(-.5uu,.5uu)--cycle) randomized (uu/2)) rotated uniformdeviate(360) shifted ((i,j) randomized 1.0uu); if xpart (p intersectiontimes qq) < 0: thclean qq; thdraw qq; fi; endfor; endfor; ); clip tmp_pic to p; draw tmp_pic; enddef; endcode greetings, Stefan
On 1/14/07, Stefan Oswald <stefan_oswald@gmx.at> wrote:
here are the results of our Therion meeting yesterday; An idea would be to add the factor for density/size of symbols in the source code and adjust these variables in the map editor by a -density {} command in the mapeditor\area\options.
We also considered a similar idea. There is indeed an experimental implementation of area blocks macro (a_blocks_SKBB_ in the file thArea.mp) which allows not only density and size setting, but density and size may change along specified direction (there are 5 arguments: direction, starting size and density, ending size and density). It is perhaps too complicated and simple density/size settings (for all randomle generated areas) would be sufficient. What do others think?
Also a -diameter {} command for block points would allow to change block size of each point individually.
We intented point symbols to be just symbolic representation of passage fills. If there is a rock which is important for orientation, it should be drawn precisely as line brock-border, otherwise it is enough to give information that some blocks are there using point or area blocks symbols. (In addition point symbols can be scaled using -scale option). Cheers, Martin
On 2007-01-16 17:33 +0100, Martin Budaj wrote:
On 1/14/07, Stefan Oswald <stefan_oswald@gmx.at> wrote:
here are the results of our Therion meeting yesterday; An idea would be to add the factor for density/size of symbols in the source code and adjust these variables in the map editor by a -density {} command in the mapeditor\area\options.
We also considered a similar idea. There is indeed an experimental implementation of area blocks macro (a_blocks_SKBB_ in the file thArea.mp) which allows not only density and size setting, but density and size may change along specified direction (there are 5 arguments: direction, starting size and density, ending size and density).
It is perhaps too complicated and simple density/size settings (for all randomle generated areas) would be sufficient. What do others think?
Well, I'd like to see what it looks like, but I think being able to have density trailing off over an area is very useful, especially for rocks. To get the same effect with constant density would need several areas of different density - that is more work. I should try this out and see what it looks like. Wookey -- Aleph One Ltd, Bottisham, CAMBRIDGE, CB5 9BA, UK Tel +44 (0) 1223 811679 work: http://www.aleph1.co.uk/ play: http://wookware.org/ -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
participants (3)
-
Martin Budaj -
Stefan Oswald -
Wookey