Hi all I am trying to do a flowstone symbol for the ASF. In thconfig I have this: layout mypage scale 1 200 base-scale 1 100 symbol-set ASF code metapost beginpattern(pattern_flowstone_ASF); pickup PenC; draw (-.5u,.5u){dir -70} .. {dir 70}(.5u,.5u); patternxstep(1.0u); patternystep(0.5u); endpattern; def a_flowstone_ASF (expr Path) = T:=identity; thclean Path; thfill Path withpattern pattern_flowstone_ASF; enddef; endcode symbol-assign area flowstone ASF endlayout Im getting this errori when I run therion: therion: error -- thconfig [76] -- thconfig [76] -- unknown symbol specification -- area flowstone The pattern Im wanting is based on this draw (-.5u,.5u){dir -70} .. {dir 70}(.5u,.5u); which looks like this \__/ and what I would like to have is this: \__/\__/\__/\__/\__/\__/\__/\__/ \__/\__/\__/\__/\__/\__/\__/\__/ \__/\__/\__/\__/\__/\__/\__/\__/ \__/\__/\__/\__/\__/\__/\__/\__/ I see in the thArea.mp that some patterns are done using the mpattern package and use a beginpattern (e.g. pattern_water_UIS) while others seem to just use a for loop (e.g. a_sand_UIS) and dont use the mpattern package. Should one use the mpattern macro over more complex mpost code if its suitable? Mike -- Mike Lake Caver, Linux enthusiast and interested in anything technical.
Hi Earlier I was wrote that I was tring to get a flowstone symbol. I have one working but it's not quite what I want and its not under the correct name. Its under clay instead of flowstone. I have this in thconfig and I based it on the a_clay_SKBB code: layout mypage symbol-set ASF code metapost def a_clay_ASF (expr p) = T:=identity; pickup PenC; path q, qq; q = bbox p; picture tmp_pic; tmp_pic := image( for i = xpart llcorner q step 0.7u until xpart urcorner q: for j = ypart llcorner q step 0.3u until ypart urcorner q: qq := ((-.25u,0){dir -70} .. (0.25u,0){dir 70}) shifted ((i,j) ); thdraw qq; endfor; endfor; ); clip tmp_pic to p; draw tmp_pic; enddef; initsymbol("a_clay_ASF"); endcode In my cave map th2 I have: area clay l13-304--54 l9-319--65 l14-306--77 l10-296--65 endarea If I replace all instances of the word clay with flowstone in thconfig .th2 file so I have def a_flowstone_ASF (expr p) and initsymbol("a_flowstone_ASF"); and in .th2 file "area flowstone" Get the error: therion: error -- maps/rectangle.th2 [68] -- unknown area type -- flowstone_ASF Oi Sun 25 Feb 2007, Mike Lake wrote:
Hi all
I am trying to do a flowstone symbol for the ASF. In thconfig I have this:
layout mypage scale 1 200 base-scale 1 100 symbol-set ASF
code metapost
beginpattern(pattern_flowstone_ASF); pickup PenC; draw (-.5u,.5u){dir -70} .. {dir 70}(.5u,.5u); patternxstep(1.0u); patternystep(0.5u); endpattern;
def a_flowstone_ASF (expr Path) = T:=identity; thclean Path; thfill Path withpattern pattern_flowstone_ASF; enddef;
endcode symbol-assign area flowstone ASF
endlayout
Im getting this errori when I run therion: therion: error -- thconfig [76] -- thconfig [76] -- unknown symbol specification -- area flowstone
The pattern Im wanting is based on this draw (-.5u,.5u){dir -70} .. {dir 70}(.5u,.5u); which looks like this \__/
and what I would like to have is this:
\__/\__/\__/\__/\__/\__/\__/\__/ \__/\__/\__/\__/\__/\__/\__/\__/ \__/\__/\__/\__/\__/\__/\__/\__/ \__/\__/\__/\__/\__/\__/\__/\__/
I see in the thArea.mp that some patterns are done using the mpattern package and use a beginpattern (e.g. pattern_water_UIS) while others seem to just use a for loop (e.g. a_sand_UIS) and dont use the mpattern package. Should one use the mpattern macro over more complex mpost code if its suitable?
Mike
-- Mike Lake Caver, Linux enthusiast and interested in anything technical. _______________________________________________ Therion mailing list Therion@speleo.sk http://www.speleo.sk/mailman/listinfo/therion
-- -- Mike Lake Caver, Linux enthusiast and interested in anything technical.
I am sorry, "area flowstone" symbol is not yet supported, it is only in the TODO list :( This is main reason of your problems. OK, I will try to add it ASAP - it should be relatively easy. But I expect, that with area flowstone, there is definitely some orientation needed. Am I correct? This will take some time - there is some GUI in xtherion needed and we had no oriented area until now. Regards, S. Mike Lake wrote:
Hi all
I am trying to do a flowstone symbol for the ASF. In thconfig I have this:
layout mypage scale 1 200 base-scale 1 100 symbol-set ASF
code metapost
beginpattern(pattern_flowstone_ASF); pickup PenC; draw (-.5u,.5u){dir -70} .. {dir 70}(.5u,.5u); patternxstep(1.0u); patternystep(0.5u); endpattern;
def a_flowstone_ASF (expr Path) = T:=identity; thclean Path; thfill Path withpattern pattern_flowstone_ASF; enddef;
endcode symbol-assign area flowstone ASF
endlayout
Im getting this errori when I run therion: therion: error -- thconfig [76] -- thconfig [76] -- unknown symbol specification -- area flowstone
The pattern Im wanting is based on this draw (-.5u,.5u){dir -70} .. {dir 70}(.5u,.5u); which looks like this \__/
and what I would like to have is this:
\__/\__/\__/\__/\__/\__/\__/\__/ \__/\__/\__/\__/\__/\__/\__/\__/ \__/\__/\__/\__/\__/\__/\__/\__/ \__/\__/\__/\__/\__/\__/\__/\__/
I see in the thArea.mp that some patterns are done using the mpattern package and use a beginpattern (e.g. pattern_water_UIS) while others seem to just use a for loop (e.g. a_sand_UIS) and dont use the mpattern package. Should one use the mpattern macro over more complex mpost code if its suitable?
Mike
On Sun 25 Feb 2007, Stacho Mudrak wrote:
I am sorry, "area flowstone" symbol is not yet supported, it is only in the TODO list :( This is main reason of your problems. OK, I will try to add it ASAP - it should be relatively easy.
I thought that I could add metapost macros and they would not need compiling into therion to work. Just like the many examples in the Wiki. So what your saying is that the tet 'clay' works because that key work is compiled in but 'flowstone' is not compiled in so a metapost macro of that name won't work. Is that right?
But I expect, that with area flowstone, there is definitely some orientation needed. Am I correct? This will take some time - there is some GUI in xtherion needed and we had no oriented area until now.
Yes orientaion would be good but just flowstone for now with no orientation would be better than nothing. Thanks.
Mike Lake wrote:
Hi all
I am trying to do a flowstone symbol for the ASF. In thconfig I have this:
layout mypage scale 1 200 base-scale 1 100 symbol-set ASF
code metapost
beginpattern(pattern_flowstone_ASF); pickup PenC; draw (-.5u,.5u){dir -70} .. {dir 70}(.5u,.5u); patternxstep(1.0u); patternystep(0.5u); endpattern;
def a_flowstone_ASF (expr Path) = T:=identity; thclean Path; thfill Path withpattern pattern_flowstone_ASF; enddef;
endcode symbol-assign area flowstone ASF
endlayout
Im getting this errori when I run therion: therion: error -- thconfig [76] -- thconfig [76] -- unknown symbol specification -- area flowstone
The pattern Im wanting is based on this draw (-.5u,.5u){dir -70} .. {dir 70}(.5u,.5u); which looks like this \__/
and what I would like to have is this:
\__/\__/\__/\__/\__/\__/\__/\__/ \__/\__/\__/\__/\__/\__/\__/\__/ \__/\__/\__/\__/\__/\__/\__/\__/ \__/\__/\__/\__/\__/\__/\__/\__/
I see in the thArea.mp that some patterns are done using the mpattern package and use a beginpattern (e.g. pattern_water_UIS) while others seem to just use a for loop (e.g. a_sand_UIS) and dont use the mpattern package. Should one use the mpattern macro over more complex mpost code if its suitable?
Mike
_______________________________________________ Therion mailing list Therion@speleo.sk http://www.speleo.sk/mailman/listinfo/therion
-- -- Mike Lake Caver, Linux enthusiast and interested in anything technical.
On Tue 27 Feb 2007, Stacho Mudrak wrote:
Quoting Mike Lake <mikel@speleonics.com.au>:
Yes orientaion would be good but just flowstone for now with no orientation would be better than nothing.
In the latest snapshot, area flowstone symbol is now supported.
Thanks ! I have recompiled it and now I see flowstone is listed in xtherion area lists and I can create a flowstone fill. This will keep us going for a while now that we can use this. It means I can now also play around varying the mpost code to for the nicest looking flowstone. Much appreciated. Mike -- Mike Lake Caver, Linux enthusiast and interested in anything technical.
On 2007-02-27 22:45 +1100, Mike Lake wrote:
On Tue 27 Feb 2007, Stacho Mudrak wrote:
Quoting Mike Lake <mikel@speleonics.com.au>:
Yes orientaion would be good but just flowstone for now with no orientation would be better than nothing.
In the latest snapshot, area flowstone symbol is now supported.
Thanks !
I have recompiled it and now I see flowstone is listed in xtherion area lists and I can create a flowstone fill. This will keep us going for a while now that we can use this. It means I can now also play around varying the mpost code to for the nicest looking flowstone.
Mike - I have an interest in this too - mulu has large flowstone areas which are currently poorly (artistically) represented. I'd be happy to compare notes. 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.
Quoting Mike Lake <mikel@speleonics.com.au>:
while now that we can use this. It means I can now also play around varying the mpost code to for the nicest looking flowstone.
There are more symbols in therion, that need to look better. If you will do these changes in mpost code, we can add those symbols into standard distribution if you will agree. Regards, S.
On Sun 25 Feb 2007, Stacho Mudrak wrote:
I am sorry, "area flowstone" symbol is not yet supported, it is only in the TODO list :( This is main reason of your problems. OK, I will try to add it ASAP - it should be relatively easy.
Let me know if I understand this correctly. I see in the src that there is a file SYMBOLS.txt which is generated by the perl script mpost/genmpost.pl SYMBOLS.txt has in it the following: [Area symbols] bedrock: SKBB blocks: SKBB clay: SKBB debris: SKBB UIS dimensions: SKBB ice: SKBB pebbles: SKBB sand: UIS snow: SKBB sump: UIS water: UIS The above are compiled into the therion executable in some way so that therion knows about those area symbols. If I want to override one of the above area symbols with my own metapost code I can do that by including the metapost code in thconfig. But if the area symbol is not in the list above I can't just create metapost code for say "a_something_ASF" as therion will not know about it even if it's in thconfig. Is that right? PS. It does not worry me if there is no option in xtherion GUI for selecting say an area 'flowstone' if I have an a_flowstone_ASF, as I can select say clay for an area and then edit the th2 file file with vim and change clay to flowstone. -- Mike Lake Caver, Linux enthusiast and interested in anything technical.
The above are compiled into the therion executable in some way so that therion knows about those area symbols. If I want to override one of the above area symbols with my own metapost code I can do that by including the metapost code in thconfig.
Yes, you can override only existing symbols.
But if the area symbol is not in the list above I can't just create metapost code for say "a_something_ASF" as therion will not know about it even if it's in thconfig.
Is that right?
Well, symbol types/subtypes are in fact defined in thpoint/thline/tharea.h/.cxx files. In metapost files, there is only their visualization defined, therefore it does not help to define only new metapost symbols.
PS. It does not worry me if there is no option in xtherion GUI for selecting say an area 'flowstone' if I have an a_flowstone_ASF, as I can select say clay for an area and then edit the th2 file file with vim and change clay to flowstone.
Soon we would like to add some generic point/line/area symbols, that could be used in cases, when desired symbol does not exists in therion. Regards, S.
Stacho Mudrak wrote:
The above are compiled into the therion executable in some way so that therion knows about those area symbols. If I want to override one of the above area symbols with my own metapost code I can do that by including the metapost code in thconfig.
Yes, you can override only existing symbols.
But if the area symbol is not in the list above I can't just create metapost code for say "a_something_ASF" as therion will not know about it even if it's in thconfig.
Is that right?
Well, symbol types/subtypes are in fact defined in thpoint/thline/tharea.h/.cxx files. In metapost files, there is only their visualization defined, therefore it does not help to define only new metapost symbols.
Now I understand. Thank you.
Soon we would like to add some generic point/line/area symbols, that could be used in cases, when desired symbol does not exists in therion.
I'm learning about metapost and how to pull in survex data via a 3d file and my wife is drawing up the cave we are surveying with the xtherion map editor. There are quite a few ASF symbols that she needs. Mike -- Michael Lake Computational Research Support Unit Science Faculty, UTS Ph: 9514 2238
participants (5)
-
Michael Lake -
Mike Lake -
Stacho Mudrak -
Stacho Mudrak -
Wookey