@@ -16,28 +16,57 @@ var extendFlat = require('../../lib/extend').extendFlat;
16
16
module . exports = {
17
17
x : {
18
18
valType : 'data_array' ,
19
- description : 'Sets the x coordinates of the vertices'
19
+ description : [
20
+ 'Sets the X coordinates of the vertices. The nth element of vectors `x`, `y` and `z`' ,
21
+ 'jointly represent the X, Y and Z coordinates of the nth vertex.'
22
+ ] . join ( ' ' )
20
23
} ,
21
24
y : {
22
25
valType : 'data_array' ,
23
- description : 'Sets the y coordinates of the vertices'
26
+ description : [
27
+ 'Sets the Y coordinates of the vertices. The nth element of vectors `x`, `y` and `z`' ,
28
+ 'jointly represent the X, Y and Z coordinates of the nth vertex.'
29
+ ] . join ( ' ' )
24
30
} ,
25
31
z : {
26
32
valType : 'data_array' ,
27
- description : 'Sets the z coordinates of the vertices'
33
+ description : [
34
+ 'Sets the Z coordinates of the vertices. The nth element of vectors `x`, `y` and `z`' ,
35
+ 'jointly represent the X, Y and Z coordinates of the nth vertex.'
36
+ ] . join ( ' ' )
28
37
} ,
29
38
30
39
i : {
31
40
valType : 'data_array' ,
32
- description : 'Sets the indices of x coordinates of the vertices'
41
+ description : [
42
+ 'A vector of vertex indices, i.e. integer values between 0 and the length of the vertex' ,
43
+ 'vectors, representing the *first* vertex of a triangle. For example, `{i[m], j[m], k[m]}`' ,
44
+ 'together represent face m (triangle m) in the mesh, where `i[m] = n` points to the triplet' ,
45
+ '`{x[n], y[n], z[n]}` in the vertex arrays. Therefore, each element in `i` represents a' ,
46
+ 'point in space, which is the first vertex of a triangle.'
47
+ ] . join ( ' ' )
33
48
} ,
34
49
j : {
35
50
valType : 'data_array' ,
36
- description : 'Sets the indices of y coordinates of the vertices'
51
+ description : [
52
+ 'A vector of vertex indices, i.e. integer values between 0 and the length of the vertex' ,
53
+ 'vectors, representing the *second* vertex of a triangle. For example, `{i[m], j[m], k[m]}` ' ,
54
+ 'together represent face m (triangle m) in the mesh, where `j[m] = n` points to the triplet' ,
55
+ '`{x[n], y[n], z[n]}` in the vertex arrays. Therefore, each element in `j` represents a' ,
56
+ 'point in space, which is the second vertex of a triangle.'
57
+ ] . join ( ' ' )
58
+
37
59
} ,
38
60
k : {
39
61
valType : 'data_array' ,
40
- description : 'Sets the indices of z coordinates of the vertices'
62
+ description : [
63
+ 'A vector of vertex indices, i.e. integer values between 0 and the length of the vertex' ,
64
+ 'vectors, representing the *third* vertex of a triangle. For example, `{i[m], j[m], k[m]}`' ,
65
+ 'together represent face m (triangle m) in the mesh, where `k[m] = n` points to the triplet ' ,
66
+ '`{x[n], y[n], z[n]}` in the vertex arrays. Therefore, each element in `k` represents a' ,
67
+ 'point in space, which is the third vertex of a triangle.'
68
+ ] . join ( ' ' )
69
+
41
70
} ,
42
71
43
72
delaunayaxis : {
@@ -46,9 +75,10 @@ module.exports = {
46
75
values : [ 'x' , 'y' , 'z' ] ,
47
76
dflt : 'z' ,
48
77
description : [
49
- 'Sets the Delaunay axis from which the triangulation of the mesh' ,
50
- 'takes place.' ,
51
- 'An alternative to setting the `i`, `j`, `k` indices triplets.'
78
+ 'Sets the Delaunay axis, which is the axis that is perpendicular to the surface of the' ,
79
+ 'Delaunay triangulation.' ,
80
+ 'It has an effect if `i`, `j`, `k` are not provided and `alphahull` is set to indicate' ,
81
+ 'Delaunay triangulation.'
52
82
] . join ( ' ' )
53
83
} ,
54
84
@@ -57,11 +87,24 @@ module.exports = {
57
87
role : 'style' ,
58
88
dflt : - 1 ,
59
89
description : [
60
- 'Sets the shape of the mesh' ,
61
- 'If *-1*, Delaunay triangulation is used' ,
62
- 'If *>0*, the alpha-shape algorithm is used' ,
63
- 'If *0*, the convex-hull algorithm is used' ,
64
- 'An alternative to the `i`, `j`, `k` indices triplets.'
90
+ 'Determines how the mesh surface triangles are derived from the set of' ,
91
+ 'vertices (points) represented by the `x`, `y` and `z` arrays, if' ,
92
+ 'the `i`, `j`, `k` arrays are not supplied.' ,
93
+ 'For general use of `mesh3d` it is preferred that `i`, `j`, `k` are' ,
94
+ 'supplied.' ,
95
+
96
+ 'If *-1*, Delaunay triangulation is used, which is mainly suitable if the' ,
97
+ 'mesh is a single, more or less layer surface that is perpendicular to `delaunayaxis`.' ,
98
+ 'In case the `delaunayaxis` intersects the mesh surface at more than one point' ,
99
+ 'it will result triangles that are very long in the dimension of `delaunayaxis`.' ,
100
+
101
+ 'If *>0*, the alpha-shape algorithm is used. In this case, the positive `alphahull` value' ,
102
+ 'signals the use of the alpha-shape algorithm, _and_ its value' ,
103
+ 'acts as the parameter for the mesh fitting.' ,
104
+
105
+ 'If *0*, the convex-hull algorithm is used. It is suitable for convex bodies' ,
106
+ 'or if the intention is to enclose the `x`, `y` and `z` point set into a convex' ,
107
+ 'hull.'
65
108
] . join ( ' ' )
66
109
} ,
67
110
@@ -106,7 +149,7 @@ module.exports = {
106
149
dflt : false ,
107
150
description : [
108
151
'Determines whether or not normal smoothing is applied to the meshes,' ,
109
- 'creating meshes with a low-poly look.'
152
+ 'creating meshes with an angular, low-poly look via flat reflections .'
110
153
] . join ( ' ' )
111
154
} ,
112
155
0 commit comments