Description
Creates faces connecting vertices in a specified shell with satisfying specified parameters, and returns an RFErrorCode value indicating whether an error occurs.
Syntax
Function RFPointTools.Triangulate2D(shellID As RFEntityID, direction As RFTriangulateDirection, length As Double, area As Double, ratio As Double, angle As Double) As RFErrorCode
The Triangulate2D syntax has these parts:
| Part | Description |
|---|---|
| shellID | [IN] RFEntityID Required. Shell's RFEntityID to triangulate. |
| direction | [IN] RFTriangulateDirection Required. Triangulation direction by which vertices are projected. |
| length | [IN] Double Required. Edge length criterion. If a created face has an edge whose length is greater than this value, the face is not added to the shell. |
| area | [IN] Double Required. Face area criterion. If the area of a created face is greater than this value, the face is not added to the shell. |
| ratio | [IN] Double Required. Max-min edge length criterion. If the longest edge/the shortest edge ratio of a created face is greater than this value, the face is not added to the shell. |
| angle | [IN] Double Required. Angle criterion. If the angle between the projection direction and the normal vector of a created face is greater than this value, the face is not added to the shell. |
Remarks