MCPcopy Create free account
hub / github.com/BIMCoderLiang/LNLib / LNLIB_NURBSCUR_project_normal

Function LNLIB_NURBSCUR_project_normal

dotnet/CAPI/src/NurbsCurve_CAPI.cpp:261–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261int LNLIB_NURBSCUR_project_normal(LN_NurbsCurve_C curve, XYZ_C* out_normals) {
262 auto normals = NurbsCurve::ProjectNormal(FromCAPI(curve));
263 for (size_t i = 0; i < normals.size(); ++i) {
264 out_normals[i] = FromXYZ(normals[i]);
265 }
266 return static_cast<int>(normals.size());
267}
268
269double LNLIB_NURBSCUR_get_param_on_curve(LN_NurbsCurve_C curve, XYZ_C given_point) {
270 return NurbsCurve::GetParamOnCurve(FromCAPI(curve), ToXYZ(given_point));

Callers

nothing calls this directly

Calls 2

FromXYZFunction · 0.85
FromCAPIFunction · 0.70

Tested by

no test coverage detected