 | 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
SyntaxISimObject AddRegularPolygon(
string name,
string center,
string vertex,
int numberOfSides
)
Function AddRegularPolygon (
name As String,
center As String,
vertex As String,
numberOfSides As Integer
) As ISimObject
Dim instance As IObjects
Dim name As String
Dim center As String
Dim vertex As String
Dim numberOfSides As Integer
Dim returnValue As ISimObject
returnValue = instance.AddRegularPolygon(name,
center, vertex, 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:
ISimObjectReference to the polygon.
See Also