You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vnf.scad
+24-5Lines changed: 24 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,11 @@ EMPTY_VNF = [[],[]]; // The standard empty VNF with no vertices or faces.
57
57
// the meaning of `tex_size` and it also affects the vertical texture scale. The size of the texture tiles is proportional to the point
58
58
// spacing of the location where they are placed, so if the points are closer together, you get small texture elements. The specified `tex_depth`
59
59
// is correct at the `points[0][0]` but would be different at places in the point array where the scale is different. This
60
-
// differs from {{rotate_sweep()}}, which uses a uniform resampling of the curve you specify.
60
+
// differs from {{rotate_sweep()}}, which uses a uniform resampling of the curve you specify.
61
+
// .
62
+
// The vertical scale of texture elements adjusts based on the size of the grid square where it is placed. By default, the height is scaled by the average
63
+
// of the width and height of the texture element. You can disable this scaling by setting `tex_scaling="const"`, which results
64
+
// in a constant height that does not vary with the grid spacing.
61
65
// .
62
66
// The point data for `vnf_vertex_array()` is resampled using bilinear interpolation to match the required point density of the tile count, but the
63
67
// sampling is based on the grid, not on the distance between points. If you want to
@@ -93,6 +97,7 @@ EMPTY_VNF = [[],[]]; // The standard empty VNF with no vertices or faces.
93
97
// sidecaps = if `col_wrap==false` this controls whether to cap any floating ends of a VNF tile on the texture. Does not affect the main texture surface. Ignored it doesn't apply. Default: false
94
98
// sidecap1 = set sidecap only for the `points[][0]` edge of the output
95
99
// sidecap2 = set sidecap only for the `points[][max]` edge of the output
100
+
// tex_scaling = set to "const" to disable grid size vertical scaling of the texture. Default: "default"
96
101
// normals = array of normal vectors to each point in the point array for more accurate texture height calculation
97
102
// cp = (module) Centerpoint for determining intersection anchors or centering the shape. Determines the base of the anchor vector. Can be "centroid", "mean", "box" or a 3D point. Default: "centroid"
98
103
// anchor = (module) Translate so anchor point is at origin (0,0,0). See [anchor](attachments.scad#subsection-anchor). Default: `"origin"`
@@ -278,6 +283,20 @@ EMPTY_VNF = [[],[]]; // The standard empty VNF with no vertices or faces.
0 commit comments