BrepTrimList

References
Provides access to all the Trims in a Brep object

Properties

Count

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

Indexers

this[]

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

Methods

Add

#Since v5.4
public BrepTrim Add(bool rev3d, BrepEdge edge, int curve2dIndex)
Add a new trim that will be part of an inner, outer, or slit loop to the brep
rev3d (bool)true if the edge and trim have opposite directions
edge (BrepEdge)3d edge associated with this trim
curve2dIndex (int)index of 2d trimming curve
new trim

Add

#Since v5.4
public BrepTrim Add(bool rev3d, BrepLoop loop, int curve2dIndex)
Add a new trim that will be part of an inner, outer, or slit loop to the brep
rev3d (bool)true if the edge and trim have opposite directions
loop (BrepLoop)trim is appended to this loop
curve2dIndex (int)index of 2d trimming curve
new trim

Add

#Since v5.4
public BrepTrim Add(BrepEdge edge, bool rev3d, BrepLoop loop, int curve2dIndex)
Add a new trim that will be part of an inner, outer, or slit loop to the brep.
edge (BrepEdge)3d edge associated with this trim
rev3d (bool)true if the edge and trim have opposite directions
loop (BrepLoop)trim is appended to this loop
curve2dIndex (int)index of 2d trimming curve
new trim

Add

#Since v5.4
public BrepTrim Add(int curve2dIndex)
Add a new trim that will be part of an inner, outer, or slit loop to the brep.
Remarks: You should set the trim's Tolerance, TrimType, and IsoStatus values. In general, you should try to use the Add( edge, bRev3d, loop, c2i ) version of NewTrim. If you want to add a singular trim, use AddSingularTrim. If you want to add a curve-on-surface trim, use AddCurveOnFace. If you want to add a point-on-surface trim, use AddPointOnFace.
curve2dIndex (int)index of 2d trimming curve
New Trim

AddCurveOnFace

#Since v5.4
public BrepTrim AddCurveOnFace(BrepFace face, BrepEdge edge, bool rev3d, int curve2dIndex)
Add a new curve on face to the brep
Remarks: You should set the trim's tolerance and iso values.
face (BrepFace)face that curve lies on
edge (BrepEdge)3d edge associated with this curve on surface
rev3d (bool)true if the 3d edge and the 2d parameter space curve have opposite directions.
curve2dIndex (int)index of 2d curve in face's parameter space
new trim that represents the curve on surface

AddSingularTrim

#Since v5.4
public BrepTrim AddSingularTrim(BrepVertex vertex, BrepLoop loop, IsoStatus iso, int curve2dIndex)
Add a new singular trim to the brep.
vertex (BrepVertex)vertex along collapsed surface edge
loop (BrepLoop)trim is appended to this loop
iso (IsoStatus)
curve2dIndex (int)index of 2d trimming curve
new trim

GetEnumerator

#Since v5.1
public IEnumerator<BrepTrim> GetEnumerator()
Gets an enumerator that visits all edges.
The enumerator.

MatchEnds

#Since v6.19
public bool MatchEnds()
Matches the endpoints of all trims in the Brep.
true if any trim's 2d curve is changed, false otherwise.

MatchEnds

#Since v6.19
public bool MatchEnds(BrepLoop loop)
Match the endpoints of all trims in a loop.
loop (BrepLoop)The Brep loop.
true if any trim's 2d curve is changed, false otherwise.

MatchEnds

#Since v6.19
public bool MatchEnds(BrepTrim trim0, BrepTrim trim1)
Match the end of a trim to the start of the next trim.
trim0 (BrepTrim)The Brep trim.
trim1 (BrepTrim)Brep trim that comes immediately after trim0 in the same loop.
true if either trim's 2d curve is changed, false otherwise.

MatchEnds

#Since v6.19
public bool MatchEnds(int trimIndex)
Match the endpoints of a trim to the next and previous trim.
trimIndex (int)
true if any trim's 2d curve is changed, false otherwise.
Explicit

IEnumerable.GetEnumerator

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