Upper triangles of 2 DTMs
This function creates a new DTM by intersecting the triangles in the two source DTMs and saving the triangles from the first DTM which are above the second DTM and the triangles from the second DTM which are above the first DTM to the resultant DTM. The new DTM will follow the uppermost of the source DTMs away from the line of intersection ending at the boundary of this DTM.
To run this function: Choose Solids > Solids tools > File Intersection > Upper surface of two DTMs, or...
This function operates on objects that exist in files and saves the result to a new DTM file. In addition to the trisolations that are created from the intersection, the line of contact between the 2 3DMs may be saved to a specified string number if required.
If there is no actual region of intersection between the triangles of the two trisolations the function will give no result.
This function may be used, for example, to combine a DTM representing a proposed waste stockpile and a DTM representing a topological ground profile to produce a new DTM of the ground profile containing the stockpile.
Define the first DTM
Location, Id number, Object number, Trisolation number
The first DTM surface that is to be used must be defined by entering a suitable value for each of these fields to define the file, object and trisolation of interest.
Retain other trisolations
By responding with Y to this field any other trisolations that may exist in this file will be copied into the result file. By responding with N to this field, only the intersection results will be saved to the result file.
Define the second DTM
Location, Id number, Object number, Trisolation number
The second DTM surface that is to be used must be defined by entering a suitable value for each of these fields to define the file, object and trisolation of interest.
Define the result file to be created
Location, Id number, Object number
The result of the intersection will be saved to the file and object number defined by these inputs. Note that, depending on the nature of the intersecting objects and their geometric relationship with each other, numerous trisolations may be present in the resultant object.
Contact string
The line of contact, represented by a string of 1 or more segments may also be saved to the resultant string file that is created. Enter the string number that the line of contact is to be saved as. To prevent the contact line from being saved a string number of zero may be entered.
Complete the CREATE A NEW 3DM FROM THE UPPER TRIANGLES OF 2 DTMs form and choose Apply to perform the intersection.
Processing
The specified DTM files are loaded and the trisolations are intersected to produce the desired result. On completion of the intersection process the results are saved to the specified DTM and string files, including a string representing the line of contact if it was requested.
More detailed information on some of the processing methods of this function can be found in the section on Trisolation Intersections where a function that mimics the behaviour of this function, in a 3D Graphics environment, exists.
Result
The result of this operation is a single DTM stored as the first trisolation of the specified object number. The line of contact will also exist with the string number requested, provided it was not zero.
This function has proved to be robust in the vast majority of cases. However for certain data sets you may find that the function either exits with a warning message during processing or produces a result which is not closed as expected. These errors will have occurred because the function has had difficulty in creating new triangles along the line of intersection of the two trisolations to join them together smoothly. These problems arise due to one of the following situations:
- a vertex of a triangle in one of the trisolations is very close to a vertex of a triangle of the other trisolation;
- a vertex of a triangle in one of the trisolations is very close to an edge of a triangle of the other trisolation;
- an edge of a triangle in one of the trisolations is very close to an edge of a triangle of the other trisolation.
The recommended course of action is to display the 2 trisolations in the 3D Graphics module and examine the region (or regions) where the two trisolations intersect to check for these conditions and make appropriate adjustments to correct the problem. Note you should only need to move vertices in the region(s) where the two trisolations intersect. After making some changes, and saving them of course, attempt to perform the intersection again.
An alternative course of action is to use String Maths to shift all the points of one of the trisolations by a small amount, for example at the second or third decimal place, and attempt the intersection again.
Warning
There is no region of intersection between the two trisolations
No result will be created since an intersection cannot be found.
Unable to determine whether a section of the DTM is above or below the other DTM. Modify the DTMs to the area common to both of them
The two DTMs partially intersect. Surpac is unable to determine which DTM is above the other DTM for some of the triangles in the region of intersection. To overcome this issue, modify the DTMs so that more of the surface is intersected and run this function again.
Operation failed because the DTMs cover different areas. Trying again with clipping the DTMs to the area common to both of them
The line of intersection is not closed, and the DTMs cover different areas in the X-Y plane. Nevertheless, Surpac tries to determine which DTM has the upper triangles, and clips the DTM accordingly.
Errors
The first group of error messages are associated with sanity checks on the input data:
The neighbours of the first trisolation have not been set
The neighbours of the second trisolation have not been set
The first trisolation is not closed
The second trisolation is not closed
The direction of the first trisolation has not been set
The direction of the second trisolation has not been set
The neighbours and the directions for the two trisolations should be set using the Validate functions.
The next group of error messages are associated with errors which arise during the calculations:
The maximum number of consolidations has occurred
More than 50 CONSOLIDATION restarts have occurred. The recommended course of action is to shift the position of triangle vertices of one of the trisolations slightly.
The line of intersection is not closed
It is a prerequisite of the Trisolation intersection functions that the line of intersection between the two trisolations is closed. If this is not so then the intersection cannot be performed.
Fatal retriangulation error
Fatal error in calculations module
The recommended course of action is to shift the position of triangle vertices of one of the trisolations slightly. This process was described in detail above.
Extent of data is too large to give accurate results with current settings
The spread of the data is too large to give accurate results with the current settings of the sensitivity parameters in the CONSOLIDATION module. To comply with the current settings (i.e. the minimum intersection segment length of 0.001 units), the spread of the data must not exceed 100000 units.
Note:If either of the input trisolations has validated=false, then the function will exit with an error message. If either of the input trisolations has not had the validated flag set yet then the WARNING: 3DM NOT YET FORMALLY VALIDATED form will be displayed.
Nothing was output by the function. Ensure the specified surfaces intersect and try again
The two DTMs do not intersect, so the function cannot proceed.