BrepLoopList

References
Provides access to all the Loops in a Brep object.

Properties

Count

#Since v5.0
public int Count { get; }
Gets the number of brep loops.

Indexers

this[]

#
public BrepLoop this[int index] { get; }
Gets the BrepLoop at the given index. The index must be valid or an IndexOutOfRangeException will be thrown.
index (int)Index of BrepLoop to access.
The BrepLoop at [index].
IndexOutOfRangeExceptionThrown when the index is invalid.

Methods

Add

#Since v5.4
public BrepLoop Add(BrepLoopType loopType, BrepFace face)
Create a new boundary loop on a face. After you get this BrepLoop, you still need to create the vertices, edges, and trims that define the loop.
loopType (BrepLoopType)
face (BrepFace)
New loop that needs to be filled in

Add

#Since v5.4
public BrepLoop Add(BrepLoopType loopType)
Create a new empty boundary loop. The new loop will not be part of a face and will not include any trim curves.
loopType (BrepLoopType)

AddOuterLoop

#Since v5.4
public BrepLoop AddOuterLoop(int faceIndex)
Create a new outer boundary loop that runs along the sides of the face's surface. All the necessary trims, edges, and vertices are created and added to the brep.
faceIndex (int)index of face that needs an outer boundary that runs along the sides of its surface.
New outer boundary loop that is complete.

AddPlanarFaceLoop

#Since v5.4
public BrepLoop AddPlanarFaceLoop(int faceIndex, BrepLoopType loopType, IEnumerable<Curve> boundaryCurves)
Add a planar trimming loop to a planar face
faceIndex (int)index of planar face. The underlying surface must be a PlaneSurface
loopType (BrepLoopType)type of loop to add. If loopType is Unknown, then the loop direction is tested and the new loops type will be set to Outer or Inner. If the loopType is Outer, then the direction of the new loop is tested and flipped if it is clockwise. If the loopType is Inner, then the direction of the new loop is tested and flipped if it is counter-clockwise.
boundaryCurves (IEnumerable<Curve>)list of 3d curves that form a simple (no self intersections) closed curve. These curves define the 3d edge geometry and should be near the planar surface.
new loop if successful

GetEnumerator

#Since v5.0
public IEnumerator<BrepLoop> GetEnumerator()
Gets an enumerator that visits all edges.
The enumerator.
Explicit

IEnumerable.GetEnumerator

#Since v5.0
IEnumerator IEnumerable.GetEnumerator()
Gets the same enumerator as GetEnumerator().
The enumerator.