public class PointDistributor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_ITERS |
static double |
DEFAULT_THRESHOLD |
Constructor and Description |
---|
PointDistributor() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Integer[] |
discreteVoronoi(java.lang.Integer[] cells,
Point3d[] controls,
Point3d[] points) |
static void |
farthestPointSampling(Point3d[] out,
Point3d[] in) |
static void |
farthestPointSampling(Point3d[] out,
Point3d[] in,
int offset) |
static Point3d[] |
getFCC(double[] size,
int[] res,
Point3d centre) |
static Point3d[] |
getGrid(double[] size,
int[] res,
Point3d centre) |
static RigidTransform3d |
getPrincipalAxes(PolygonalMesh mesh) |
static CubaturePoint3d[] |
getSphericalCapMidpointCubature(Point3d center,
double radius,
double height,
int n) |
static CubaturePoint3d[] |
getSphericalCapMidpointCubature(Point3d center,
double radius,
double height,
int nR,
int nTheta,
int nH) |
static CubaturePoint3d[] |
getSphericalCapMidpointCubature(Point3d center,
double radius,
double height,
int nR,
int nTheta,
int nH,
Vector3d axis) |
static CubaturePoint3d[] |
getSphericalLensMidpointCubature(Point3d c1,
double r1,
Point3d c2,
double r2,
int n) |
static CubaturePoint3d[] |
getSphericalLensMidpointCubature(Point3d c1,
double r1,
Point3d c2,
double r2,
int nR,
int nTheta,
int nH1,
int nH2) |
static CubaturePoint3d[] |
getSphericalMidpointCubature(Point3d center,
double radius,
int n) |
static CubaturePoint3d[] |
getSphericalMidpointCubature(Point3d center,
double radius,
int nR,
int nPhi,
int nTheta) |
static CubaturePoint3d[] |
getSphericalMidpointCubature(Point3d center,
double radius,
int nR,
int nPhi,
int nTheta,
Vector3d axis) |
static Point3d[] |
getTightBox(Point3d[] pnts,
RigidTransform3d principal) |
static Point3d[] |
getTightBox(PolygonalMesh mesh,
RigidTransform3d principal) |
static OBB |
getTightOBB(Point3d[] pnts,
RigidTransform3d principal) |
static OBB |
getTightOBB(PolygonalMesh mesh,
RigidTransform3d principal) |
static void |
lloydRelaxation(Point3d[] controls,
Point3d[] points,
double threshold,
int iterMax) |
static void |
lloydSample(Point3d[] out,
Point3d[] in) |
static void |
lloydSample(Point3d[] out,
Point3d[] in,
double eps,
int maxIters) |
static Point3d[] |
sphereFCCFill(PolygonalMesh mesh,
double r) |
static Point3d[] |
sphereGridFill(PolygonalMesh mesh,
double r) |
public static int DEFAULT_MAX_ITERS
public static double DEFAULT_THRESHOLD
public static Point3d[] sphereFCCFill(PolygonalMesh mesh, double r)
public static Point3d[] sphereGridFill(PolygonalMesh mesh, double r)
public static RigidTransform3d getPrincipalAxes(PolygonalMesh mesh)
public static Point3d[] getTightBox(PolygonalMesh mesh, RigidTransform3d principal)
public static OBB getTightOBB(PolygonalMesh mesh, RigidTransform3d principal)
public static Point3d[] getTightBox(Point3d[] pnts, RigidTransform3d principal)
public static OBB getTightOBB(Point3d[] pnts, RigidTransform3d principal)
public static void farthestPointSampling(Point3d[] out, Point3d[] in, int offset)
public static void lloydRelaxation(Point3d[] controls, Point3d[] points, double threshold, int iterMax)
public static java.lang.Integer[] discreteVoronoi(java.lang.Integer[] cells, Point3d[] controls, Point3d[] points)
public static CubaturePoint3d[] getSphericalMidpointCubature(Point3d center, double radius, int nR, int nPhi, int nTheta, Vector3d axis)
public static CubaturePoint3d[] getSphericalMidpointCubature(Point3d center, double radius, int nR, int nPhi, int nTheta)
public static CubaturePoint3d[] getSphericalMidpointCubature(Point3d center, double radius, int n)
public static CubaturePoint3d[] getSphericalCapMidpointCubature(Point3d center, double radius, double height, int nR, int nTheta, int nH, Vector3d axis)
public static CubaturePoint3d[] getSphericalCapMidpointCubature(Point3d center, double radius, double height, int nR, int nTheta, int nH)
public static CubaturePoint3d[] getSphericalCapMidpointCubature(Point3d center, double radius, double height, int n)
public static CubaturePoint3d[] getSphericalLensMidpointCubature(Point3d c1, double r1, Point3d c2, double r2, int nR, int nTheta, int nH1, int nH2)
public static CubaturePoint3d[] getSphericalLensMidpointCubature(Point3d c1, double r1, Point3d c2, double r2, int n)