Description
Decimates a specified shell with satisfying specified parameters, and returns an RFErrorCode value indicating whether an error occurs.
Syntax
Function RFMeshTools.DecimateShell(shellID As RFEntityID, faceCount As Long, ratio As Double, tolerance As Double, bNoVertexMove As Boolean, bPreserveBoundary As Boolean, bPreserveQuality As Boolean) As RFErrorCode
The DecimateShell syntax has these parts:
| Part | Description |
|---|---|
| shellID | [IN] RFEntityID Required. Shell's RFEntityID to decimate. |
| faceCount | [IN] Long Required. Demanding number of faces after the decimation. |
| ratio | [IN] Double Required. Demanding decimation ratio. |
| tolerance | [IN] Double Required. Demanding distance tolerance. |
| bNoVertexMove | [IN] Boolean Required. It determines whether all the original vertex coordinates are not moved. |
| bPreserveBoundary | [IN] Boolean Required. It determines whether all the boundary vertices coordinates are not moved. |
| bPreserveQuality | [IN] Boolean Required. It determines whether mesh quality is preserved as much as possible. |
Remarks