Sorry for the long post!)
I need help with creating GENIO files of triangulations from external sources.
I receive triangulation data from surveyors in a text format which I can interpret understand the contents of their files).
My problem lies in transferring this information into a GENIO file.
The MX manual states the following about the 33 dimensions of a triangle:
Triangulations have 33 dimensions, which are listed below:
1. Adjoining triangle on side 1
2. Adjoining triangle on side 2
3. Adjoining triangle on side 3
4. String link identifier on side 1
5. String link identifier on side 2
6. String link identifier on side 3
7. Contour level indicator
8. Contour level indicator
9. Contour level indicator
10. String label on side 1
11. String label on side 2
12. String label on side 3
13. Group code (not output)
14. Colour
15. Material
16. (Spare)
17. X coordinate for vertex 1
18. Y coordinate for vertex 1
19. Z coordinate for vertex 1
20. X coordinate for vertex 2
21. Y coordinate for vertex 2
22. Z coordinate for vertex 2
23. X coordinate for vertex 3
24. Y coordinate for vertex 3
25. Z coordinate for vertex 3
26. Tangent vector component for vertex 1 in X direction
27. Tangent vector component for vertex 1 in Y direction
28. Tangent vector component for vertex 2 in X direction
29. Tangent vector component for vertex 2 in Y direction
30. Tangent vector component for vertex 3 in X direction
31. Tangent vector component for vertex 3 in Y direction
32. Triangle volume in cut
33. Triangle volume in fill
All of this is clear except the definition of items 4-6 and 10-12
If one exports an existing triangulation, these fields are populated, but I cannot find any information about how to create them (or how MX extracts it from the TRIA model).
eg from the examples in the manual (data created using minor option 089):
(ignore the format, due to cut-n-paste)
Example 1
The following shows triangulation input data in standard format.
◊ Only input data for three triangles is shown.
GENIO,ROAD PRELIM
001FORMAT(9I8/6A4,I8/5(3D23.17/),2D23.17)
090,TRI1,TRIN,,760
364 229 224 -250 19 96 0 0 0
MASA 0
.17871761097488300D+04 .14482652936807690D+04 .44736569606627604D+02
.17901588590947592D+04 .14387204937174718D+04 .44806760184037188D+02
.17838354297616759D+04 .14472213314096937D+04 .44649069606627606D+02
.00000000000000000D+00 .00000000000000000D+00 .00000000000000000D+00
.00000000000000000D+00 .00000000000000000D+00 .00000000000000000D+00
.00000000000000000D+00 .00000000000000000D+00
396 259 261 -267 36 113 0 0 0
MASA 0
.17365170952353180D+04 .15999946125209322D+04 .43613520368074369D+02
.17401298459926420D+04 .15906700716989349D+04 .43683710945483945D+02
.17332604531216550D+04 .15987123168672251D+04 .43526020368074370D+02
.00000000000000000D+00 .00000000000000000D+00 .00000000000000000D+00
.00000000000000000D+00 .00000000000000000D+00 .00000000000000000D+00
.00000000000000000D+00 .00000000000000000D+00
636 631 640 0 -395 395 0 0 0
HRIG 0
.23470697179517028D+04 .23826098923373429D+04-.99989999999999998D+03
.18232077231842673D+04 .13547560811226515D+04-.99989999999999998D+03
.18202249738383377D+04 .13643008810859485D+04-.99989999999999998D+03
.00000000000000000D+00 .00000000000000000D+00 .00000000000000000D+00
.00000000000000000D+00 .00000000000000000D+00 .00000000000000000D+00
.00000000000000000D+00 .00000000000000000D+00
23 197 14 2 0 78 0 0 0
etc
(I highlighted the fields which baffle me)
If the output from a 089 option is input into MX it works fine, proving that the data is sound.
I can however not figure out how to create the fields 4-6 and 1-12, which are obviously required.
(I tried setting these to 0, which created triangles but the 'intelligence' is obviously wrong/missing, because I could not contour the resultant TRIA model, nor get sensible answers when doing a surface check by means of Flow Arrows).
Is there such a thing as a comprehensive, clear manual re the creation of GENIO files, specifically for triangulation?
Thanks!