Great James!
Points node and MathPts node are similar.
PointArrays are output for each node.
MathPts permits the X, Y, and Z coordinates to be mathematically manipulated with parameters a, b, c and d, as denoted by pink f(u,v) output.
Write in your desired javascript mathematical formula. <<< add in examples with a,b,c,d,u,v>>>
X, Y, and Z appear in the Info window, and are the multiple point coordinates for each point of the output f(u,v) pointarray.
The MathPts node has A, B, C and D inputs available, by Right-Click on the node, click Input, and select next slot letter.
To remove the lowest existing slot, (assume it to be “b”), right click on b’s Dot, and select "Remove Slot".
A = a, B = b, C = c, and D = d. (the capitalization has no significance?).
MathPts seems to be "missing" the W range (~Z). (There must be some reason for "missing" W range?)
Sequentiually, u takes on the values of U range, v takes on the values of V range.
Points node has the W range available (~Z), as well as W num.
U num is the number of points between U range min (currently 0), and U range max (currently 10), inclusive, and becomes (part of) the X coordinate(s) of the point(s).
Similarly for V num (~Y) and for Points node, W num (~Z).
<<< examples>>>
Wiring the output f(u,v) to the input of the ConvertPts node yields 3 modes of output, Curves U, Curves V, or points.
- Brian
Local UV coordinates can be on a surface which could curve into 3d space.
The U, V, and W coordinates parallel the relative directions of X, Y, and Z coordinates. If you look at a 2D map image, U is the equivalent of X, and represents the horizontal direction of the map. V is the equivalent of Y, and represents the vertical direction of the map. W is the equivalent of Z and represents a direction perpendicular to the UV plane of the map.
A W coordinate for a 2D surface could be used to flip the orientation...
(The two nodes evolved from one or two of Max's scripts.)
|