solid.Shape.edges
solid.Shape: E = edges (S)
solid.Shape: E = edges (S, Name, Value, …)
Choose edges of a shape, to round, chamfer or inspect.
E = edges (S) returns the indices of the edges of
S as a row vector, in the order solid.Shape.numedges
counts them. Seam edges, where a curved face closes on itself, and the
degenerate edges at the poles of a sphere are left out: they bound
faces without being features of the part, and nothing can be done to
them.
The indices belong to S alone. Every operation that makes a new shape numbers its edges afresh, so choose edges from the shape the feature is applied to, immediately before applying it.
Name/Value pairs narrow the choice, and an edge is returned only when it meets all of them:
'Type''line', 'circle',
'ellipse', 'bspline' or 'other', or a cell
array of several.'Direction''Within'[xmin, ymin, zmin, xmax,
ymax, zmax], as solid.Shape.bbox returns one. An
edge is chosen when it lies wholly inside, to within 1e-6 millimetres.'Face'solid.Shape.faces returns them. An edge is
chosen when it bounds any of these faces, so all the edges round a
face can be rounded or chamfered in one step:
fillet (S, edges (S, 'Face', F), R).B = solid.box (10, 20, 30); E = edges (B, 'Direction', [0, 0, 1]); # the four upright edges B = fillet (B, E, 2); |
The empty shape has no edges.
See also: solid.Shape.faces, solid.Shape.fillet, solid.Shape.chamfer
Source Code: solid.Shape