Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

dbConvertDonutToPolygon

dbConvertDonutToPolygon( 
d_donut 
x_nSides 
) 
=> d_polygon / nil 

Description

Converts a donut to a polygon.

Both the inner and outer circles describing the donut are converted into a single polygon. A single line segment connects to two sub-polygons corresponding to the concentric circles, forming one polygon.

Arguments

d_donut

The donut to be converted.

x_nSides

Number of sides created for each circle.

Value Returned

d_polygon

The dbObject of the polygon if the conversion is successful.

nil

The donut is not converted.

Examples

dbConvertDonutToPolygon(donutId 7)

Related Topics

Shape Conversion Functions


Return to top
 ⠀
X