Class MeshFunction3D

java.lang.Object
com.ardor3d.math.functions.MeshFunction3D
All Implemented Interfaces:
Function3D

public class MeshFunction3D extends Object implements Function3D
Function which creates a diagonal grid of rounded 'holes'. The term "Mesh" is used here in its common form, and does not refer to 3D geometry... the resulting pattern simply resembles a screen or sieve.
  • Constructor Details

    • MeshFunction3D

      public MeshFunction3D()
      Create a MeshFunction3D with a default lineSize of 0.5.
    • MeshFunction3D

      public MeshFunction3D(double lineSize)
      Create a MeshFunction3D with the specified lineSize. Lower lineSize values will result in thinner lines.
      Parameters:
      lineSize - The line size, which should be greater than zero.
  • Method Details

    • eval

      public double eval(double x, double y, double z)
      Evaluate the function.
      Specified by:
      eval in interface Function3D
      Parameters:
      x - the 1st value in our tuple
      y - the 2nd value in our tuple
      z - the 3rd value in our tuple
      Returns:
      some value, generally (but not necessarily) in [-1, 1]