grid
Create a 2D grid of width x height 3D elements. The builder function will get called with the u
and v
coordinates of each grid cell, so you have an opportunity to add meshes to the scene using those coordinates. The coordinate values will be scaled according to coordinates. Use:
GridCoordinates.INDEX to get UV cell indices as Doubles.
GridCoordinates.BIPOLAR to get values between -1.0 and 1.0
GridCoordinates.UNIPOLAR to get values between 0.0 and 1.0
Create a 3D grid of width x height x depth 3D elements. The builder function will get called with the u
, v
and w
coordinates of each grid cell, so you have an opportunity to add meshes to the scene using those coordinates. The coordinate values will be scaled according to coordinates. Use:
GridCoordinates.INDEX to get the UVW cell indices as Doubles.
GridCoordinates.BIPOLAR to get values between -1.0 and 1.0
GridCoordinates.UNIPOLAR to get values between 0.0 and 1.0