3D curves drawn in the viewport (W: lines, arcs, splines on workplanes, snapped to vertices, edge midpoints, workplane origins; a point on a workplane follows it, a snapped vertex is a scad.ref), wires and edges drawn from kernel samples; a failing step previews the model before it; independent spline handles, anchors added while drawing, Shift+A anchor mode; sketch regions (make_faces_from_sketch_rfacelist: outer loops with their holes); a tag on several entities names a set and keeps its pieces; exact surface normals in preview meshes (smooth shading, shared vertices); SimpleWorkplane.point; scad.ref.of a vertex

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NiJingzhe
2026-11-05 04:30:26 +08:00
parent fabbbe251b
commit a69d1ef431
56 changed files with 2577 additions and 136 deletions
+8
View File
@@ -111,6 +111,14 @@ void bind_core(py::module_& m) {
.def_property_readonly(
"plane", [](const Workplane& w) { return scad::pybind::value_to_python(w.plane_value()); },
"The frame as a sketch plane mapping {'origin', 'x_axis', 'y_axis'} (world coordinates).")
.def(
"point",
[tuple3](const Workplane& w, double u, double v, double h) {
return tuple3(w.cs().transform_point({u, v, h}));
},
py::arg("u"), py::arg("v"), py::arg("w") = 0.0,
"The world point (x, y, z) at (u, v) in the plane (and w along its normal): where a point drawn on this "
"workplane is, so it moves with the workplane.")
.def(
"__enter__",
[](Workplane& w) -> Workplane& {