geometry.edgesIntroducedBy — Select the edges a geometry operation created, using topology history.
output = geometry.edgesIntroducedBy(feature) returns an edge geometry.RegionOutput that selects the edges introduced by feature's own operation and requires at least one.
Syntax
output = geometry.edgesIntroducedBy(feature)Inputs
feature- Type
Any- Required
- Yes
- Default
- —
- Description
- geometry.Feature whose introduced edges are selected.
Returns
output- Type
Any- Description
- Edge geometry.RegionOutput selected by the feature's topology history.
Errors
RunMat:geometry:edgesIntroducedBy:InvalidInput- When
- The wrong number of arguments is passed. The argument is not a geometry.Feature. A value violates the feature-graph contract.
- Message
geometry.edgesIntroducedBy: invalid input
Behavior
Introduced edges are those the CAD kernel reports as generated by the operation, together with result edges that have no predecessor in its inputs, for example the rim circles where a hole meets the part. Edges inherited from the inputs are excluded.
Resolution requires complete topology history for the operation; without it, realization fails rather than guessing. Selections are defined by feature lineage, not by entity index or position. Because the region names what the feature produced, it keeps selecting the intended topology when dimensions change and the part is regenerated, and realization fails rather than silently selecting different topology.
Creating the selection is a pure, non-suspending call; it does not realize geometry.
Use in a study
Pass the selection to geometry.fillet or geometry.chamfer to treat only the edges a cut created, or publish it as an edge region with geometry.withRegion.
Errors
RunMat:geometry:edgesIntroducedBy:InvalidInput reports a call that does not pass exactly one geometry.Feature value. Selection errors at realization, such as an empty selection, a cardinality mismatch, or missing topology history, are reported by the .fea geometry materialization that resolves the region, before meshing or assembly.
Example
Chamfer only the rims of a hole
plate = geometry.box(80e-3, 50e-3, 8e-3);
holed = geometry.hole(plate, 4e-3, 8e-3, [0 0 1], [40e-3 25e-3 0]);
rims = geometry.edgesIntroducedBy(holed);
finished = geometry.chamfer(holed, rims, 0.5e-3);
class(rims)Using geometry.edgesIntroducedBy with coding agents
Open a RunMat example with live inputs, then ask the agent to explain how geometry.edgesIntroducedBy changes the result.
Run a small geometry.edgesIntroducedBy example, explain the result, then change one input and compare the output.
FAQ
How is this different from geometry.edges?⌄
geometry.edges selects all edges of the feature's result, including inherited ones; geometry.edgesIntroducedBy selects only the edges that operation created.
Related Geometry functions
Construction
geometry.box · geometry.chamfer · geometry.cylinder · geometry.edges · geometry.extrude · geometry.faces · geometry.facesIntroducedBy · geometry.fillet · geometry.finish · geometry.hole · geometry.instance · geometry.intersect · geometry.pocket · geometry.revolve · geometry.solid · geometry.sphere · geometry.subtract · geometry.transform · geometry.union · geometry.withRegion
Related guides
Source you can read
Every RunMat function's source is public. Read exactly how geometry.edgesIntroducedBy is executed, line by line, in Rust.
- View the source for geometry.edgesIntroducedBy in Rust on GitHub
- Learn how the RunMat runtime works
- Found a bug? Open an issue with a minimal reproduction.
About RunMat
RunMat is a runtime that executes MATLAB-syntax code fast on any GPU. The runtime is free for individuals, including freelancers; students and faculty at an academic institution, for teaching or research there; contributors to an open-source project, for work on that project; organizations with 250 or fewer people and US$10M or less in annual revenue; and anyone, for non-production use. See runmat.com/license.
- RunMat automatically optimizes your math for GPU execution on Apple, Nvidia, and AMD hardware. No code changes needed. Simulations that took hours now take minutes.
- Start running code in seconds. RunMat runs in the browser, on the desktop, or from the CLI. No license server, no IT ticket.