- n3xd_ocp.sample.face_grid: a face's UV grid of points and outward normals in one GIL-free call, sampling exactly where np.linspace does so a caller's fitted surface does not move. - n3xd_ocp.helix: OCCT 8.0's TKHelix, which upstream does not bind at all. Takes Python lists rather than NCollection_Array1. Two things the header does not say, both found by probing: SetParameters wants N+1 diameters for N segments (one per boundary, so a taper interpolates), and the builder is right-hand only -- a negative pitch is error status 12, not a mirrored helix. - Bind BRepPrimAPI_MakeSphere and give inventory.py an EXTRA_SYMBOLS addendum for symbols no app source imports. assay's gen_flow_fixtures has been unrunnable since the 10C cutover for want of it; the gap was wider than --check, since sigdiff is inventory-driven too. Gates: 105 tests, 139/139 symbols, sigdiff clean, ASAN clean, wheel self-contained with no libGL/libX11 DT_NEEDED. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HbTQ2HYWQwdtGmGJwypt6Z
34 lines
1.1 KiB
C++
34 lines
1.1 KiB
C++
/*
|
|
n3xd_ocp — the extension surface, kept out of the OCP namespace on purpose.
|
|
|
|
OCP.* stays a drop-in replacement for cadquery-ocp-novtk, symbol for symbol,
|
|
so parity testing means something. Anything that goes *beyond* upstream —
|
|
bulk array extraction, batched measurement, GIL-free serialisation — lives
|
|
here instead, in the same wheel. The backend adopts these after the
|
|
cutover, one call site at a time.
|
|
|
|
Only the leaf modules are registered here. Creating the `n3xd_ocp` parent
|
|
from C++ would put a bare module in sys.modules, and a later `import
|
|
n3xd_ocp` would then find it and never run the package's __init__.py.
|
|
*/
|
|
|
|
#include "../common/occt_module.h"
|
|
|
|
namespace nb = nanobind;
|
|
|
|
void register_ext_bintools();
|
|
void register_ext_debug();
|
|
void register_ext_helix();
|
|
void register_ext_measure();
|
|
void register_ext_sample();
|
|
void register_ext_tess();
|
|
|
|
void register_ext(nb::module_ &) {
|
|
register_ext_bintools();
|
|
register_ext_debug();
|
|
register_ext_helix();
|
|
register_ext_measure();
|
|
register_ext_sample();
|
|
register_ext_tess();
|
|
}
|