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 | ||
metapost [2019/06/02 23:42] – [Symbol Sizing and Positioning] add more examples brucemutton | metapost [2019/06/04 00:02] – [Magnetic effects] tarquinwj | ||
---|---|---|---|
Line 171: | Line 171: | ||
{{: | {{: | ||
+ | And one last example, using '' | ||
+ | |||
+ | {{: | ||
Bruce | Bruce | ||
Line 363: | Line 366: | ||
text en "point u: | text en "point u: | ||
- | | + | |
+ | ===Magnetic effects=== | ||
+ | |||
+ | Certain rocks can cause a compass to give the wrong reading. This icon can be used to show areas where this happens (ie. where the survey may be unreliable as a result); a spinning compass: | ||
+ | |||
+ | < | ||
+ | code metapost | ||
+ | % a spinning compass | ||
+ | def p_u_magnetism (expr P,R,S,A)= | ||
+ | scale: | ||
+ | halfline: | ||
+ | pointheight: | ||
+ | pointwidth: | ||
+ | U: | ||
+ | T:=identity aligned A rotated (R-20) scaled S shifted P; | ||
+ | % a circle | ||
+ | thdraw fullcircle scaled 2scale withpen PenC withcolor black; | ||
+ | % filled triangle | ||
+ | thfill (0, | ||
+ | % black triangle outline | ||
+ | thdraw (0, | ||
+ | thdraw (0, | ||
+ | % spin arcs, a full circle is path 0-8, anticlockwise, | ||
+ | thdraw subpath (2.4,3.5) of fullcircle scaled 1.5scale withpen PenC withcolor black; | ||
+ | thdraw subpath (6.4,7.5) of fullcircle scaled 1.5scale withpen PenC withcolor black; | ||
+ | enddef; | ||
+ | initsymbol(" | ||
+ | endcode | ||
+ | </ | ||
+ | |||
+ | {{ :: | ||
+ | |||
+ | Select this as point type " | ||
+ | |||
+ | text en "point u: | ||
====Line Symbols==== | ====Line Symbols==== | ||
===View whole centerline for underground=== | ===View whole centerline for underground=== |