Smaller text size Reset text size Larger text size
skip navigation
NHDOT Home CAD/D Home MicroStation MX v8i Downloads
CAD/D Home > MX v8i > MX Triangulation (v8i)

MX Triangulation (v8i)

There are two methods for generating surface triangulations.  The most common method involves the use of an Input File.  The other method is Interactive.  Both are described on this page.

Input File Triangle Generation

The following sample input file is intended for generating a triangulation of a surveyed detail model:

MOSS

     COMPILED BY username, date

SUBS
SYSDEL,TRIANGLES.PRN
999
OUTPUT,TRIANGLES

DELETE,TRIANGLES
COMPRESSMODELFILE
CREATE,TRIANGLES

TRIANGLE,"ground model"
TRIANGLE,TRIANGLES
019,L B ,4=1
     019,EJB ,4=1
019,PMBX,4=1
019,BEB ,4=1
019,BDB ,4=1
019,PJCT,4=-1
019,PBDR,4=-1
019,PMAP,4=-1
019,PSGL,4=-1
019,PSTT,4=-1
019,PBMK,4=-1<
019,PRJM,4=-1
019,PMON,4=-1
019,PGRV,4=-1
019,PBOR,4=-1
019,PDHL,4=-1
019,PWEL,4=-1
019,PPST,4=-1
019,PCCT,4=-1
019,PPBX,4=-1
019,SP  ,4=-1
019,RR  ,4=-1
019,U   ,4=-1
019,PSSA,4=-1
019,PSDR,4=-1
019,DP  ,4=-1
019,PSUM,4=-1
019,PMH ,4=-1
019,PCBD,4=-1
019,PDID,4=-1
019,PHYD,4=-1
019,PWSO,4=-1
019,PWGT,4=-1
019,PSTP,4=-1
019,PIPN,4=-1
019,PCON,4=-1
019,PBND,4=-1
019,BG  ,4=-1
019,WD  ,4=-1
019,HW  ,4=-1
019,GA  ,4=-1
019,  B ,4=-1
019,PMDF,4=-1
019,PGAS,4=-1
019,PFTK,4=-1
019,FMV ,4=-1
019,PEVV,4=-1
019,PLIT,4=-1
019,PSIL,4=-1
019,JB  ,4=-1
019,PSLM,4=-1
019,PARK,4=-1
019,PTLM,4=-1
019,BP  ,4=-1
019,DS  ,4=-1
019,AE  ,4=-1
960,,,TX00
961,,TX00,TX00,10=1
999

OUTPUT
FINISH

If an output file already exists, MX will not automatically overwrite or replace it.  Therefore the beginning of this file contains commands to clear the old output file.  Major option Output creates a new output file and begins recording.

If a triangle model exists, then it is necessary to avoid appending model detail with itself.  Therefore Delete the model detail prior to new input (It never hurts to delete a model that is not there).  Since a potentially large model has just been deleted, take this opportunity to Compress the model file.  Then Create the triangle model to prepare for the following input.

After the Triangle major option records are the 019 masking minor options.  See String Masking for more details about masking.  This sample file contains most of the recommended strings to mask.  This list may vary from project to project.

The 960 minor option generates the initial triangulation.  The 961 minor option trims the triangulation to eliminate triangles that span outside valid string data.  Refer to the MX Command Language Reference manual (or the Moss Quick Reference Guide) for details about major and minor options.

Near the end of the file but before major option Finish, is major option Output.  With no file specification, this option will close the output file initiated at the beginning of this file.

Refer to MX Input Files for a greater explanation of input files.

Triangulation models created from input files are not assigned style and feature sets.  The appropriate model defaults for triangulation models is MfW Triangulation.pts/fns.  Refer to Style Sets for directions on assigning model defaults.


Interactive Triangle Generation

From the Analysis menu, select Triangle >> Triangulation from a String Model...

Triangulation Model Details tab

The Triangulation from a string Model panel has three tabs grouping the required data.

On the Model Details tab, supply the string Model to Triangulate.  The recommended mask table for surveyed detail models is the GroundTriangle.msk file.  Similar to the sample input file, this file contains most of the recommended strings to mask.  This list may vary from project to project.  The recommended mask table for design models is the Design Tria.msk file.  Once a mask file has been selected, the mask control box should say Apply Current Masking.  Refer to String Masking for a greater explanation of masking.

Next, supply the Model to Store Triangulation and the Triangulation String Name.  Refer to Model Names for MX for our standard model naming convention.  Ensure that the model default for the triangulation model is MfW Triangulation.pts/fns.  Refer to Style Sets for directions on assigning model defaults.

At the bottom of the Model Details tab is a Display Triangles check box, leave this box checked to display the generated triangles.

Triangulation Boundary Details tab

At the top of the Boundary Details tab is an Analysis within a Boundary check box.  Check this box if triangulation is to be limited to a bounded area.  Supply the Boundary Model and Boundary String as necessary.

Triangulation Trimming Details tab

At the top of the Trimming Details tab is a Trim check box.  Check this box to trim the triangulation.

There are three trimming options to choose from

  1. Trimming Method A (Shrink)  To trim all triangles at the edge of the triangulation whose subtended internal angle is greater than 90 degrees and the opposite edge is not a string link.  The most common trimming method.  Recommended for detail surveys.
  2. Trimming Method B (All)  To trim all triangles at the edge of the triangulation whose subtended internal angle is greater than 90 degrees and all three triangle edges are not string links.  Rarely effective.
  3. Trim to a Boundary  To trim all triangles at the edge of the triangulation whose centroid lies outside a specified boundary.  This option used when Trimming Method A (Shrink) proves to be inadequate.

Select OK to generate the triangulation.


Related Pages

The Surface Analysis panel is the entry to 10 surface analysis options:

  1. Contours
  2. Elevation Bands
  3. Slope Bands
  4. Aspect Bands
  5. Flat Spots
  6. Steep Slopes
  7. Flow Arrows
  8. Simple Profile
  9. Display Triangulation  (Refer to MX Triangulation for triangle model generation)
  10. Catchment Areas




New Hampshire Department of Transportation
PO Box 483 | 7 Hazen Drive | Concord, NH | 03302-0483
Tel: 603.271.3734 | Fax: 603.271.3914

copyright 2014. State of New Hampshire