public SphereVoxelShape(ReferenceFrame parentFrame, double voxelSize, int numberOfRays, int numberOfRotationsAroundRay, SphereVoxelType type) { this.voxelSize = voxelSize; this.parentFrame = parentFrame; this.type = type; this.numberOfRays = numberOfRays; this.numberOfRotationsAroundRay = numberOfRotationsAroundRay; pointsOnSphere = SpiralBasedAlgorithm.generatePointsOnSphere(sphereOrigin, voxelSize, numberOfRays); rotations = SpiralBasedAlgorithm.generateOrientations(numberOfRays, numberOfRotationsAroundRay); }
public static Quaternion[][] generateOrientations(int numberOfRays, int numberOfRotationsAroundRay) { return generateOrientations(numberOfRays, numberOfRotationsAroundRay, computeMagicDeltaN(numberOfRays)); }
public SphereVoxelShape(ReferenceFrame parentFrame, double voxelSize, int numberOfRays, int numberOfRotationsAroundRay, SphereVoxelType type) { this.voxelSize = voxelSize; this.parentFrame = parentFrame; this.type = type; this.numberOfRays = numberOfRays; this.numberOfRotationsAroundRay = numberOfRotationsAroundRay; pointsOnSphere = SpiralBasedAlgorithm.generatePointsOnSphere(sphereOrigin, voxelSize, numberOfRays); rotations = SpiralBasedAlgorithm.generateOrientations(numberOfRays, numberOfRotationsAroundRay); }
public static Quat4d[][] generateOrientations(int numberOfRays, int numberOfRotationsAroundRay) { return generateOrientations(numberOfRays, numberOfRotationsAroundRay, computeMagicDeltaN(numberOfRays)); }