public class RegularFemElementSampler extends java.lang.Object implements FemElementSampler
Modifier and Type | Class and Description |
---|---|
static class |
RegularFemElementSampler.RegularHexSampler |
static class |
RegularFemElementSampler.RegularPyramidSampler |
static class |
RegularFemElementSampler.RegularTetSampler |
static class |
RegularFemElementSampler.RegularWedgeSampler |
Constructor and Description |
---|
RegularFemElementSampler(FemElement3d elem,
int res) |
RegularFemElementSampler(int res) |
Modifier and Type | Method and Description |
---|---|
double |
isample(Point3d coord,
Point3d pnt)
Generates a sample point from within the previously used or assigned finite element,
returns probability density of point, used mainly for numerical integration
|
int |
numUniqueSamples()
Number of unique samples at current resolution, for
regularly sampling across entire element
|
Point3d |
sample()
Generates a random point from within the previously used or assigned element
|
void |
sample(Point3d pnt)
Generates a sample point from within the previously used or assigned finite element
|
void |
sample(Point3d coord,
Point3d pnt)
Generates a sample point from within the previously used or assigned finite element
|
void |
setElement(FemElement3d elem)
Sets the element to sample from
|
public RegularFemElementSampler(int res)
public RegularFemElementSampler(FemElement3d elem, int res)
public void setElement(FemElement3d elem)
FemElementSampler
setElement
in interface FemElementSampler
elem
- element to sample frompublic Point3d sample()
FemElementSampler
sample
in interface FemElementSampler
public void sample(Point3d pnt)
FemElementSampler
sample
in interface FemElementSampler
pnt
- populated sampled pointpublic void sample(Point3d coord, Point3d pnt)
FemElementSampler
sample
in interface FemElementSampler
coord
- sampled local coordinate within the element (natural coordinates)pnt
- spatial location of pointpublic double isample(Point3d coord, Point3d pnt)
FemElementSampler
isample
in interface FemElementSampler
coord
- sampled local coordinate within the element (natural coordinates)pnt
- spatial location of pointpublic int numUniqueSamples()