BrepEdgeList
ReferencesProvides access to all the Edges in a Brep object.
Properties
Indexers
this[]
#Gets the BrepEdge at the given index. The index must be valid or an IndexOutOfRangeException will be thrown.
Parameters:
| index (int) | Index of BrepEdge to access. |
Returns: The BrepEdge at [index].
Exceptions:
| IndexOutOfRangeException | Thrown when the index is invalid. |
Methods
public BrepEdge Add(BrepVertex startVertex, BrepVertex endVertex, int curve3dIndex, double edgeTolerance)
Create and add a new edge to this list
Parameters:
| startVertex (BrepVertex) | |
| endVertex (BrepVertex) | |
| curve3dIndex (int) | |
| edgeTolerance (double) |
public BrepEdge Add(BrepVertex startVertex, BrepVertex endVertex, int curve3dIndex, Interval subDomain, double edgeTolerance)
Create and add a new edge to this list
Parameters:
| startVertex (BrepVertex) | |
| endVertex (BrepVertex) | |
| curve3dIndex (int) | |
| subDomain (Interval) | |
| edgeTolerance (double) |
Create and add a new edge to this list
Parameters:
| curve3dIndex (int) |
public BrepEdge Add(int startVertexIndex, int endVertexIndex, int curve3dIndex, double edgeTolerance)
Create and add a new edge to this list
public BrepEdge Add(int startVertexIndex, int endVertexIndex, int curve3dIndex, Interval subDomain, double edgeTolerance)
Create and add a new edge to this list
Gets an enumerator that visits all edges.
Returns: The enumerator.
Merges all possible Brep edges. Edges across kinks cannot be merged. A pair of adjacent edges in a Brep are mergeable if the angle between them is less than tolerance and the valence of the shared vertex is 2.
Parameters:
| angleTolerance (double) | The maximum allowable difference of angle in radian between adjacent edges that can be merged. |
Returns: The number of edges merged.
Merge adjacent edges to a specified edge recursively. A pair of adjacent edges in a Brep are mergeable if the angle between them is less than tolerance and the valence of the shared vertex is 2.
Finds any naked edges with the same start and end vertex and an arc-length less than tolerance and attempts to remove them by removing trims and extending the adjacent to meet.
Parameters:
| tolerance (double) | The tolerance. When in doubt, use the document's model absolute tolerance. |
| cleanUp (bool) | If true, then the method cleans up the Brep by setting tolerances, boxes, flags, and then compacts. If false, then the caller should do this at some point. |
Returns: The number of naked micro edges that were removed.
Finds any naked edges with the same start and end vertex and an arc-length less than tolerance and attempts to remove them by removing trims and extending the adjacent to meet.
Parameters:
| tolerance (double) | The tolerance. When in doubt, use the document's model absolute tolerance. |
Returns: The number of naked micro edges that were removed.
Splits an edge at the specified parameters.
Remarks: This function leaves deleted stuff in the brep. Call Brep.Compact() to remove deleted stuff.
Parameters:
| edgeIndex (int) | The index of the edge to be addressed. |
| edgeParameters (IEnumerable<double>) | The parameter along that edge. |
Returns: Number of splits applied to the edge.
Splits the edge into G1 pieces.
Gets the same enumerator as GetEnumerator().
Returns: The enumerator.