sdk: an edge is taken wherever a wire is (a sweep path, a loft section, a face boundary, a binormal guide): the wire of that one edge, made by the recorded make_wire_from_edges_rwire so a graph sees where it came from (as_wire, edges_as_wires; Wire(edge) and an implicit Edge -> Wire conversion in Python). make_wire_from_edges_rwire takes its edges in any order (they are chained by their ends first, then added in turn so each keeps its identity) and an edge that touches none of the others is an error instead of being left out. loft_rshell of open sections (the surface between two curves) no longer fails looking for end wires: only a closed end section is a boundary loop of its own

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiJingzhe
2026-11-06 06:12:46 +08:00
parent 53de920e81
commit f8a13de6e4
13 changed files with 193 additions and 13 deletions
@@ -408,7 +408,7 @@ void bind_sweeps(py::module_& m) {
const py::object& binormal = binormal_arg;
const std::vector<Shape> sections = shape_list(profiles, "sections must be Face or Wire");
std::optional<Binormal> aux;
if (py::isinstance<Wire>(binormal))
if (py::isinstance<Wire>(binormal) || py::isinstance<Edge>(binormal)) // an edge: the wire of that one edge
aux = Binormal(binormal.cast<Wire>());
else if (!binormal.is_none())
aux = Binormal(vector_arg(binormal, "binormal"));