Click or drag to resize

IObjectsAddRegularPolygon Method

Adds a regular polygon that is parallel to the active plane of the active coordinates system. A regular polygon is defined by its center, a vertex vertex and a numberOfSides. The polygon face name is "RegularPolygon".

Namespace:  EMInvent.InventSim.COMServer
Assembly:  InventSim (in InventSim.exe) Version: 5.1.12.6+develop
Syntax
ISimObject AddRegularPolygon(
	string name,
	string center,
	string vertex,
	int numberOfSides
)

Parameters

name
Type: SystemString
Name of the polygon.
center
Type: SystemString
Center of the polygon.
vertex
Type: SystemString
Vertex of the polygon.
numberOfSides
Type: SystemInt32
Number of sides.

Return Value

Type: ISimObject
Reference to the polygon.
See Also