Topsolid online Help Index
Created : v6.6
IShape.GetFaceLoops(FaceId, LoopIds)
This method finds the ids of the loops of a face.
|
IN:
|
Long FaceId |
Id of the face you want the loops.
|
|
OUT:
|
Variant LoopIds (array) |
Array of the ids of the loops (array of long). |
A face is made of one external loop, and zero or more internal loops, defining holes.
Dim BodyIds As Variant
Dim BodyCount As Long
Dim BodyId As Long
Dim ShellIds As Variant
Dim ShellCount As Long
Dim ShellId As Long
Dim FaceIds As Variant
Dim FaceCount As Long
Dim FaceId As Long
Dim LoopIds As Variant
Dim LoopCount As Long
Dim LoopId As Long
Dim i As Integer
Dim j As Integer
Dim k As Integer
Dim l As Integer
...
TopShape.GetBodies BodyIds
BodyCount = UBound(BodyIds, 1)
For i = 0 To BodyCount
BodyId = BodyIds(i)
TopShape.GetBodyShells BodyId, ShellIds
ShellCount = UBound(ShellIds, 1)
For j = 0 To ShellCount
ShellId = ShellIds(j)
TopShape.GetShellFaces ShellId, FaceIds
FaceCount = UBound(FaceIds, 1)
For k = 0 Top FaceCount
FaceId = FaceIds(k)
TopShape.GetFaceLoops FaceId, LoopIds
LoopCount = UBound(LoopIds, 1)
For l = 0 To LoopCount
LoopId = LoopIds(i)
...
Next l
Next k
Next j
Next i
Topsolid online Help Index