﻿GetTriangles Method Gets the triangles of the conforming Delaunay triangulation.

Namespace:  ceometric.ComputationalGeometry
Assembly:  ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.4.0.0 (2.4.0.0)

# Syntax

C#
`public List<Triangle> GetTriangles()`
Visual Basic (Declaration)
`Public Function GetTriangles As List(Of Triangle)`
Visual C++
```public:
List<Triangle^>^ GetTriangles()```

#### Return Value

The triangles of the triangulation as a generic list of Triangle. All constraints will be respected. Triangles violating boundaries will be eliminated.

# Remarks

This method converts the triangles of the internal data structure into triangles of type Triangle. It also eliminates triangles that violate the boundaries. This takes O(n*h) time, which can be a considerable while for very large point sets with many boundaries, so do not use this method excessively.

The triangles of the Delaunay triangulation were internally generated using exact arithmetic while the Triangle object uses floating point arithmetic. Due to this fact, a conversion may fail for extremely small triangles or for triangles with extremely small minimum angle. In such case, the respective triangle is not returned.

Set the AbsoluteEpsilon variable to 0 to get as many triangles as possible.

# Exceptions

ExceptionCondition
System..::.InvalidOperationExceptionA valid triangulation does not exist. Compute the triangulation before.
{"ft_lang_label":"__label__en","ft_lang_prob":0.80084234,"math_prob":0.8740201,"size":1413,"snap":"2023-14-2023-23","text_gpt3_token_len":293,"char_repetition_ratio":0.17955998,"word_repetition_ratio":0.0,"special_character_ratio":0.18259023,"punctuation_ratio":0.15254237,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99002874,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-03-24T07:18:55Z\",\"WARC-Record-ID\":\"<urn:uuid:dcf025f7-c055-450a-b9fa-83231b977f41>\",\"Content-Length\":\"13677\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:86b98a1f-a43b-46e8-b4d3-2dddeb673993>\",\"WARC-Concurrent-To\":\"<urn:uuid:eea4f26f-0489-4c72-a1d2-8e78902059f2>\",\"WARC-IP-Address\":\"188.94.254.102\",\"WARC-Target-URI\":\"http://www.ceometric.com/fileadmin/media/Help/html/M_ceometric_ComputationalGeometry_ConformingDelaunayTriangulation2d_GetTriangles.htm\",\"WARC-Payload-Digest\":\"sha1:CV3LB54PEETMJX23KHNCFFQSJ545Q7PG\",\"WARC-Block-Digest\":\"sha1:JSHPR4R5GR7TXTAZI364QK3JSF5OGLG7\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-14/CC-MAIN-2023-14_segments_1679296945248.28_warc_CC-MAIN-20230324051147-20230324081147-00700.warc.gz\"}"}