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)
FemElementSamplersetElement in interface FemElementSamplerelem - element to sample frompublic Point3d sample()
FemElementSamplersample in interface FemElementSamplerpublic void sample(Point3d pnt)
FemElementSamplersample in interface FemElementSamplerpnt - populated sampled pointpublic void sample(Point3d coord, Point3d pnt)
FemElementSamplersample in interface FemElementSamplercoord - sampled local coordinate within the element (natural coordinates)pnt - spatial location of pointpublic double isample(Point3d coord, Point3d pnt)
FemElementSamplerisample in interface FemElementSamplercoord - sampled local coordinate within the element (natural coordinates)pnt - spatial location of pointpublic int numUniqueSamples()