add Python bindings for shape_diameter_function

Former-commit-id: ad61b3abe2
This commit is contained in:
Janis Born
2018-04-13 11:30:08 +02:00
parent e5fceae56e
commit c68759b41d
4 changed files with 52 additions and 0 deletions
+14
View File
@@ -1196,6 +1196,20 @@ const char *__doc_igl_setdiff = R"igl_Qu8mg5v7(// Set difference of elements of
// C (k<=m)-long vector of unique elements appearing in A but not in B
// IA (k<=m)-long list of indices into A so that C = A(IA)
//)igl_Qu8mg5v7";
const char *__doc_igl_shape_diameter_function = R"igl_Qu8mg5v7(// Compute shape diamater function per given point. In the parlence of the
// paper "Consistent Mesh Partitioning and Skeletonisation using the Shape
// Diameter Function" [Shapiro et al. 2008], this implementation uses a 180°
// cone and a _uniform_ average (_not_ a average weighted by inverse angles).
//
// Inputs:
// shoot_ray function handle that outputs hits of a given ray against a
// mesh (embedded in function handles as captured variable/data)
// P #P by 3 list of origin points
// N #P by 3 list of origin normals
// Outputs:
// S #P list of shape diamater function values between bounding box
// diagonal (perfect sphere) and 0 (perfect needle hook)
//)igl_Qu8mg5v7";
const char *__doc_igl_signed_distance = R"igl_Qu8mg5v7(// Computes signed distance to a mesh
//
// Inputs: