therion-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Therion] Flowstone problems


From: Stacho Mudrak
Subject: Re: [Therion] Flowstone problems
Date: Tue, 16 Jan 2007 10:54:37 +0100
User-agent: Internet Messaging Program (IMP) H3 (4.1) / FreeBSD-4.10

I am sorry, but I am not sure whether I understand your questions  
properly. Could you please send me two images for each of your  
problems - to be sure we understand correctly:

First: how does therion renders area flowstone in the water
Second: how you would like it to be rendered

But if I understand your questions correctly, you need to redefine  
flowstone line symbol to
- clean the area surrounded by line flowstone, if the line is closed  
(same case as rock-border)
- clean the area below small arcs

If you will use following metapost code in your layout, it should at  
least partially help you.

code metapost
def l_flowstone (expr P) =
   if cycle P: thclean P fi;
   T:=identity;
   cas := 0;
   dlzka := arclength P;
   mojkrok:=adjust_step(dlzka, .7u);
   pickup PenC;
   t1:=0;
   forever:
     t2 := arctime (cas + mojkrok) of P;
     thclean (point t1 of P){dir (angle(thdir(P,t1)) + 60)} ..
            {dir (angle(thdir(P,t2)) - 60)}(point t2 of P) -- cycle;
     thdraw (point t1 of P){dir (angle(thdir(P,t1)) + 60)} ..
            {dir (angle(thdir(P,t2)) - 60)}(point t2 of P);
     cas := cas + mojkrok;
     exitif cas > dlzka + (mojkrok / 3); % for rounding errors
     t1:=t2;
   endfor;
enddef;
endcode

HTH, S.

Quoting Joke Vansweevelt <address@hidden>:

> I'm working on a topo of a water-cave and I have two questions.
>
> - How can I stop a flowstone-feature to be filled with water?
> (In the water, defined by "area-water", I sometimes have features that I
> would like to stay clear of the water-filling-stripes. If I try to include
> the borders of this feature as borderlines of my "area-water", usually my
> whole image gets distorted (not-water areas suddenly become partly filled
> with water-filling-stripes etc.). It doesn't work either by defining these
> features as an area within the area-water (error). Objects defined by
> rock-border don't have to be specified as area border. Rocks are
> automatically not filled with water-filling-stripes. However, in the case of
> flowstone features, I would like to be able to define whether they should or
> should not be filled with water-filling-stripes. In case it isn't possible
> so far, a solution could maybe be to define flowstone that doesn't need to
> be filled with water as "line-rock-subtype flowstone"?!?)
>
> - How can I get the borders of "line-flowstone" in my X-Therion drawing to
> match the borders of my flowstone-feature in the produced pdf-file?
> (When some of my area borders are defined as "line-flowstone", in the
> produced pdf-file, the water tends to invade my flowstone (as far as the
> borders of the "line-flowstone" that I set within X-Therion). The problem
> here is that the produced drawing of the flowstone lines is larger than the
> borders one sets in X-Therion (the scale that I work with for the pdf-file
> is 1 1000).
>
> Regards,
>
> Joke



_______________________________________________
Therion mailing list
address@hidden
http://www.speleo.sk/mailman/listinfo/therion




reply via email to

[Prev in Thread] Current Thread [Next in Thread]