public class ParametricSurfaceFactory extends AbstractQuadMeshFactory
QuadMeshFactory
further, replacing the explicit definition of the
vertex coordinates with a functional definition. The constructor for this factory
requires a class that implements ParametricSurfaceFactory.Immersion
. To implement this interface for a map
of two variables into three space extend the abstract class ParametricSurfaceFactory.DefaultImmersion
.
The domain of the immersion is a rectangle in (u,v) space specified by the four methods setUMin(double)
, setUMax(double)
, etc.
The number of samples in each direction is specified using the methods inherited from QuadMeshFactory
: AbstractQuadMeshFactory.setULineCount(int)
, etc.
For an example, see this tutorial.
Modifier and Type | Class and Description |
---|---|
static class |
ParametricSurfaceFactory.DefaultImmersion
An abstract implementation of the interface
Immersion for
a map of two variables into 3-space. |
static interface |
ParametricSurfaceFactory.Immersion
Represents a map of two variables into n--dimensional space.
|
Constructor and Description |
---|
ParametricSurfaceFactory() |
ParametricSurfaceFactory(ParametricSurfaceFactory.Immersion immersion) |
Modifier and Type | Method and Description |
---|---|
double[][] |
getDomainVertices(double[][] uvpoints) |
double[][] |
getDomainVertices(double[][] uvpoints,
boolean offset) |
ParametricSurfaceFactory.Immersion |
getImmersion() |
double |
getUMax() |
double |
getUMin() |
double |
getVMax() |
double |
getVMin() |
void |
setImmersion(ParametricSurfaceFactory.Immersion f) |
void |
setUMax(double max) |
void |
setUMin(double min) |
void |
setVMax(double max) |
void |
setVMin(double min) |
getULineCount, getUTextureScale, getUTextureShift, getVLineCount, getVTextureScale, getVTextureShift, isClosedInUDirection, isClosedInVDirection, isEdgeFromQuadMesh, isGenerateTextureCoordinates, setClosedInUDirection, setClosedInVDirection, setEdgeFromQuadMesh, setFaceAttribute, setFaceCount, setGenerateTextureCoordinates, setULineCount, setUTextureScale, setUTextureShift, setVertexCount, setVLineCount, setVTextureScale, setVTextureShift
getIndexedFaceSet, isGenerateAABBTree, isGenerateEdgesFromFaces, isGenerateFaceLabels, isGenerateFaceNormals, isGenerateVertexNormals, setGenerateAABBTree, setGenerateEdgesFromFaces, setGenerateFaceLabels, setGenerateFaceNormals, setGenerateVertexNormals
getEdgeCount, getIndexedLineSet, getLineCount, isGenerateEdgeLabels, setGenerateEdgeLabels, setLineCount
getPointSet, getVertexCount, isGenerateVertexLabels, setGenerateVertexLabels, setVertexAttribute
getGeometry, getMetric, setMetric, update
public ParametricSurfaceFactory(ParametricSurfaceFactory.Immersion immersion)
public ParametricSurfaceFactory()
public double[][] getDomainVertices(double[][] uvpoints)
public double[][] getDomainVertices(double[][] uvpoints, boolean offset)
public ParametricSurfaceFactory.Immersion getImmersion()
public void setImmersion(ParametricSurfaceFactory.Immersion f)
public double getUMax()
public void setUMax(double max)
public double getUMin()
public void setUMin(double min)
public double getVMax()
public void setVMax(double max)
public double getVMin()
public void setVMin(double min)