BrepTrimList

References
Provides access to all the Trims in a Brep object

Properties

Count

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

Indexers

this[]

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

Methods

Add

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

Add

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

Add

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

Add

#Since v5.4
Add a new trim that will be part of an inner, outer, or slit loop to the brep.
public BrepTrim Add(
curve2dIndex
index of 2d trimming curve
)
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.
New Trim

AddCurveOnFace

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

AddSingularTrim

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

GetEnumerator

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

MatchEnds

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

MatchEnds

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

MatchEnds

#Since v6.19
Match the end of a trim to the start of the next trim.
public bool MatchEnds(
trim0,
The Brep trim.
trim1
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
Match the endpoints of a trim to the next and previous trim.
public bool MatchEnds(
trimIndex
)
true if any trim's 2d curve is changed, false otherwise.
Explicit

IEnumerable.GetEnumerator

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