Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
tips [2019/10/31 20:50] – [Joining scraps together] clarify brucemutton | tips [2019/12/14 01:44] – [Joining scraps together] brucemutton | ||
---|---|---|---|
Line 184: | Line 184: | ||
One of Therion' | One of Therion' | ||
- | Most maps contain many scraps, and if they don't happen to appear perfectly joined by coincidence, | + | Most maps contain many scraps, and if they don't happen to appear perfectly joined by coincidence, |
- | Join commands | + | '' |
+ | |||
+ | **Do not use** the **join** command if your adjacent scraps do not have any lines that need to be joined. | ||
+ | |||
+ | **How to join scraps** | ||
+ | |||
+ | There are three ways to join scraps, | ||
+ | * fully automatically in *.th2 file, | ||
+ | * semi-automatically scrap by scrap, and | ||
+ | * manually line or point by point (if you must specify exactly which lines and points join). | ||
+ | |||
+ | For any particular pair of lines or points to be joined, | ||
+ | |||
+ | Join commands can be put directly into a survey definition, but not usually inside scrap or map definitions. | ||
**Fully automatic in *.th2 file** | **Fully automatic in *.th2 file** | ||
- | If you draw two or more scraps adjacent to each other in your drawing *.th2 file, and make sure the adjacent line wall ends snap to each other, then Therion will automatically morph them, if necessary, to create a perfect join. A morph might be necessary, if for example survey closure or other drawing distortions might tend to separate the scraps you have drawn as touching. | + | If you draw two or more scraps adjacent to each other in your drawing *.th2 file, and make sure the adjacent line wall ends snap to each other, then Therion will automatically morph them, if necessary, to create a perfect join. A morph might be necessary, if for example survey closure or other drawing distortions might tend to separate the scraps you have drawn as touching.\\ |
+ | This is really just an automatic implementation of the ' | ||
**Semi-automatic scrap by scrap** | **Semi-automatic scrap by scrap** | ||
Line 196: | Line 210: | ||
join scrap1 scrap2 [-count <number of passage (not line) joins for Therion to look for>] | join scrap1 scrap2 [-count <number of passage (not line) joins for Therion to look for>] | ||
- | The method can only join two scraps at a time. Note that it only works using passages defined by lines of " | + | The method can only join two scraps at a time. Note that it only works using passages defined by lines of " |
- | **Manual line by line** | + | **Manual line or point by point** |
- | From time to time the semi-automatic way does not work, or you want more refined control. | + | From time to time the semi-automatic way does not work, or you want more refined control. |
Line 233: | Line 247: | ||
For more detail see [[tbe: | For more detail see [[tbe: | ||
- | |||
====How to export correct extended elevation from zig-zag centerline==== | ====How to export correct extended elevation from zig-zag centerline==== | ||
Line 269: | Line 282: | ||
{{: | {{: | ||
See also [[extend|Extended Elevations]] page for comprehensive extended elevation guidance. | See also [[extend|Extended Elevations]] page for comprehensive extended elevation guidance. | ||
+ | |||
+ | ====Showing centreline for parts of a cave, and passage walls for others==== | ||
+ | |||
+ | Sometimes you might have full survey data and drawings for some parts of a cave, while other parts might have only centreline data. It is possible to combine these in the same PDF output, using a map consisting of other maps, and other surveys: | ||
+ | |||
+ | map allcave | ||
+ | subsection_map@subsection #the part with walls drawn | ||
+ | othersubsection_survey | ||
+ | endmap | ||
+ | |||
+ | Note that you now cannot use " | ||
+ | |||
+ | ====Making a subset of the cave take its altitude colours from a larger part of the cave==== | ||
+ | |||
+ | When rendering a map (map-endmap), | ||
+ | |||
+ | When you want to render a subset of that cave, such as a map showing only the entrance series of a cave, you might want to have the colours match the colours that were used in the overall map, so that the parts of the cave are recognisable. One way is to use an [[examples# | ||
+ | |||
+ | Another approach, which allows Therion to continue using automatic altitude colours, is to [[#Showing centreline for parts of a cave, and passage walls for others|include the highest and lowest surveys/ | ||
+ | |||
+ | map foo | ||
+ | subsection_map@subsection #the part you actually want to render | ||
+ | othersubsection_survey | ||
+ | anothersubsection_survey | ||
+ | endmap | ||
+ | |||
+ | Your layout would then include this: | ||
+ | |||
+ | color map-fg altitude | ||
+ | symbol-hide group centreline | ||
+ | |||
+ | By hiding the centreline, you cause the unwanted surveys not to render at all, so the output acts like they were never included (it is cropped accordingly to show only the rendered part). | ||
+ | |||
+ | ===Including some centreline data=== | ||
+ | |||
+ | If you need to include a centreline-only section of the cave in your rendering, then you cannot use " | ||
+ | |||
+ | scrap emptySP -projection plan -scale [1 10 1 10 0.0 0.0 10 10 m] | ||
+ | point 1 1 station -name 2 -visibility off | ||
+ | endscrap | ||
+ | |||
+ | Include that scrap instead of including the survey itself. You will then also need to [[metapost# | ||
+ | |||
+ | map othersubsection_one_station_map | ||
+ | emptySP | ||
+ | endmap | ||
+ | |||
+ | Then include that map with an offset, pushing it into the normally visible area of the survey (the same position as the passages that you want to show). This seems convoluted and takes a little time to set up perfectly, but it works. | ||
+ | |||
+ | map foo | ||
+ | subsection_map@subsection #the part you actually want to render | ||
+ | centreline_only_survey #the survey that contains only centreline data without any passage drawings | ||
+ | othersubsection_one_station_map@othersubsection [123 456 m] none #the survey containing the highest part of the cave | ||
+ | anothersubsection_one_station_map@anothersubsection [-23 12 m] none #the survey containing the lowest part of the cave | ||
+ | endmap | ||
=====Map Layout===== | =====Map Layout===== | ||