Description
Create a sampler to sample uniformly within a tetrahedron.
public abstract class TetrahedronSampler implements SharedStateSampler<TetrahedronSampler> { public static TetrahedronSampler of(double[] a, double[] b, double[] c, double[] d, UniformRandomProvider rng); }
Inputs a,b,c,d are the vertices.
Sampling can be performed using the algorithm of:
Rocchini, C & Cignoni, P (2001) Generating Random Points in a Tetrahedron. Journal of Graphics Tools 5(4), pp 9-12.
Attachments
Issue Links
- is a child of
-
RNG-132 Package rng.sampling.shape for sampling coordinates from shapes
-
- Closed
-