Home / Modeling / CGaudi / Method / CreateWire1
CreateWire1 Method
Syntax
CreateWire1 (PointList() As CGaudiPoint) As CGaudiBody
[Python] CreateWire1_py(CGaudiPoint[] PointList)
Return Value
Returns newly created body if succeeded.Returns Nothing if failed.
[Python] Returns newly created body if succeeded.
Returns Nothing if failed.
Parameters
| PointList | Array of points. |
[Python]
| PointList | Array of vertices |
Notes
Creates the polygon with sequentially connected points specified by the parameter.Returns Nothing if the number of points is 1 or less, edges are crossing each other, or the same point is specified.
Example
Dim Femtet As New CFemtetDim Gaudi As CGaudi
Dim Body As CGaudiBody
Dim Point(2) As New CGaudiPoint
'Create a new project.
If Femtet.OpenNewProject() = False Then
Femtet.ShowLastError
End If
'Substitute Femtet.Gaudi for variable Gaudi.
Set Gaudi = Femtet.Gaudi
Point(0).X = 0
Point(0).Y = 0
Point(0).Z = 0
Point(1).X = 5
Point(1).Y = 5
Point(1).Z = 5
Point(2).X = 1
Point(2).Y = 1
Point(2).Z = 0
Set Body = Gaudi.CreateWire1(Point())


