Package com.ardor3d.math.functions
Class MeshFunction3D
java.lang.Object
com.ardor3d.math.functions.MeshFunction3D
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionCreate a MeshFunction3D with a default lineSize of 0.5.MeshFunction3D
(double lineSize) Create a MeshFunction3D with the specified lineSize. -
Method Summary
Modifier and TypeMethodDescriptiondouble
eval
(double x, double y, double z) Evaluate the function.
-
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 interfaceFunction3D
- Parameters:
x
- the 1st value in our tupley
- the 2nd value in our tuplez
- the 3rd value in our tuple- Returns:
- some value, generally (but not necessarily) in [-1, 1]
-