/* OCP.GeomLProp — local surface properties. One use: text emboss reads the surface normal at the anchor's UV to decide which way the glyph solid grows out of a curved face. OCCT 8.0 rebuilt this as a template — GeomLProp_SLProps is now an alias for GeomLProp_SLPropsBase> — but kept the constructor and the accessors we bind, so the surface below is unchanged. */ #include "../common/occt_module.h" #include "../common/occt_policies.h" #include #include #include #include void register_GeomLProp(nb::module_ &root) { nb::module_ m = ocp_submodule(root, "GeomLProp"); nb::class_(m, "GeomLProp_SLProps") .def(nb::init &, const Standard_Real, const Standard_Real, const Standard_Integer, const Standard_Real>(), "S"_a, "U"_a, "V"_a, "N"_a, "Resolution"_a) .def("Value", &GeomLProp_SLProps::Value, OCP_RETURN_COPY) .def("Normal", &GeomLProp_SLProps::Normal, OCP_RETURN_COPY) .def("IsNormalDefined", &GeomLProp_SLProps::IsNormalDefined) .def("SetParameters", &GeomLProp_SLProps::SetParameters, "U"_a, "V"_a); }