py_doc.cpp 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438
  1. const char *__doc_igl_active_set = R"igl_Qu8mg5v7(// Known Bugs: rows of [Aeq;Aieq] **must** be linearly independent. Should be
  2. // using QR decomposition otherwise:
  3. // http://www.okstate.edu/sas/v8/sashtml/ormp/chap5/sect32.htm
  4. //
  5. // ACTIVE_SET Minimize quadratic energy
  6. //
  7. // 0.5*Z'*A*Z + Z'*B + C with constraints
  8. //
  9. // that Z(known) = Y, optionally also subject to the constraints Aeq*Z = Beq,
  10. // and further optionally subject to the linear inequality constraints that
  11. // Aieq*Z <= Bieq and constant inequality constraints lx <= x <= ux
  12. //
  13. // Inputs:
  14. // A n by n matrix of quadratic coefficients
  15. // B n by 1 column of linear coefficients
  16. // known list of indices to known rows in Z
  17. // Y list of fixed values corresponding to known rows in Z
  18. // Aeq meq by n list of linear equality constraint coefficients
  19. // Beq meq by 1 list of linear equality constraint constant values
  20. // Aieq mieq by n list of linear inequality constraint coefficients
  21. // Bieq mieq by 1 list of linear inequality constraint constant values
  22. // lx n by 1 list of lower bounds [] implies -Inf
  23. // ux n by 1 list of upper bounds [] implies Inf
  24. // params struct of additional parameters (see below)
  25. // Z if not empty, is taken to be an n by 1 list of initial guess values
  26. // (see output)
  27. // Outputs:
  28. // Z n by 1 list of solution values
  29. // Returns true on success, false on error
  30. //
  31. // Benchmark: For a harmonic solve on a mesh with 325K facets, matlab 2.2
  32. // secs, igl/min_quad_with_fixed.h 7.1 secs
  33. //)igl_Qu8mg5v7";
  34. const char *__doc_igl_adjacency_list = R"igl_Qu8mg5v7(// Constructs the graph adjacency list of a given mesh (V,F)
  35. // Templates:
  36. // T should be a eigen sparse matrix primitive type like int or double
  37. // Inputs:
  38. // F #F by dim list of mesh faces (must be triangles)
  39. // sorted flag that indicates if the list should be sorted counter-clockwise
  40. // Outputs:
  41. // A vector<vector<T> > containing at row i the adjacent vertices of vertex i
  42. //
  43. // Example:
  44. // // Mesh in (V,F)
  45. // vector<vector<double> > A;
  46. // adjacency_list(F,A);
  47. //
  48. // See also: edges, cotmatrix, diag)igl_Qu8mg5v7";
  49. const char *__doc_igl_arap_precomputation = R"igl_Qu8mg5v7(// Compute necessary information to start using an ARAP deformation
  50. //
  51. // Inputs:
  52. // V #V by dim list of mesh positions
  53. // F #F by simplex-size list of triangle|tet indices into V
  54. // dim dimension being used at solve time. For deformation usually dim =
  55. // V.cols(), for surface parameterization V.cols() = 3 and dim = 2
  56. // b #b list of "boundary" fixed vertex indices into V
  57. // Outputs:
  58. // data struct containing necessary precomputation)igl_Qu8mg5v7";
  59. const char *__doc_igl_arap_solve = R"igl_Qu8mg5v7(// Inputs:
  60. // bc #b by dim list of boundary conditions
  61. // data struct containing necessary precomputation and parameters
  62. // U #V by dim initial guess)igl_Qu8mg5v7";
  63. const char *__doc_igl_avg_edge_length = R"igl_Qu8mg5v7(// Compute the average edge length for the given triangle mesh
  64. // Templates:
  65. // DerivedV derived from vertex positions matrix type: i.e. MatrixXd
  66. // DerivedF derived from face indices matrix type: i.e. MatrixXi
  67. // DerivedL derived from edge lengths matrix type: i.e. MatrixXd
  68. // Inputs:
  69. // V eigen matrix #V by 3
  70. // F #F by simplex-size list of mesh faces (must be simplex)
  71. // Outputs:
  72. // l average edge length
  73. //
  74. // See also: adjacency_matrix)igl_Qu8mg5v7";
  75. const char *__doc_igl_barycenter = R"igl_Qu8mg5v7(// Computes the barycenter of every simplex
  76. //
  77. // Inputs:
  78. // V #V x dim matrix of vertex coordinates
  79. // F #F x simplex_size matrix of indices of simplex corners into V
  80. // Output:
  81. // BC #F x dim matrix of 3d vertices
  82. //)igl_Qu8mg5v7";
  83. const char *__doc_igl_barycentric_coordinates = R"igl_Qu8mg5v7(// Compute barycentric coordinates in a tet
  84. //
  85. // Inputs:
  86. // P #P by 3 Query points in 3d
  87. // A #P by 3 Tet corners in 3d
  88. // B #P by 3 Tet corners in 3d
  89. // C #P by 3 Tet corners in 3d
  90. // D #P by 3 Tet corners in 3d
  91. // Outputs:
  92. // L #P by 4 list of barycentric coordinates
  93. // )igl_Qu8mg5v7";
  94. const char *__doc_igl_barycentric_to_global = R"igl_Qu8mg5v7(// Converts barycentric coordinates in the embree form to 3D coordinates
  95. // Embree stores barycentric coordinates as triples: fid, bc1, bc2
  96. // fid is the id of a face, bc1 is the displacement of the point wrt the
  97. // first vertex v0 and the edge v1-v0. Similarly, bc2 is the displacement
  98. // wrt v2-v0.
  99. //
  100. // Input:
  101. // V: #Vx3 Vertices of the mesh
  102. // F: #Fxe Faces of the mesh
  103. // bc: #Xx3 Barycentric coordinates, one row per point
  104. //
  105. // Output:
  106. // #X: #Xx3 3D coordinates of all points in bc)igl_Qu8mg5v7";
  107. const char *__doc_igl_bbw = R"igl_Qu8mg5v7(// Compute Bounded Biharmonic Weights on a given domain (V,Ele) with a given
  108. // set of boundary conditions
  109. //
  110. // Templates
  111. // DerivedV derived type of eigen matrix for V (e.g. MatrixXd)
  112. // DerivedF derived type of eigen matrix for F (e.g. MatrixXi)
  113. // Derivedb derived type of eigen matrix for b (e.g. VectorXi)
  114. // Derivedbc derived type of eigen matrix for bc (e.g. MatrixXd)
  115. // DerivedW derived type of eigen matrix for W (e.g. MatrixXd)
  116. // Inputs:
  117. // V #V by dim vertex positions
  118. // Ele #Elements by simplex-size list of element indices
  119. // b #b boundary indices into V
  120. // bc #b by #W list of boundary values
  121. // data object containing options, intial guess --> solution and results
  122. // Outputs:
  123. // W #V by #W list of *unnormalized* weights to normalize use
  124. // igl::normalize_row_sums(W,W);
  125. // Returns true on success, false on failure)igl_Qu8mg5v7";
  126. const char *__doc_igl_boundary_conditions = R"igl_Qu8mg5v7(// Compute boundary conditions for automatic weights computation. This
  127. // function expects that the given mesh (V,Ele) has sufficient samples
  128. // (vertices) exactly at point handle locations and exactly along bone and
  129. // cage edges.
  130. //
  131. // Inputs:
  132. // V #V by dim list of domain vertices
  133. // Ele #Ele by simplex-size list of simplex indices
  134. // C #C by dim list of handle positions
  135. // P #P by 1 list of point handle indices into C
  136. // BE #BE by 2 list of bone edge indices into C
  137. // CE #CE by 2 list of cage edge indices into *P*
  138. // Outputs:
  139. // b #b list of boundary indices (indices into V of vertices which have
  140. // known, fixed values)
  141. // bc #b by #weights list of known/fixed values for boundary vertices
  142. // (notice the #b != #weights in general because #b will include all the
  143. // intermediary samples along each bone, etc.. The ordering of the
  144. // weights corresponds to [P;BE]
  145. // Returns false if boundary conditions are suspicious:
  146. // P and BE are empty
  147. // bc is empty
  148. // some column of bc doesn't have a 0 (assuming bc has >1 columns)
  149. // some column of bc doesn't have a 1 (assuming bc has >1 columns))igl_Qu8mg5v7";
  150. const char *__doc_igl_boundary_facets = R"igl_Qu8mg5v7(// BOUNDARY_FACETS Determine boundary faces (edges) of tetrahedra (triangles)
  151. // stored in T (analogous to qptoolbox's `outline` and `boundary_faces`).
  152. //
  153. // Templates:
  154. // IntegerT integer-value: e.g. int
  155. // IntegerF integer-value: e.g. int
  156. // Input:
  157. // T tetrahedron (triangle) index list, m by 4 (3), where m is the number of tetrahedra
  158. // Output:
  159. // F list of boundary faces, n by 3 (2), where n is the number of boundary faces
  160. //
  161. //)igl_Qu8mg5v7";
  162. const char *__doc_igl_boundary_loop = R"igl_Qu8mg5v7(// Compute list of ordered boundary loops for a manifold mesh.
  163. //
  164. // Templates:
  165. // Index index type
  166. // Inputs:
  167. // F #V by dim list of mesh faces
  168. // Outputs:
  169. // L list of loops where L[i] = ordered list of boundary vertices in loop i
  170. //)igl_Qu8mg5v7";
  171. const char *__doc_igl_cat = R"igl_Qu8mg5v7(// Perform concatenation of a two matrices along a single dimension
  172. // If dim == 1, then C = [A;B]. If dim == 2 then C = [A B]
  173. //
  174. // Template:
  175. // Scalar scalar data type for sparse matrices like double or int
  176. // Mat matrix type for all matrices (e.g. MatrixXd, SparseMatrix)
  177. // MatC matrix type for ouput matrix (e.g. MatrixXd) needs to support
  178. // resize
  179. // Inputs:
  180. // A first input matrix
  181. // B second input matrix
  182. // dim dimension along which to concatenate, 1 or 2
  183. // Outputs:
  184. // C output matrix
  185. // )igl_Qu8mg5v7";
  186. const char *__doc_igl_collapse_edge = R"igl_Qu8mg5v7(See collapse_edge for the documentation.)igl_Qu8mg5v7";
  187. const char *__doc_igl_colon = R"igl_Qu8mg5v7(// Colon operator like matlab's colon operator. Enumerats values between low
  188. // and hi with step step.
  189. // Templates:
  190. // L should be a eigen matrix primitive type like int or double
  191. // S should be a eigen matrix primitive type like int or double
  192. // H should be a eigen matrix primitive type like int or double
  193. // T should be a eigen matrix primitive type like int or double
  194. // Inputs:
  195. // low starting value if step is valid then this is *always* the first
  196. // element of I
  197. // step step difference between sequential elements returned in I,
  198. // remember this will be cast to template T at compile time. If low<hi
  199. // then step must be positive. If low>hi then step must be negative.
  200. // Otherwise I will be set to empty.
  201. // hi ending value, if (hi-low)%step is zero then this will be the last
  202. // element in I. If step is positive there will be no elements greater
  203. // than hi, vice versa if hi<low
  204. // Output:
  205. // I list of values from low to hi with step size step)igl_Qu8mg5v7";
  206. const char *__doc_igl_column_to_quats = R"igl_Qu8mg5v7(// "Columnize" a list of quaternions (q1x,q1y,q1z,q1w,q2x,q2y,q2z,q2w,...)
  207. //
  208. // Inputs:
  209. // Q n*4-long list of coefficients
  210. // Outputs:
  211. // vQ n-long list of quaternions
  212. // Returns false if n%4!=0)igl_Qu8mg5v7";
  213. const char *__doc_igl_comb_cross_field = R"igl_Qu8mg5v7(// Inputs:
  214. // V #V by 3 eigen Matrix of mesh vertex 3D positions
  215. // F #F by 4 eigen Matrix of face (quad) indices
  216. // PD1in #F by 3 eigen Matrix of the first per face cross field vector
  217. // PD2in #F by 3 eigen Matrix of the second per face cross field vector
  218. // Output:
  219. // PD1out #F by 3 eigen Matrix of the first combed cross field vector
  220. // PD2out #F by 3 eigen Matrix of the second combed cross field vector
  221. //)igl_Qu8mg5v7";
  222. const char *__doc_igl_comb_frame_field = R"igl_Qu8mg5v7(// Inputs:
  223. // V #V by 3 eigen Matrix of mesh vertex 3D positions
  224. // F #F by 4 eigen Matrix of face (quad) indices
  225. // PD1 #F by 3 eigen Matrix of the first per face cross field vector
  226. // PD2 #F by 3 eigen Matrix of the second per face cross field vector
  227. // BIS1_combed #F by 3 eigen Matrix of the first combed bisector field vector
  228. // BIS2_combed #F by 3 eigen Matrix of the second combed bisector field vector
  229. // Output:
  230. // PD1_combed #F by 3 eigen Matrix of the first combed cross field vector
  231. // PD2_combed #F by 3 eigen Matrix of the second combed cross field vector
  232. //)igl_Qu8mg5v7";
  233. const char *__doc_igl_compute_frame_field_bisectors = R"igl_Qu8mg5v7(// Compute bisectors of a frame field defined on mesh faces
  234. // Inputs:
  235. // V #V by 3 eigen Matrix of mesh vertex 3D positions
  236. // F #F by 3 eigen Matrix of face (triangle) indices
  237. // B1 #F by 3 eigen Matrix of face (triangle) base vector 1
  238. // B2 #F by 3 eigen Matrix of face (triangle) base vector 2
  239. // PD1 #F by 3 eigen Matrix of the first per face frame field vector
  240. // PD2 #F by 3 eigen Matrix of the second per face frame field vector
  241. // Output:
  242. // BIS1 #F by 3 eigen Matrix of the first per face frame field bisector
  243. // BIS2 #F by 3 eigen Matrix of the second per face frame field bisector
  244. //)igl_Qu8mg5v7";
  245. const char *__doc_igl_copyleft_cgal_mesh_boolean = R"igl_Qu8mg5v7(// MESH_BOOLEAN Compute boolean csg operations on "solid", consistently
  246. // oriented meshes.
  247. //
  248. // Inputs:
  249. // VA #VA by 3 list of vertex positions of first mesh
  250. // FA #FA by 3 list of triangle indices into VA
  251. // VB #VB by 3 list of vertex positions of second mesh
  252. // FB #FB by 3 list of triangle indices into VB
  253. // type type of boolean operation
  254. // Outputs:
  255. // VC #VC by 3 list of vertex positions of boolean result mesh
  256. // FC #FC by 3 list of triangle indices into VC
  257. // J #FC list of indices into [FA;FA.rows()+FB] revealing "birth" facet
  258. // Returns true if inputs induce a piecewise constant winding number
  259. // field and type is valid
  260. //
  261. // See also: mesh_boolean_cork, intersect_other,
  262. // remesh_self_intersections)igl_Qu8mg5v7";
  263. const char *__doc_igl_copyleft_cgal_remesh_self_intersections = R"igl_Qu8mg5v7(// Given a triangle mesh (V,F) compute a new mesh (VV,FF) which is the same
  264. // as (V,F) except that any self-intersecting triangles in (V,F) have been
  265. // subdivided (new vertices and face created) so that the self-intersection
  266. // contour lies exactly on edges in (VV,FF). New vertices will appear in
  267. // original faces or on original edges. New vertices on edges are "merged"
  268. // only across original faces sharing that edge. This means that if the input
  269. // triangle mesh is a closed manifold the output will be too.
  270. //
  271. // Inputs:
  272. // V #V by 3 list of vertex positions
  273. // F #F by 3 list of triangle indices into V
  274. // params struct of optional parameters
  275. // Outputs:
  276. // VV #VV by 3 list of vertex positions
  277. // FF #FF by 3 list of triangle indices into VV
  278. // IF #intersecting face pairs by 2 list of intersecting face pairs,
  279. // indexing F
  280. // J #FF list of indices into F denoting birth triangle
  281. // IM #VV list of indices into VV of unique vertices.
  282. //
  283. // Known bugs: If an existing edge in (V,F) lies exactly on another face then
  284. // any resulting additional vertices along that edge may not get properly
  285. // connected so that the output mesh has the same global topology. This is
  286. // because
  287. //
  288. // Example:
  289. // // resolve intersections
  290. // igl::copyleft::cgal::remesh_self_intersections(V,F,params,VV,FF,IF,J,IM);
  291. // // _apply_ duplicate vertex mapping IM to FF
  292. // for_each(FF.data(),FF.data()+FF.size(),[&IM](int & a){a=IM(a);});
  293. // // remove any vertices now unreferenced after duplicate mapping.
  294. // igl::remove_unreferenced(VV,FF,SV,SF,UIM);
  295. // // Now (SV,SF) is ready to extract outer hull
  296. // igl::copyleft::cgal::outer_hull(SV,SF,G,J,flip);
  297. //)igl_Qu8mg5v7";
  298. const char *__doc_igl_copyleft_comiso_miq = R"igl_Qu8mg5v7(// Inputs:
  299. // V #V by 3 list of mesh vertex 3D positions
  300. // F #F by 3 list of faces indices in V
  301. // PD1 #V by 3 first line of the Jacobian per triangle
  302. // PD2 #V by 3 second line of the Jacobian per triangle
  303. // (optional, if empty it will be a vector in the tangent plane orthogonal to PD1)
  304. // scale global scaling for the gradient (controls the quads resolution)
  305. // stiffness weight for the stiffness iterations
  306. // direct_round greedily round all integer variables at once (greatly improves optimization speed but lowers quality)
  307. // iter stiffness iterations (0 = no stiffness)
  308. // local_iter number of local iterations for the integer rounding
  309. // do_round enables the integer rounding (disabling it could be useful for debugging)
  310. // round_vertices id of additional vertices that should be snapped to integer coordinates
  311. // hard_features #H by 2 list of pairs of vertices that belongs to edges that should be snapped to integer coordinates
  312. //
  313. // Output:
  314. // UV #UV by 2 list of vertices in 2D
  315. // FUV #FUV by 3 list of face indices in UV
  316. //
  317. // TODO: rename the parameters name in the cpp consistenly
  318. // improve the handling of hard_features, right now it might fail in difficult cases)igl_Qu8mg5v7";
  319. const char *__doc_igl_copyleft_comiso_nrosy = R"igl_Qu8mg5v7(// Generate a N-RoSy field from a sparse set of constraints
  320. //
  321. // Inputs:
  322. // V #V by 3 list of mesh vertex coordinates
  323. // F #F by 3 list of mesh faces (must be triangles)
  324. // b #B by 1 list of constrained face indices
  325. // bc #B by 3 list of representative vectors for the constrained
  326. // faces
  327. // b_soft #S by 1 b for soft constraints
  328. // w_soft #S by 1 weight for the soft constraints (0-1)
  329. // bc_soft #S by 3 bc for soft constraints
  330. // N the degree of the N-RoSy vector field
  331. // soft the strenght of the soft contraints w.r.t. smoothness
  332. // (0 -> smoothness only, 1->constraints only)
  333. // Outputs:
  334. // R #F by 3 the representative vectors of the interpolated field
  335. // S #V by 1 the singularity index for each vertex (0 = regular))igl_Qu8mg5v7";
  336. const char *__doc_igl_copyleft_marching_cubes = R"igl_Qu8mg5v7(// marching_cubes( values, points, x_res, y_res, z_res, vertices, faces )
  337. //
  338. // performs marching cubes reconstruction on the grid defined by values, and
  339. // points, and generates vertices and faces
  340. //
  341. // Input:
  342. // values #number_of_grid_points x 1 array -- the scalar values of an
  343. // implicit function defined on the grid points (<0 in the inside of the
  344. // surface, 0 on the border, >0 outside)
  345. // points #number_of_grid_points x 3 array -- 3-D positions of the grid
  346. // points, ordered in x,y,z order:
  347. // points[index] = the point at (x,y,z) where :
  348. // x = (index % (xres -1),
  349. // y = (index / (xres-1)) %(yres-1),
  350. // z = index / (xres -1) / (yres -1) ).
  351. // where x,y,z index x, y, z dimensions
  352. // i.e. index = x + y*xres + z*xres*yres
  353. // xres resolutions of the grid in x dimension
  354. // yres resolutions of the grid in y dimension
  355. // zres resolutions of the grid in z dimension
  356. // Output:
  357. // vertices #V by 3 list of mesh vertex positions
  358. // faces #F by 3 list of mesh triangle indices
  359. //)igl_Qu8mg5v7";
  360. const char *__doc_igl_copyleft_swept_volume = R"igl_Qu8mg5v7(// Compute the surface of the swept volume of a solid object with surface
  361. // (V,F) mesh under going rigid motion.
  362. //
  363. // Inputs:
  364. // V #V by 3 list of mesh positions in reference pose
  365. // F #F by 3 list of mesh indices into V
  366. // transform function handle so that transform(t) returns the rigid
  367. // transformation at time t∈[0,1]
  368. // steps number of time steps: steps=3 --> t∈{0,0.5,1}
  369. // grid_res number of grid cells on the longest side containing the
  370. // motion (isolevel+1 cells will also be added on each side as padding)
  371. // isolevel distance level to be contoured as swept volume
  372. // Outputs:
  373. // SV #SV by 3 list of mesh positions of the swept surface
  374. // SF #SF by 3 list of mesh faces into SV)igl_Qu8mg5v7";
  375. const char *__doc_igl_copyleft_tetgen_tetrahedralize = R"igl_Qu8mg5v7(// Mesh the interior of a surface mesh (V,F) using tetgen
  376. //
  377. // Inputs:
  378. // V #V by 3 vertex position list
  379. // F #F list of polygon face indices into V (0-indexed)
  380. // switches string of tetgen options (See tetgen documentation) e.g.
  381. // "pq1.414a0.01" tries to mesh the interior of a given surface with
  382. // quality and area constraints
  383. // "" will mesh the convex hull constrained to pass through V (ignores F)
  384. // Outputs:
  385. // TV #V by 3 vertex position list
  386. // TT #T by 4 list of tet face indices
  387. // TF #F by 3 list of triangle face indices
  388. // Returns status:
  389. // 0 success
  390. // 1 tetgen threw exception
  391. // 2 tetgen did not crash but could not create any tets (probably there are
  392. // holes, duplicate faces etc.)
  393. // -1 other error)igl_Qu8mg5v7";
  394. const char *__doc_igl_cotmatrix = R"igl_Qu8mg5v7(// Constructs the cotangent stiffness matrix (discrete laplacian) for a given
  395. // mesh (V,F).
  396. //
  397. // Templates:
  398. // DerivedV derived type of eigen matrix for V (e.g. derived from
  399. // MatrixXd)
  400. // DerivedF derived type of eigen matrix for F (e.g. derived from
  401. // MatrixXi)
  402. // Scalar scalar type for eigen sparse matrix (e.g. double)
  403. // Inputs:
  404. // V #V by dim list of mesh vertex positions
  405. // F #F by simplex_size list of mesh faces (must be triangles)
  406. // Outputs:
  407. // L #V by #V cotangent matrix, each row i corresponding to V(i,:)
  408. //
  409. // See also: adjacency_matrix
  410. //
  411. // Note: This Laplacian uses the convention that diagonal entries are
  412. // **minus** the sum of off-diagonal entries. The diagonal entries are
  413. // therefore in general negative and the matrix is **negative** semi-definite
  414. // (immediately, -L is **positive** semi-definite)
  415. //)igl_Qu8mg5v7";
  416. const char *__doc_igl_covariance_scatter_matrix = R"igl_Qu8mg5v7(// Construct the covariance scatter matrix for a given arap energy
  417. // Inputs:
  418. // V #V by Vdim list of initial domain positions
  419. // F #F by 3 list of triangle indices into V
  420. // energy ARAPEnergyType enum value defining which energy is being used.
  421. // See ARAPEnergyType.h for valid options and explanations.
  422. // Outputs:
  423. // CSM dim*#V/#F by dim*#V sparse matrix containing special laplacians along
  424. // the diagonal so that when multiplied by V gives covariance matrix
  425. // elements, can be used to speed up covariance matrix computation)igl_Qu8mg5v7";
  426. const char *__doc_igl_cross_field_missmatch = R"igl_Qu8mg5v7(// Inputs:
  427. // V #V by 3 eigen Matrix of mesh vertex 3D positions
  428. // F #F by 3 eigen Matrix of face (quad) indices
  429. // PD1 #F by 3 eigen Matrix of the first per face cross field vector
  430. // PD2 #F by 3 eigen Matrix of the second per face cross field vector
  431. // isCombed boolean, specifying whether the field is combed (i.e. matching has been precomputed.
  432. // If not, the field is combed first.
  433. // Output:
  434. // Handle_MMatch #F by 3 eigen Matrix containing the integer missmatch of the cross field
  435. // across all face edges
  436. //)igl_Qu8mg5v7";
  437. const char *__doc_igl_cut_mesh_from_singularities = R"igl_Qu8mg5v7(// Given a mesh (V,F) and the integer mismatch of a cross field per edge
  438. // (MMatch), finds the cut_graph connecting the singularities (seams) and the
  439. // degree of the singularities singularity_index
  440. //
  441. // Input:
  442. // V #V by 3 list of mesh vertex positions
  443. // F #F by 3 list of faces
  444. // MMatch #F by 3 list of per corner integer mismatch
  445. // Outputs:
  446. // seams #F by 3 list of per corner booleans that denotes if an edge is a
  447. // seam or not
  448. //)igl_Qu8mg5v7";
  449. const char *__doc_igl_deform_skeleton = R"igl_Qu8mg5v7(// Deform a skeleton.
  450. //
  451. // Inputs:
  452. // C #C by 3 list of joint positions
  453. // BE #BE by 2 list of bone edge indices
  454. // vA #BE list of bone transformations
  455. // Outputs
  456. // CT #BE*2 by 3 list of deformed joint positions
  457. // BET #BE by 2 list of bone edge indices (maintains order)
  458. //)igl_Qu8mg5v7";
  459. const char *__doc_igl_directed_edge_orientations = R"igl_Qu8mg5v7(// Determine rotations that take each edge from the x-axis to its given rest
  460. // orientation.
  461. //
  462. // Inputs:
  463. // C #C by 3 list of edge vertex positions
  464. // E #E by 2 list of directed edges
  465. // Outputs:
  466. // Q #E list of quaternions
  467. //)igl_Qu8mg5v7";
  468. const char *__doc_igl_directed_edge_parents = R"igl_Qu8mg5v7(// Recover "parents" (preceeding edges) in a tree given just directed edges.
  469. //
  470. // Inputs:
  471. // E #E by 2 list of directed edges
  472. // Outputs:
  473. // P #E list of parent indices into E (-1) means root
  474. //)igl_Qu8mg5v7";
  475. const char *__doc_igl_doublearea = R"igl_Qu8mg5v7(// DOUBLEAREA computes twice the area for each input triangle[quad]
  476. //
  477. // Templates:
  478. // DerivedV derived type of eigen matrix for V (e.g. derived from
  479. // MatrixXd)
  480. // DerivedF derived type of eigen matrix for F (e.g. derived from
  481. // MatrixXi)
  482. // DeriveddblA derived type of eigen matrix for dblA (e.g. derived from
  483. // MatrixXd)
  484. // Inputs:
  485. // V #V by dim list of mesh vertex positions
  486. // F #F by simplex_size list of mesh faces (must be triangles or quads)
  487. // Outputs:
  488. // dblA #F list of triangle[quad] double areas (SIGNED only for 2D input)
  489. //
  490. // Known bug: For dim==3 complexity is O(#V + #F)!! Not just O(#F). This is a big deal
  491. // if you have 1million unreferenced vertices and 1 face)igl_Qu8mg5v7";
  492. const char *__doc_igl_doublearea_single = R"igl_Qu8mg5v7(// Single triangle in 2D!
  493. //
  494. // This should handle streams of corners not just single corners)igl_Qu8mg5v7";
  495. const char *__doc_igl_doublearea_quad = R"igl_Qu8mg5v7(// DOUBLEAREA_QUAD computes twice the area for each input quadrilateral
  496. //
  497. // Inputs:
  498. // V #V by dim list of mesh vertex positions
  499. // F #F by simplex_size list of mesh faces (must be quadrilaterals)
  500. // Outputs:
  501. // dblA #F list of quadrilateral double areas
  502. //)igl_Qu8mg5v7";
  503. const char *__doc_igl_dqs = R"igl_Qu8mg5v7(// Dual quaternion skinning
  504. //
  505. // Inputs:
  506. // V #V by 3 list of rest positions
  507. // W #W by #C list of weights
  508. // vQ #C list of rotation quaternions
  509. // vT #C list of translation vectors
  510. // Outputs:
  511. // U #V by 3 list of new positions)igl_Qu8mg5v7";
  512. const char *__doc_igl_edge_lengths = R"igl_Qu8mg5v7(// Constructs a list of lengths of edges opposite each index in a face
  513. // (triangle/tet) list
  514. //
  515. // Templates:
  516. // DerivedV derived from vertex positions matrix type: i.e. MatrixXd
  517. // DerivedF derived from face indices matrix type: i.e. MatrixXi
  518. // DerivedL derived from edge lengths matrix type: i.e. MatrixXd
  519. // Inputs:
  520. // V eigen matrix #V by 3
  521. // F #F by 2 list of mesh edges
  522. // or
  523. // F #F by 3 list of mesh faces (must be triangles)
  524. // or
  525. // T #T by 4 list of mesh elements (must be tets)
  526. // Outputs:
  527. // L #F by {1|3|6} list of edge lengths
  528. // for edges, column of lengths
  529. // for triangles, columns correspond to edges [1,2],[2,0],[0,1]
  530. // for tets, columns correspond to edges
  531. // [3 0],[3 1],[3 2],[1 2],[2 0],[0 1]
  532. //)igl_Qu8mg5v7";
  533. const char *__doc_igl_edge_topology = R"igl_Qu8mg5v7(// Initialize Edges and their topological relations (assumes an edge-manifold
  534. // mesh)
  535. //
  536. // Output:
  537. // EV : #Ex2, Stores the edge description as pair of indices to vertices
  538. // FE : #Fx3, Stores the Triangle-Edge relation
  539. // EF : #Ex2: Stores the Edge-Triangle relation
  540. //
  541. // TODO: This seems to be a inferior duplicate of edge_flaps.h:
  542. // - unused input parameter V
  543. // - roughly 2x slower than edge_flaps
  544. // - outputs less information: edge_flaps reveals corner opposite edge
  545. // - FE uses non-standard and ambiguous order: FE(f,c) is merely an edge
  546. // incident on corner c of face f. In contrast, edge_flaps's EMAP(f,c) reveals
  547. // the edge _opposite_ corner c of face f)igl_Qu8mg5v7";
  548. const char *__doc_igl_eigs = R"igl_Qu8mg5v7(See eigs for the documentation.)igl_Qu8mg5v7";
  549. const char *__doc_igl_embree_ambient_occlusion = R"igl_Qu8mg5v7(// Compute ambient occlusion per given point
  550. //
  551. // Inputs:
  552. // ei EmbreeIntersector containing (V,F)
  553. // P #P by 3 list of origin points
  554. // N #P by 3 list of origin normals
  555. // Outputs:
  556. // S #P list of ambient occlusion values between 1 (fully occluded) and
  557. // 0 (not occluded)
  558. //)igl_Qu8mg5v7";
  559. const char *__doc_igl_embree_line_mesh_intersection = R"igl_Qu8mg5v7(// Project the point cloud V_source onto the triangle mesh
  560. // V_target,F_target.
  561. // A ray is casted for every vertex in the direction specified by
  562. // N_source and its opposite.
  563. //
  564. // Input:
  565. // V_source: #Vx3 Vertices of the source mesh
  566. // N_source: #Vx3 Normals of the point cloud
  567. // V_target: #V2x3 Vertices of the target mesh
  568. // F_target: #F2x3 Faces of the target mesh
  569. //
  570. // Output:
  571. // #Vx3 matrix of baricentric coordinate. Each row corresponds to
  572. // a vertex of the projected mesh and it has the following format:
  573. // id b1 b2. id is the id of a face of the source mesh. b1 and b2 are
  574. // the barycentric coordinates wrt the first two edges of the triangle
  575. // To convert to standard global coordinates, see barycentric_to_global.h)igl_Qu8mg5v7";
  576. const char *__doc_igl_embree_reorient_facets_raycast = R"igl_Qu8mg5v7(// Orient each component (identified by C) of a mesh (V,F) using ambient
  577. // occlusion such that the front side is less occluded than back side, as
  578. // described in "A Simple Method for Correcting Facet Orientations in
  579. // Polygon Meshes Based on Ray Casting" [Takayama et al. 2014].
  580. //
  581. // Inputs:
  582. // V #V by 3 list of vertex positions
  583. // F #F by 3 list of triangle indices
  584. // rays_total Total number of rays that will be shot
  585. // rays_minimum Minimum number of rays that each patch should receive
  586. // facet_wise Decision made for each face independently, no use of patches
  587. // (i.e., each face is treated as a patch)
  588. // use_parity Use parity mode
  589. // is_verbose Verbose output to cout
  590. // Outputs:
  591. // I #F list of whether face has been flipped
  592. // C #F list of patch ID (output of bfs_orient > manifold patches))igl_Qu8mg5v7";
  593. const char *__doc_igl_find_cross_field_singularities = R"igl_Qu8mg5v7(// Inputs:
  594. // V #V by 3 eigen Matrix of mesh vertex 3D positions
  595. // F #F by 3 eigen Matrix of face (quad) indices
  596. // Handle_MMatch #F by 3 eigen Matrix containing the integer missmatch of the cross field
  597. // across all face edges
  598. // Output:
  599. // isSingularity #V by 1 boolean eigen Vector indicating the presence of a singularity on a vertex
  600. // singularityIndex #V by 1 integer eigen Vector containing the singularity indices
  601. //)igl_Qu8mg5v7";
  602. const char *__doc_igl_fit_rotations = R"igl_Qu8mg5v7(// Known issues: This seems to be implemented in Eigen/Geometry:
  603. // Eigen::umeyama
  604. //
  605. // FIT_ROTATIONS Given an input mesh and new positions find rotations for
  606. // every covariance matrix in a stack of covariance matrices
  607. //
  608. // Inputs:
  609. // S nr*dim by dim stack of covariance matrices
  610. // single_precision whether to use single precision (faster)
  611. // Outputs:
  612. // R dim by dim * nr list of rotations
  613. //)igl_Qu8mg5v7";
  614. const char *__doc_igl_fit_rotations_planar = R"igl_Qu8mg5v7(// FIT_ROTATIONS Given an input mesh and new positions find 2D rotations for
  615. // every vertex that best maps its one ring to the new one ring
  616. //
  617. // Inputs:
  618. // S nr*dim by dim stack of covariance matrices, third column and every
  619. // third row will be ignored
  620. // Outputs:
  621. // R dim by dim * nr list of rotations, third row and third column of each
  622. // rotation will just be identity
  623. //)igl_Qu8mg5v7";
  624. const char *__doc_igl_fit_rotations_SSE = R"igl_Qu8mg5v7(See fit_rotations_SSE for the documentation.)igl_Qu8mg5v7";
  625. const char *__doc_igl_floor = R"igl_Qu8mg5v7(// Floor a given matrix to nearest integers
  626. //
  627. // Inputs:
  628. // X m by n matrix of scalars
  629. // Outputs:
  630. // Y m by n matrix of floored integers)igl_Qu8mg5v7";
  631. const char *__doc_igl_forward_kinematics = R"igl_Qu8mg5v7(// Given a skeleton and a set of relative bone rotations compute absolute
  632. // rigid transformations for each bone.
  633. //
  634. // Inputs:
  635. // C #C by dim list of joint positions
  636. // BE #BE by 2 list of bone edge indices
  637. // P #BE list of parent indices into BE
  638. // dQ #BE list of relative rotations
  639. // dT #BE list of relative translations
  640. // Outputs:
  641. // vQ #BE list of absolute rotations
  642. // vT #BE list of absolute translations)igl_Qu8mg5v7";
  643. const char *__doc_igl_gaussian_curvature = R"igl_Qu8mg5v7(// Compute discrete local integral gaussian curvature (angle deficit, without
  644. // averaging by local area).
  645. //
  646. // Inputs:
  647. // V #V by 3 eigen Matrix of mesh vertex 3D positions
  648. // F #F by 3 eigen Matrix of face (triangle) indices
  649. // Output:
  650. // K #V by 1 eigen Matrix of discrete gaussian curvature values
  651. //)igl_Qu8mg5v7";
  652. const char *__doc_igl_get_seconds = R"igl_Qu8mg5v7(// Return the current time in seconds since program start
  653. //
  654. // Example:
  655. // const auto & tictoc = []()
  656. // {
  657. // static double t_start = igl::get_seconds();
  658. // double diff = igl::get_seconds()-t_start;
  659. // t_start += diff;
  660. // return diff;
  661. // };
  662. // tictoc();
  663. // ... // part 1
  664. // cout<<"part 1: "<<tictoc()<<endl;
  665. // ... // part 2
  666. // cout<<"part 2: "<<tictoc()<<endl;
  667. // ... // etc)igl_Qu8mg5v7";
  668. const char *__doc_igl_grad = R"igl_Qu8mg5v7(// Gradient of a scalar function defined on piecewise linear elements (mesh)
  669. // is constant on each triangle [tetrahedron] i,j,k:
  670. // grad(Xijk) = (Xj-Xi) * (Vi - Vk)^R90 / 2A + (Xk-Xi) * (Vj - Vi)^R90 / 2A
  671. // where Xi is the scalar value at vertex i, Vi is the 3D position of vertex
  672. // i, and A is the area of triangle (i,j,k). ^R90 represent a rotation of
  673. // 90 degrees
  674. //)igl_Qu8mg5v7";
  675. const char *__doc_igl_harmonic = R"igl_Qu8mg5v7(// Compute k-harmonic weight functions "coordinates".
  676. //
  677. //
  678. // Inputs:
  679. // V #V by dim vertex positions
  680. // F #F by simplex-size list of element indices
  681. // b #b boundary indices into V
  682. // bc #b by #W list of boundary values
  683. // k power of harmonic operation (1: harmonic, 2: biharmonic, etc)
  684. // Outputs:
  685. // W #V by #W list of weights
  686. //)igl_Qu8mg5v7";
  687. const char *__doc_igl_hsv_to_rgb = R"igl_Qu8mg5v7(// Convert RGB to HSV
  688. //
  689. // Inputs:
  690. // h hue value (degrees: [0,360])
  691. // s saturation value ([0,1])
  692. // v value value ([0,1])
  693. // Outputs:
  694. // r red value ([0,1])
  695. // g green value ([0,1])
  696. // b blue value ([0,1]))igl_Qu8mg5v7";
  697. const char *__doc_igl_internal_angles = R"igl_Qu8mg5v7(// Compute internal angles for a triangle mesh
  698. //
  699. // Inputs:
  700. // V #V by dim eigen Matrix of mesh vertex nD positions
  701. // F #F by poly-size eigen Matrix of face (triangle) indices
  702. // Output:
  703. // K #F by poly-size eigen Matrix of internal angles
  704. // for triangles, columns correspond to edges [1,2],[2,0],[0,1]
  705. //
  706. // Known Issues:
  707. // if poly-size ≠ 3 then dim must equal 3.)igl_Qu8mg5v7";
  708. const char *__doc_igl_internal_angles_using_squared_edge_lengths = R"igl_Qu8mg5v7(// Inputs:
  709. // L_sq #F by 3 list of squared edge lengths
  710. // Output:
  711. // K #F by poly-size eigen Matrix of internal angles
  712. // for triangles, columns correspond to edges [1,2],[2,0],[0,1]
  713. //
  714. // Note:
  715. // Usage of internal_angles_using_squared_edge_lengths is preferred to internal_angles_using_squared_edge_lengths)igl_Qu8mg5v7";
  716. const char *__doc_igl_internal_angles_using_edge_lengths = R"igl_Qu8mg5v7(// Inputs:
  717. // L #F by 3 list of edge lengths
  718. // Output:
  719. // K #F by poly-size eigen Matrix of internal angles
  720. // for triangles, columns correspond to edges [1,2],[2,0],[0,1]
  721. //
  722. // Note:
  723. // Usage of internal_angles_using_squared_edge_lengths is preferred to internal_angles_using_squared_edge_lengths
  724. // This function is deprecated and probably will be removed in future versions)igl_Qu8mg5v7";
  725. const char *__doc_igl_invert_diag = R"igl_Qu8mg5v7(// Templates:
  726. // T should be a eigen sparse matrix primitive type like int or double
  727. // Inputs:
  728. // X an m by n sparse matrix
  729. // Outputs:
  730. // Y an m by n sparse matrix)igl_Qu8mg5v7";
  731. const char *__doc_igl_is_irregular_vertex = R"igl_Qu8mg5v7(// Determine if a vertex is irregular, i.e. it has more than 6 (triangles)
  732. // or 4 (quads) incident edges. Vertices on the boundary are ignored.
  733. //
  734. // Inputs:
  735. // V #V by dim list of vertex positions
  736. // F #F by 3[4] list of triangle[quads] indices
  737. // Returns #V vector of bools revealing whether vertices are singular
  738. //)igl_Qu8mg5v7";
  739. const char *__doc_igl_jet = R"igl_Qu8mg5v7(// JET like MATLAB's jet
  740. //
  741. // Inputs:
  742. // m number of colors
  743. // Outputs:
  744. // J m by list of RGB colors between 0 and 1
  745. //
  746. //#ifndef IGL_NO_EIGEN
  747. // void jet(const int m, Eigen::MatrixXd & J);
  748. //#endif
  749. // Wrapper for directly computing [r,g,b] values for a given factor f between
  750. // 0 and 1
  751. //
  752. // Inputs:
  753. // f factor determining color value as if 0 was min and 1 was max
  754. // Outputs:
  755. // r red value
  756. // g green value
  757. // b blue value)igl_Qu8mg5v7";
  758. const char *__doc_igl_lbs_matrix = R"igl_Qu8mg5v7(// LBS_MATRIX Linear blend skinning can be expressed by V' = M * T where V' is
  759. // a #V by dim matrix of deformed vertex positions (one vertex per row), M is a
  760. // #V by (dim+1)*#T (composed of weights and rest positions) and T is a
  761. // #T*(dim+1) by dim matrix of #T stacked transposed transformation matrices.
  762. // See equations (1) and (2) in "Fast Automatic Skinning Transformations"
  763. // [Jacobson et al 2012]
  764. //
  765. // Inputs:
  766. // V #V by dim list of rest positions
  767. // W #V+ by #T list of weights
  768. // Outputs:
  769. // M #V by #T*(dim+1)
  770. //
  771. // In MATLAB:
  772. // kron(ones(1,size(W,2)),[V ones(size(V,1),1)]).*kron(W,ones(1,size(V,2)+1)))igl_Qu8mg5v7";
  773. const char *__doc_igl_lbs_matrix_column = R"igl_Qu8mg5v7(// LBS_MATRIX construct a matrix that when multiplied against a column of
  774. // affine transformation entries computes new coordinates of the vertices
  775. //
  776. // I'm not sure it makes since that the result is stored as a sparse matrix.
  777. // The number of non-zeros per row *is* dependent on the number of mesh
  778. // vertices and handles.
  779. //
  780. // Inputs:
  781. // V #V by dim list of vertex rest positions
  782. // W #V by #handles list of correspondence weights
  783. // Output:
  784. // M #V * dim by #handles * dim * (dim+1) matrix such that
  785. // new_V(:) = LBS(V,W,A) = reshape(M * A,size(V)), where A is a column
  786. // vectors formed by the entries in each handle's dim by dim+1
  787. // transformation matrix. Specifcally, A =
  788. // reshape(permute(Astack,[3 1 2]),n*dim*(dim+1),1)
  789. // or A = [Lxx;Lyx;Lxy;Lyy;tx;ty], and likewise for other dim
  790. // if Astack(:,:,i) is the dim by (dim+1) transformation at handle i)igl_Qu8mg5v7";
  791. const char *__doc_igl_local_basis = R"igl_Qu8mg5v7(// Compute a local orthogonal reference system for each triangle in the given mesh
  792. // Templates:
  793. // DerivedV derived from vertex positions matrix type: i.e. MatrixXd
  794. // DerivedF derived from face indices matrix type: i.e. MatrixXi
  795. // Inputs:
  796. // V eigen matrix #V by 3
  797. // F #F by 3 list of mesh faces (must be triangles)
  798. // Outputs:
  799. // B1 eigen matrix #F by 3, each vector is tangent to the triangle
  800. // B2 eigen matrix #F by 3, each vector is tangent to the triangle and perpendicular to B1
  801. // B3 eigen matrix #F by 3, normal of the triangle
  802. //
  803. // See also: adjacency_matrix)igl_Qu8mg5v7";
  804. const char *__doc_igl_lscm = R"igl_Qu8mg5v7(// Compute a Least-squares conformal map parametrization (equivalently
  805. // derived in "Intrinsic Parameterizations of Surface Meshes" [Desbrun et al.
  806. // 2002] and "Least Squares Conformal Maps for Automatic Texture Atlas
  807. // Generation" [Lévy et al. 2002]), though this implementation follows the
  808. // derivation in: "Spectral Conformal Parameterization" [Mullen et al. 2008]
  809. // (note, this does **not** implement the Eigen-decomposition based method in
  810. // [Mullen et al. 2008], which is not equivalent). Input should be a manifold
  811. // mesh (also no unreferenced vertices) and "boundary" (fixed vertices) `b`
  812. // should contain at least two vertices per connected component.
  813. //
  814. // Inputs:
  815. // V #V by 3 list of mesh vertex positions
  816. // F #F by 3 list of mesh faces (must be triangles)
  817. // b #b boundary indices into V
  818. // bc #b by 3 list of boundary values
  819. // Outputs:
  820. // UV #V by 2 list of 2D mesh vertex positions in UV space
  821. // Returns true only on solver success.
  822. //)igl_Qu8mg5v7";
  823. const char *__doc_igl_map_vertices_to_circle = R"igl_Qu8mg5v7(// Map the vertices whose indices are in a given boundary loop (bnd) on the
  824. // unit circle with spacing proportional to the original boundary edge
  825. // lengths.
  826. //
  827. // Inputs:
  828. // V #V by dim list of mesh vertex positions
  829. // b #W list of vertex ids
  830. // Outputs:
  831. // UV #W by 2 list of 2D position on the unit circle for the vertices in b)igl_Qu8mg5v7";
  832. const char *__doc_igl_massmatrix = R"igl_Qu8mg5v7(// Constructs the mass (area) matrix for a given mesh (V,F).
  833. //
  834. // Templates:
  835. // DerivedV derived type of eigen matrix for V (e.g. derived from
  836. // MatrixXd)
  837. // DerivedF derived type of eigen matrix for F (e.g. derived from
  838. // MatrixXi)
  839. // Scalar scalar type for eigen sparse matrix (e.g. double)
  840. // Inputs:
  841. // V #V by dim list of mesh vertex positions
  842. // F #F by simplex_size list of mesh faces (must be triangles)
  843. // type one of the following ints:
  844. // MASSMATRIX_TYPE_BARYCENTRIC barycentric
  845. // MASSMATRIX_TYPE_VORONOI voronoi-hybrid {default}
  846. // MASSMATRIX_TYPE_FULL full {not implemented}
  847. // Outputs:
  848. // M #V by #V mass matrix
  849. //
  850. // See also: adjacency_matrix
  851. //)igl_Qu8mg5v7";
  852. const char *__doc_igl_min_quad_with_fixed_precompute = R"igl_Qu8mg5v7(// Known Bugs: rows of Aeq **should probably** be linearly independent.
  853. // During precomputation, the rows of a Aeq are checked via QR. But in case
  854. // they're not then resulting probably will no longer be sparse: it will be
  855. // slow.
  856. //
  857. // MIN_QUAD_WITH_FIXED Minimize a quadratic energy of the form
  858. //
  859. // trace( 0.5*Z'*A*Z + Z'*B + constant )
  860. //
  861. // subject to
  862. //
  863. // Z(known,:) = Y, and
  864. // Aeq*Z = Beq
  865. //
  866. // Templates:
  867. // T should be a eigen matrix primitive type like int or double
  868. // Inputs:
  869. // A n by n matrix of quadratic coefficients
  870. // known list of indices to known rows in Z
  871. // Y list of fixed values corresponding to known rows in Z
  872. // Aeq m by n list of linear equality constraint coefficients
  873. // pd flag specifying whether A(unknown,unknown) is positive definite
  874. // Outputs:
  875. // data factorization struct with all necessary information to solve
  876. // using min_quad_with_fixed_solve
  877. // Returns true on success, false on error
  878. //
  879. // Benchmark: For a harmonic solve on a mesh with 325K facets, matlab 2.2
  880. // secs, igl/min_quad_with_fixed.h 7.1 secs
  881. //)igl_Qu8mg5v7";
  882. const char *__doc_igl_min_quad_with_fixed_solve = R"igl_Qu8mg5v7(// Solves a system previously factored using min_quad_with_fixed_precompute
  883. //
  884. // Template:
  885. // T type of sparse matrix (e.g. double)
  886. // DerivedY type of Y (e.g. derived from VectorXd or MatrixXd)
  887. // DerivedZ type of Z (e.g. derived from VectorXd or MatrixXd)
  888. // Inputs:
  889. // data factorization struct with all necessary precomputation to solve
  890. // B n by k column of linear coefficients
  891. // Y b by k list of constant fixed values
  892. // Beq m by k list of linear equality constraint constant values
  893. // Outputs:
  894. // Z n by k solution
  895. // sol #unknowns+#lagrange by k solution to linear system
  896. // Returns true on success, false on error)igl_Qu8mg5v7";
  897. const char *__doc_igl_min_quad_with_fixed = R"igl_Qu8mg5v7(See min_quad_with_fixed for the documentation.)igl_Qu8mg5v7";
  898. const char *__doc_igl_n_polyvector = R"igl_Qu8mg5v7(// Inputs:
  899. // v0, v1 the two #3 by 1 vectors
  900. // normalized boolean, if false, then the vectors are normalized prior to the calculation
  901. // Output:
  902. // 3 by 3 rotation matrix that takes v0 to v1
  903. //)igl_Qu8mg5v7";
  904. const char *__doc_igl_normalize_row_lengths = R"igl_Qu8mg5v7(// Obsolete: just use A.rowwise().normalize() or B=A.rowwise().normalized();
  905. //
  906. // Normalize the rows in A so that their lengths are each 1 and place the new
  907. // entries in B
  908. // Inputs:
  909. // A #rows by k input matrix
  910. // Outputs:
  911. // B #rows by k input matrix, can be the same as A)igl_Qu8mg5v7";
  912. const char *__doc_igl_normalize_row_sums = R"igl_Qu8mg5v7(// Normalize the rows in A so that their sums are each 1 and place the new
  913. // entries in B
  914. // Inputs:
  915. // A #rows by k input matrix
  916. // Outputs:
  917. // B #rows by k input matrix, can be the same as A
  918. //
  919. // Note: This is just calling an Eigen one-liner.)igl_Qu8mg5v7";
  920. const char *__doc_igl_parula = R"igl_Qu8mg5v7(// PARULA like MATLAB's parula
  921. //
  922. // Inputs:
  923. // m number of colors
  924. // Outputs:
  925. // J m by list of RGB colors between 0 and 1
  926. //
  927. // Wrapper for directly computing [r,g,b] values for a given factor f between
  928. // 0 and 1
  929. //
  930. // Inputs:
  931. // f factor determining color value as if 0 was min and 1 was max
  932. // Outputs:
  933. // r red value
  934. // g green value
  935. // b blue value)igl_Qu8mg5v7";
  936. const char *__doc_igl_per_corner_normals = R"igl_Qu8mg5v7(// Compute vertex normals via vertex position list, face list
  937. // Inputs:
  938. // V #V by 3 eigen Matrix of mesh vertex 3D positions
  939. // F #F by 3 eigne Matrix of face (triangle) indices
  940. // corner_threshold threshold in degrees on sharp angles
  941. // Output:
  942. // CN #F*3 by 3 eigen Matrix of mesh vertex 3D normals, where the normal
  943. // for corner F(i,j) is at CN(i*3+j,:) )igl_Qu8mg5v7";
  944. const char *__doc_igl_per_edge_normals = R"igl_Qu8mg5v7(// Compute face normals via vertex position list, face list
  945. // Inputs:
  946. // V #V by 3 eigen Matrix of mesh vertex 3D positions
  947. // F #F by 3 eigen Matrix of face (triangle) indices
  948. // weight weighting type
  949. // FN #F by 3 matrix of 3D face normals per face
  950. // Output:
  951. // N #2 by 3 matrix of mesh edge 3D normals per row
  952. // E #E by 2 matrix of edge indices per row
  953. // EMAP #E by 1 matrix of indices from all edges to E
  954. //)igl_Qu8mg5v7";
  955. const char *__doc_igl_per_face_normals = R"igl_Qu8mg5v7(// Compute face normals via vertex position list, face list
  956. // Inputs:
  957. // V #V by 3 eigen Matrix of mesh vertex 3D positions
  958. // F #F by 3 eigen Matrix of face (triangle) indices
  959. // Z 3 vector normal given to faces with degenerate normal.
  960. // Output:
  961. // N #F by 3 eigen Matrix of mesh face (triangle) 3D normals
  962. //
  963. // Example:
  964. // // Give degenerate faces (1/3,1/3,1/3)^0.5
  965. // per_face_normals(V,F,Vector3d(1,1,1).normalized(),N);)igl_Qu8mg5v7";
  966. const char *__doc_igl_per_face_normals_stable = R"igl_Qu8mg5v7(// Special version where order of face indices is guaranteed not to effect
  967. // output.)igl_Qu8mg5v7";
  968. const char *__doc_igl_per_vertex_normals = R"igl_Qu8mg5v7(// Compute vertex normals via vertex position list, face list
  969. // Inputs:
  970. // V #V by 3 eigen Matrix of mesh vertex 3D positions
  971. // F #F by 3 eigne Matrix of face (triangle) indices
  972. // weighting Weighting type
  973. // Output:
  974. // N #V by 3 eigen Matrix of mesh vertex 3D normals)igl_Qu8mg5v7";
  975. const char *__doc_igl_planarize_quad_mesh = R"igl_Qu8mg5v7(// Inputs:
  976. // Vin #V by 3 eigen Matrix of mesh vertex 3D positions
  977. // F #F by 4 eigen Matrix of face (quad) indices
  978. // maxIter maximum numbers of iterations
  979. // threshold minimum allowed threshold for non-planarity
  980. // Output:
  981. // Vout #V by 3 eigen Matrix of planar mesh vertex 3D positions
  982. //)igl_Qu8mg5v7";
  983. const char *__doc_igl_png_readPNG = R"igl_Qu8mg5v7(// Read an image from a .png file into 4 memory buffers
  984. //
  985. // Input:
  986. // png_file path to .png file
  987. // Output:
  988. // R,G,B,A texture channels
  989. // Returns true on success, false on failure
  990. //)igl_Qu8mg5v7";
  991. const char *__doc_igl_png_writePNG = R"igl_Qu8mg5v7(// Writes an image to a png file
  992. //
  993. // Input:
  994. // R,G,B,A texture channels
  995. // Output:
  996. // png_file path to .png file
  997. // Returns true on success, false on failure
  998. //)igl_Qu8mg5v7";
  999. const char *__doc_igl_point_mesh_squared_distance = R"igl_Qu8mg5v7(// Compute distances from a set of points P to a triangle mesh (V,F)
  1000. //
  1001. // Inputs:
  1002. // P #P by 3 list of query point positions
  1003. // V #V by 3 list of vertex positions
  1004. // Ele #Ele by (3|2|1) list of (triangle|edge|point) indices
  1005. // Outputs:
  1006. // sqrD #P list of smallest squared distances
  1007. // I #P list of primitive indices corresponding to smallest distances
  1008. // C #P by 3 list of closest points
  1009. //
  1010. // Known bugs: This only computes distances to given primitivess. So
  1011. // unreferenced vertices are ignored. However, degenerate primitives are
  1012. // handled correctly: triangle [1 2 2] is treated as a segment [1 2], and
  1013. // triangle [1 1 1] is treated as a point. So one _could_ add extra
  1014. // combinatorially degenerate rows to Ele for all unreferenced vertices to
  1015. // also get distances to points.)igl_Qu8mg5v7";
  1016. const char *__doc_igl_polar_svd = R"igl_Qu8mg5v7(// Computes the polar decomposition (R,T) of a matrix A using SVD singular
  1017. // value decomposition
  1018. //
  1019. // Inputs:
  1020. // A 3 by 3 matrix to be decomposed
  1021. // Outputs:
  1022. // R 3 by 3 rotation matrix part of decomposition (**always rotataion**)
  1023. // T 3 by 3 stretch matrix part of decomposition
  1024. // U 3 by 3 left-singular vectors
  1025. // S 3 by 1 singular values
  1026. // V 3 by 3 right-singular vectors
  1027. //
  1028. //)igl_Qu8mg5v7";
  1029. const char *__doc_igl_principal_curvature = R"igl_Qu8mg5v7(// Compute the principal curvature directions and magnitude of the given triangle mesh
  1030. // DerivedV derived from vertex positions matrix type: i.e. MatrixXd
  1031. // DerivedF derived from face indices matrix type: i.e. MatrixXi
  1032. // Inputs:
  1033. // V eigen matrix #V by 3
  1034. // F #F by 3 list of mesh faces (must be triangles)
  1035. // radius controls the size of the neighbourhood used, 1 = average edge lenght
  1036. //
  1037. // Outputs:
  1038. // PD1 #V by 3 maximal curvature direction for each vertex.
  1039. // PD2 #V by 3 minimal curvature direction for each vertex.
  1040. // PV1 #V by 1 maximal curvature value for each vertex.
  1041. // PV2 #V by 1 minimal curvature value for each vertex.
  1042. //
  1043. // See also: average_onto_faces, average_onto_vertices
  1044. //
  1045. // This function has been developed by: Nikolas De Giorgis, Luigi Rocca and Enrico Puppo.
  1046. // The algorithm is based on:
  1047. // Efficient Multi-scale Curvature and Crease Estimation
  1048. // Daniele Panozzo, Enrico Puppo, Luigi Rocca
  1049. // GraVisMa, 2010)igl_Qu8mg5v7";
  1050. const char *__doc_igl_quad_planarity = R"igl_Qu8mg5v7(// Compute planarity of the faces of a quad mesh
  1051. // Inputs:
  1052. // V #V by 3 eigen Matrix of mesh vertex 3D positions
  1053. // F #F by 4 eigen Matrix of face (quad) indices
  1054. // Output:
  1055. // P #F by 1 eigen Matrix of mesh face (quad) planarities
  1056. //)igl_Qu8mg5v7";
  1057. const char *__doc_igl_randperm = R"igl_Qu8mg5v7(// Like matlab's randperm(n) but minus 1
  1058. //
  1059. // Inputs:
  1060. // n number of elements
  1061. // Outputs:
  1062. // I n list of rand permutation of 0:n-1)igl_Qu8mg5v7";
  1063. const char *__doc_igl_readDMAT = R"igl_Qu8mg5v7(See readDMAT for the documentation.)igl_Qu8mg5v7";
  1064. const char *__doc_igl_readMESH = R"igl_Qu8mg5v7(// load a tetrahedral volume mesh from a .mesh file
  1065. //
  1066. // Templates:
  1067. // Scalar type for positions and vectors (will be read as double and cast
  1068. // to Scalar)
  1069. // Index type for indices (will be read as int and cast to Index)
  1070. // Input:
  1071. // mesh_file_name path of .mesh file
  1072. // Outputs:
  1073. // V double matrix of vertex positions #V by 3
  1074. // T #T list of tet indices into vertex positions
  1075. // F #F list of face indices into vertex positions
  1076. //
  1077. // Known bugs: Holes and regions are not supported)igl_Qu8mg5v7";
  1078. const char *__doc_igl_readOBJ = R"igl_Qu8mg5v7(// Read a mesh from an ascii obj file, filling in vertex positions, normals
  1079. // and texture coordinates. Mesh may have faces of any number of degree
  1080. //
  1081. // Templates:
  1082. // Scalar type for positions and vectors (will be read as double and cast
  1083. // to Scalar)
  1084. // Index type for indices (will be read as int and cast to Index)
  1085. // Inputs:
  1086. // str path to .obj file
  1087. // Outputs:
  1088. // V double matrix of vertex positions #V by 3
  1089. // TC double matrix of texture coordinats #TC by 2
  1090. // N double matrix of corner normals #N by 3
  1091. // F #F list of face indices into vertex positions
  1092. // FTC #F list of face indices into vertex texture coordinates
  1093. // FN #F list of face indices into vertex normals
  1094. // Returns true on success, false on errors)igl_Qu8mg5v7";
  1095. const char *__doc_igl_readOFF = R"igl_Qu8mg5v7(// Read a mesh from an ascii OFF file, filling in vertex positions, normals
  1096. // and texture coordinates. Mesh may have faces of any number of degree
  1097. //
  1098. // Templates:
  1099. // Scalar type for positions and vectors (will be read as double and cast
  1100. // to Scalar)
  1101. // Index type for indices (will be read as int and cast to Index)
  1102. // Inputs:
  1103. // str path to .obj file
  1104. // Outputs:
  1105. // V double matrix of vertex positions #V by 3
  1106. // F #F list of face indices into vertex positions
  1107. // N list of vertex normals #V by 3
  1108. // C list of rgb color values per vertex #V by 3
  1109. // Returns true on success, false on errors)igl_Qu8mg5v7";
  1110. const char *__doc_igl_readTGF = R"igl_Qu8mg5v7(// READTGF
  1111. //
  1112. // [V,E,P,BE,CE,PE] = readTGF(filename)
  1113. //
  1114. // Read a graph from a .tgf file
  1115. //
  1116. // Input:
  1117. // filename .tgf file name
  1118. // Ouput:
  1119. // V # vertices by 3 list of vertex positions
  1120. // E # edges by 2 list of edge indices
  1121. // P # point-handles list of point handle indices
  1122. // BE # bone-edges by 2 list of bone-edge indices
  1123. // CE # cage-edges by 2 list of cage-edge indices
  1124. // PE # pseudo-edges by 2 list of pseudo-edge indices
  1125. //
  1126. // Assumes that graph vertices are 3 dimensional)igl_Qu8mg5v7";
  1127. const char *__doc_igl_read_triangle_mesh = R"igl_Qu8mg5v7(// read mesh from an ascii file with automatic detection of file format.
  1128. // supported: obj, off, stl, wrl, ply, mesh)
  1129. //
  1130. // Templates:
  1131. // Scalar type for positions and vectors (will be read as double and cast
  1132. // to Scalar)
  1133. // Index type for indices (will be read as int and cast to Index)
  1134. // Inputs:
  1135. // str path to file
  1136. // Outputs:
  1137. // V eigen double matrix #V by 3
  1138. // F eigen int matrix #F by 3
  1139. // Returns true iff success)igl_Qu8mg5v7";
  1140. const char *__doc_igl_remove_duplicate_vertices = R"igl_Qu8mg5v7(// REMOVE_DUPLICATE_VERTICES Remove duplicate vertices upto a uniqueness
  1141. // tolerance (epsilon)
  1142. //
  1143. // Inputs:
  1144. // V #V by dim list of vertex positions
  1145. // epsilon uniqueness tolerance (significant digit), can probably think of
  1146. // this as a tolerance on L1 distance
  1147. // Outputs:
  1148. // SV #SV by dim new list of vertex positions
  1149. // SVI #V by 1 list of indices so SV = V(SVI,:)
  1150. // SVJ #SV by 1 list of indices so V = SV(SVJ,:)
  1151. //
  1152. // Example:
  1153. // % Mesh in (V,F)
  1154. // [SV,SVI,SVJ] = remove_duplicate_vertices(V,1e-7);
  1155. // % remap faces
  1156. // SF = SVJ(F);
  1157. //)igl_Qu8mg5v7";
  1158. const char *__doc_igl_rotate_vectors = R"igl_Qu8mg5v7(// Rotate the vectors V by A radiants on the tangent plane spanned by B1 and
  1159. // B2
  1160. //
  1161. // Inputs:
  1162. // V #V by 3 eigen Matrix of vectors
  1163. // A #V eigen vector of rotation angles or a single angle to be applied
  1164. // to all vectors
  1165. // B1 #V by 3 eigen Matrix of base vector 1
  1166. // B2 #V by 3 eigen Matrix of base vector 2
  1167. //
  1168. // Output:
  1169. // Returns the rotated vectors
  1170. //)igl_Qu8mg5v7";
  1171. const char *__doc_igl_setdiff = R"igl_Qu8mg5v7(// Set difference of elements of matrices
  1172. //
  1173. // Inputs:
  1174. // A m-long vector of indices
  1175. // B n-long vector of indices
  1176. // Outputs:
  1177. // C (k<=m)-long vector of unique elements appearing in A but not in B
  1178. // IA (k<=m)-long list of indices into A so that C = A(IA)
  1179. //)igl_Qu8mg5v7";
  1180. const char *__doc_igl_signed_distance = R"igl_Qu8mg5v7(// Computes signed distance to a mesh
  1181. //
  1182. // Inputs:
  1183. // P #P by 3 list of query point positions
  1184. // V #V by 3 list of vertex positions
  1185. // F #F by ss list of triangle indices, ss should be 3 unless sign_type ==
  1186. // SIGNED_DISTANCE_TYPE_UNSIGNED
  1187. // sign_type method for computing distance _sign_ S
  1188. // Outputs:
  1189. // S #P list of smallest signed distances
  1190. // I #P list of facet indices corresponding to smallest distances
  1191. // C #P by 3 list of closest points
  1192. // N #P by 3 list of closest normals (only set if
  1193. // sign_type=SIGNED_DISTANCE_TYPE_PSEUDONORMAL)
  1194. //
  1195. // Known bugs: This only computes distances to triangles. So unreferenced
  1196. // vertices and degenerate triangles are ignored.)igl_Qu8mg5v7";
  1197. const char *__doc_igl_signed_distance_pseudonormal = R"igl_Qu8mg5v7(// Computes signed distance to mesh
  1198. //
  1199. // Inputs:
  1200. // tree AABB acceleration tree (see AABB.h)
  1201. // F #F by 3 list of triangle indices
  1202. // FN #F by 3 list of triangle normals
  1203. // VN #V by 3 list of vertex normals (ANGLE WEIGHTING)
  1204. // EN #E by 3 list of edge normals (UNIFORM WEIGHTING)
  1205. // EMAP #F*3 mapping edges in F to E
  1206. // q Query point
  1207. // Returns signed distance to mesh
  1208. //)igl_Qu8mg5v7";
  1209. const char *__doc_igl_signed_distance_winding_number = R"igl_Qu8mg5v7(// Inputs:
  1210. // tree AABB acceleration tree (see cgal/point_mesh_squared_distance.h)
  1211. // hier Winding number evaluation hierarchy
  1212. // q Query point
  1213. // Returns signed distance to mesh)igl_Qu8mg5v7";
  1214. const char *__doc_igl_slice = R"igl_Qu8mg5v7(// Act like the matlab X(row_indices,col_indices) operator, where
  1215. // row_indices, col_indices are non-negative integer indices.
  1216. //
  1217. // Inputs:
  1218. // X m by n matrix
  1219. // R list of row indices
  1220. // C list of column indices
  1221. // Output:
  1222. // Y #R by #C matrix
  1223. //
  1224. // See also: slice_mask)igl_Qu8mg5v7";
  1225. const char *__doc_igl_slice_into = R"igl_Qu8mg5v7(// Act like the matlab Y(row_indices,col_indices) = X
  1226. //
  1227. // Inputs:
  1228. // X xm by xn rhs matrix
  1229. // R list of row indices
  1230. // C list of column indices
  1231. // Y ym by yn lhs matrix
  1232. // Output:
  1233. // Y ym by yn lhs matrix, same as input but Y(R,C) = X)igl_Qu8mg5v7";
  1234. const char *__doc_igl_slice_mask = R"igl_Qu8mg5v7(// Act like the matlab X(row_mask,col_mask) operator, where
  1235. // row_mask, col_mask are non-negative integer indices.
  1236. //
  1237. // Inputs:
  1238. // X m by n matrix
  1239. // R m list of row bools
  1240. // C n list of column bools
  1241. // Output:
  1242. // Y #trues-in-R by #trues-in-C matrix
  1243. //
  1244. // See also: slice_mask)igl_Qu8mg5v7";
  1245. const char *__doc_igl_slice_tets = R"igl_Qu8mg5v7(// SLICE_TETS Slice through a tet mesh (V,T) along a given plane (via its
  1246. // implicit equation).
  1247. //
  1248. // Inputs:
  1249. // V #V by 3 list of tet mesh vertices
  1250. // T #T by 4 list of tet indices into V
  1251. // plane list of 4 coefficients in the plane equation: [x y z 1]'*plane = 0
  1252. // Optional:
  1253. // 'Manifold' followed by whether to stitch together triangles into a
  1254. // manifold mesh {true}: results in more compact U but slightly slower.
  1255. // Outputs:
  1256. // U #U by 3 list of triangle mesh vertices along slice
  1257. // G #G by 3 list of triangles indices into U
  1258. // J #G list of indices into T revealing from which tet each faces comes
  1259. // BC #U by #V list of barycentric coordinates (or more generally: linear
  1260. // interpolation coordinates) so that U = BC*V
  1261. // )igl_Qu8mg5v7";
  1262. const char *__doc_igl_sortrows = R"igl_Qu8mg5v7(// Act like matlab's [Y,I] = sortrows(X)
  1263. //
  1264. // Templates:
  1265. // DerivedX derived scalar type, e.g. MatrixXi or MatrixXd
  1266. // DerivedI derived integer type, e.g. MatrixXi
  1267. // Inputs:
  1268. // X m by n matrix whose entries are to be sorted
  1269. // ascending sort ascending (true, matlab default) or descending (false)
  1270. // Outputs:
  1271. // Y m by n matrix whose entries are sorted (**should not** be same
  1272. // reference as X)
  1273. // I m list of indices so that
  1274. // Y = X(I,:);)igl_Qu8mg5v7";
  1275. const char *__doc_igl_streamlines_init = R"igl_Qu8mg5v7(// Given a mesh and a field the function computes the /data/ necessary for tracing the field'
  1276. // streamlines, and creates the initial /state/ for the tracing.
  1277. // Inputs:
  1278. // V #V by 3 list of mesh vertex coordinates
  1279. // F #F by 3 list of mesh faces
  1280. // temp_field #F by 3n list of the 3D coordinates of the per-face vectors
  1281. // (n-degrees stacked horizontally for each triangle)
  1282. // treat_as_symmetric
  1283. // if true, adds n symmetry directions to the field (N = 2n). Else N = n
  1284. // percentage [0-1] percentage of faces sampled
  1285. // Outputs:
  1286. // data struct containing topology information of the mesh and field
  1287. // state struct containing the state of the tracing)igl_Qu8mg5v7";
  1288. const char *__doc_igl_streamlines_next = R"igl_Qu8mg5v7(// The function computes the next state for each point in the sample
  1289. // V #V by 3 list of mesh vertex coordinates
  1290. // F #F by 3 list of mesh faces
  1291. // data struct containing topology information
  1292. // state struct containing the state of the tracing)igl_Qu8mg5v7";
  1293. const char *__doc_igl_triangle_triangle_adjacency = R"igl_Qu8mg5v7(// Constructs the triangle-triangle adjacency matrix for a given
  1294. // mesh (V,F).
  1295. //
  1296. // Templates:
  1297. // Scalar derived type of eigen matrix for V (e.g. derived from
  1298. // MatrixXd)
  1299. // Index derived type of eigen matrix for F (e.g. derived from
  1300. // MatrixXi)
  1301. // Inputs:
  1302. // F #F by simplex_size list of mesh faces (must be triangles)
  1303. // Outputs:
  1304. // TT #F by #3 adjacent matrix, the element i,j is the id of the triangle adjacent to the j edge of triangle i
  1305. // TTi #F by #3 adjacent matrix, the element i,j is the id of edge of the triangle TT(i,j) that is adjacent with triangle i
  1306. // NOTE: the first edge of a triangle is [0,1] the second [1,2] and the third [2,3].
  1307. // this convention is DIFFERENT from cotmatrix_entries.h
  1308. // Known bug: this should not need to take V as input.)igl_Qu8mg5v7";
  1309. const char *__doc_igl_triangle_triangle_adjacency_preprocess = R"igl_Qu8mg5v7(// Preprocessing)igl_Qu8mg5v7";
  1310. const char *__doc_igl_triangle_triangle_adjacency_extractTT = R"igl_Qu8mg5v7(// Extract the face adjacencies)igl_Qu8mg5v7";
  1311. const char *__doc_igl_triangle_triangle_adjacency_extractTTi = R"igl_Qu8mg5v7(// Extract the face adjacencies indices (needed for fast traversal))igl_Qu8mg5v7";
  1312. const char *__doc_igl_triangle_triangulate = R"igl_Qu8mg5v7(// Triangulate the interior of a polygon using the triangle library.
  1313. //
  1314. // Inputs:
  1315. // V #V by 2 list of 2D vertex positions
  1316. // E #E by 2 list of vertex ids forming unoriented edges of the boundary of the polygon
  1317. // H #H by 2 coordinates of points contained inside holes of the polygon
  1318. // flags string of options pass to triangle (see triangle documentation)
  1319. // Outputs:
  1320. // V2 #V2 by 2 coordinates of the vertives of the generated triangulation
  1321. // F2 #F2 by 3 list of indices forming the faces of the generated triangulation
  1322. //)igl_Qu8mg5v7";
  1323. const char *__doc_igl_unique = R"igl_Qu8mg5v7(// Act like matlab's [C,IA,IC] = unique(X)
  1324. //
  1325. // Templates:
  1326. // T comparable type T
  1327. // Inputs:
  1328. // A #A vector of type T
  1329. // Outputs:
  1330. // C #C vector of unique entries in A
  1331. // IA #C index vector so that C = A(IA);
  1332. // IC #A index vector so that A = C(IC);)igl_Qu8mg5v7";
  1333. const char *__doc_igl_unique_rows = R"igl_Qu8mg5v7(// Act like matlab's [C,IA,IC] = unique(X,'rows')
  1334. //
  1335. // Templates:
  1336. // DerivedA derived scalar type, e.g. MatrixXi or MatrixXd
  1337. // DerivedIA derived integer type, e.g. MatrixXi
  1338. // DerivedIC derived integer type, e.g. MatrixXi
  1339. // Inputs:
  1340. // A m by n matrix whose entries are to unique'd according to rows
  1341. // Outputs:
  1342. // C #C vector of unique rows in A
  1343. // IA #C index vector so that C = A(IA,:);
  1344. // IC #A index vector so that A = C(IC,:);)igl_Qu8mg5v7";
  1345. const char *__doc_igl_unproject_onto_mesh = R"igl_Qu8mg5v7(// Unproject a screen location (using current opengl viewport, projection, and
  1346. // model view) to a 3D position _onto_ a given mesh, if the ray through the
  1347. // given screen location (x,y) _hits_ the mesh.
  1348. //
  1349. // Inputs:
  1350. // pos screen space coordinates
  1351. // model model matrix
  1352. // proj projection matrix
  1353. // viewport vieweport vector
  1354. // V #V by 3 list of mesh vertex positions
  1355. // F #F by 3 list of mesh triangle indices into V
  1356. // Outputs:
  1357. // fid id of the first face hit
  1358. // bc barycentric coordinates of hit
  1359. // Returns true if there's a hit)igl_Qu8mg5v7";
  1360. const char *__doc_igl_upsample = R"igl_Qu8mg5v7(// Subdivide without moving vertices: Given the triangle mesh [V, F],
  1361. // where n_verts = V.rows(), computes newV and a sparse matrix S s.t.
  1362. // [newV, newF] is the subdivided mesh where newV = S*V.
  1363. //
  1364. // Inputs:
  1365. // n_verts an integer (number of mesh vertices)
  1366. // F an m by 3 matrix of integers of triangle faces
  1367. // Outputs:
  1368. // S a sparse matrix (will become the subdivision matrix)
  1369. // newF a matrix containing the new faces)igl_Qu8mg5v7";
  1370. const char *__doc_igl_winding_number = R"igl_Qu8mg5v7(// WINDING_NUMBER Compute the sum of solid angles of a triangle/tetrahedron
  1371. // described by points (vectors) V
  1372. //
  1373. // Templates:
  1374. // dim dimension of input
  1375. // Inputs:
  1376. // V n by 3 list of vertex positions
  1377. // F #F by 3 list of triangle indices, minimum index is 0
  1378. // O no by 3 list of origin positions
  1379. // Outputs:
  1380. // S no by 1 list of winding numbers
  1381. //
  1382. // 3d)igl_Qu8mg5v7";
  1383. const char *__doc_igl_winding_number_3 = R"igl_Qu8mg5v7(// Inputs:
  1384. // V pointer to array containing #V by 3 vertex positions along rows,
  1385. // given in column major order
  1386. // n number of mesh vertices
  1387. // F pointer to array containing #F by 3 face indices along rows,
  1388. // given in column major order
  1389. // m number of faces
  1390. // O pointer to array containing #O by 3 query positions along rows,
  1391. // given in column major order
  1392. // no number of origins
  1393. // Outputs:
  1394. // S no by 1 list of winding numbers)igl_Qu8mg5v7";
  1395. const char *__doc_igl_winding_number_2 = R"igl_Qu8mg5v7(//// Only one evaluation origin
  1396. //template <typename DerivedF>
  1397. //IGL_INLINE void winding_number_3(
  1398. // const double * V,
  1399. // const int n,
  1400. // const DerivedF * F,
  1401. // const int m,
  1402. // const double * O,
  1403. // double * S);
  1404. // 2d)igl_Qu8mg5v7";
  1405. const char *__doc_igl_writeMESH = R"igl_Qu8mg5v7(// save a tetrahedral volume mesh to a .mesh file
  1406. //
  1407. // Templates:
  1408. // Scalar type for positions and vectors (will be cast as double)
  1409. // Index type for indices (will be cast to int)
  1410. // Input:
  1411. // mesh_file_name path of .mesh file
  1412. // V double matrix of vertex positions #V by 3
  1413. // T #T list of tet indices into vertex positions
  1414. // F #F list of face indices into vertex positions
  1415. //
  1416. // Known bugs: Holes and regions are not supported)igl_Qu8mg5v7";
  1417. const char *__doc_igl_writeOBJ = R"igl_Qu8mg5v7(// Write a mesh in an ascii obj file
  1418. // Inputs:
  1419. // str path to outputfile
  1420. // V #V by 3 mesh vertex positions
  1421. // F #F by 3|4 mesh indices into V
  1422. // CN #CN by 3 normal vectors
  1423. // FN #F by 3|4 corner normal indices into CN
  1424. // TC #TC by 2|3 texture coordinates
  1425. // FTC #F by 3|4 corner texture coord indices into TC
  1426. // Returns true on success, false on error
  1427. //
  1428. // Known issues: Horrifyingly, this does not have the same order of
  1429. // parameters as readOBJ.)igl_Qu8mg5v7";
  1430. const char *__doc_igl_writePLY = R"igl_Qu8mg5v7(// Write a mesh in an ascii ply file
  1431. // Inputs:
  1432. // str path to outputfile
  1433. // V #V by 3 mesh vertex positions
  1434. // F #F by 3 mesh indices into V
  1435. // N #V by 3 normal vectors
  1436. // UV #V by 2 texture coordinates
  1437. // Returns true on success, false on error)igl_Qu8mg5v7";