Tabnine Logo
SpiralBasedAlgorithm.generatePointsOnSphere
Code IndexAdd Tabnine to your IDE (free)

How to use
generatePointsOnSphere
method
in
us.ihmc.robotics.geometry.SpiralBasedAlgorithm

Best Java code snippets using us.ihmc.robotics.geometry.SpiralBasedAlgorithm.generatePointsOnSphere (Showing top 19 results out of 315)

origin: us.ihmc/ihmc-avatar-interfaces

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);
}
origin: us.ihmc/IHMCRoboticsToolkit

public static Point3d[] generatePointsOnSphere(Point3d sphereOrigin, double sphereRadius, int numberOfPointsToGenerate)
{
 return generatePointsOnSphere(sphereOrigin, sphereRadius, numberOfPointsToGenerate, computeMagicDeltaN(numberOfPointsToGenerate));
}
origin: us.ihmc/DarpaRoboticsChallenge

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);
}
origin: us.ihmc/IHMCRoboticsToolkit

public static Point3d[] generatePointsOnSphere(double sphereRadius, int numberOfPointsToGenerate, double deltaN)
{
 return generatePointsOnSphere(new Point3d(), sphereRadius, numberOfPointsToGenerate, deltaN);
}
origin: us.ihmc/ihmc-robotics-toolkit

public static Point3D[] generatePointsOnSphere(double sphereRadius, int numberOfPointsToGenerate, double deltaN)
{
 return generatePointsOnSphere(new Point3D(), sphereRadius, numberOfPointsToGenerate, deltaN);
}
origin: us.ihmc/ihmc-robotics-toolkit

public static Point3D[] generatePointsOnSphere(Point3D sphereOrigin, double sphereRadius, int numberOfPointsToGenerate)
{
 return generatePointsOnSphere(sphereOrigin, sphereRadius, numberOfPointsToGenerate, computeMagicDeltaN(numberOfPointsToGenerate));
}
origin: us.ihmc/ihmc-robotics-toolkit

public static Point3D[] generatePointsOnSphere(double sphereRadius, int numberOfPointsToGenerate)
{
 return generatePointsOnSphere(new Point3D(), sphereRadius, numberOfPointsToGenerate, computeMagicDeltaN(numberOfPointsToGenerate));
}
origin: us.ihmc/IHMCRoboticsToolkit

public static Point3d[] generatePointsOnSphere(double sphereRadius, int numberOfPointsToGenerate)
{
 return generatePointsOnSphere(new Point3d(), sphereRadius, numberOfPointsToGenerate, computeMagicDeltaN(numberOfPointsToGenerate));
}
origin: us.ihmc/ihmc-footstep-planning-test

private PlanarRegionsList createVisibleRegions(PlanarRegionsList regions, Point3D observer, PlanarRegionsList knownRegions,
                       List<YoFramePoint3D> rayPointsToPack)
 Point3D[] pointsOnSphere = SpiralBasedAlgorithm.generatePointsOnSphere(observer, 1.0, rays);
 List<ConvexPolygon2D> visiblePolygons = new ArrayList<>();
 for (int i = 0; i < regions.getNumberOfPlanarRegions(); i++)
origin: us.ihmc/ihmc-path-planning-test

private PlanarRegionsList createVisibleRegions(PlanarRegionsList regions, Point3D observer, PlanarRegionsList knownRegions,
                       List<YoFramePoint3D> rayPointsToPack)
 Point3D[] pointsOnSphere = SpiralBasedAlgorithm.generatePointsOnSphere(observer, 1.0, rays);
 List<ConvexPolygon2D> visiblePolygons = new ArrayList<>();
 for (int i = 0; i < regions.getNumberOfPlanarRegions(); i++)
origin: us.ihmc/ihmc-path-planning-test

private Pair<PlanarRegionsList, List<Point3D>> createVisibleRegions(PlanarRegionsList regions, Point3D observer, PlanarRegionsList knownRegions)
 Point3D[] pointsOnSphere = SpiralBasedAlgorithm.generatePointsOnSphere(observer, 1.0, rays);
origin: us.ihmc/ihmc-avatar-interfaces

public static void visualizePointsOnSphereUsingSpiralBasedAlgorithm()
{
 SimulationConstructionSet scs = new SimulationConstructionSet(new Robot("Dummy"));
 scs.startOnAThread();
 Point3D sphereOrigin = new Point3D(0.0, 0.0, 1.0);
 double sphereRadius = 0.10;
 int numberOfPointsToGenerate = 200;
 Point3D[] pointsOnSphere = SpiralBasedAlgorithm.generatePointsOnSphere(sphereOrigin, sphereRadius, numberOfPointsToGenerate);
 Graphics3DObject staticLinkGraphics = new Graphics3DObject();
 staticLinkGraphics.translate(sphereOrigin);
 AppearanceDefinition red = YoAppearance.Red();
 red.setTransparency(0.7);
 staticLinkGraphics.addSphere(sphereRadius, red);
 scs.addStaticLinkGraphics(staticLinkGraphics);
 for (int i = 0; i < numberOfPointsToGenerate; i++)
 {
   staticLinkGraphics = new Graphics3DObject();
   staticLinkGraphics.translate(pointsOnSphere[i]);
   staticLinkGraphics.addSphere(0.005);
   scs.addStaticLinkGraphics(staticLinkGraphics);
 }
}
origin: us.ihmc/simulation-construction-set-tools

Point3D[] contactPointsOffset = SpiralBasedAlgorithm.generatePointsOnSphere(ballRadius, 500);
for (int i = 0; i < contactPointsOffset.length; i++)
origin: us.ihmc/ihmc-robotics-toolkit

Point3D[] pointsOnSphere = generatePointsOnSphere(0.01, numberOfRays, deltaN);
origin: us.ihmc/IHMCRoboticsToolkit

Point3d[] pointsOnSphere = generatePointsOnSphere(0.01, numberOfRays, deltaN);
origin: us.ihmc/ihmc-avatar-interfaces-test

euclideanTrajectoryPointCalculator.enableWeightMethod(2.0, 1.0);
Point3D[] pointsOnSphere = SpiralBasedAlgorithm.generatePointsOnSphere(radius, numberOfTrajectoryPoints * numberOfMessages);
origin: us.ihmc/ihmc-avatar-interfaces-test

euclideanTrajectoryPointCalculator.enableWeightMethod(2.0, 1.0);
Point3D[] pointsOnSphere = SpiralBasedAlgorithm.generatePointsOnSphere(radius, numberOfTrajectoryPoints * numberOfMessages);
origin: us.ihmc/ihmc-avatar-interfaces

Point3D[] allPointsOnSphere = SpiralBasedAlgorithm.generatePointsOnSphere(sphereOrigin, sphereRadius, numberOfPointsToGenerate);
List<Point3D> selectedPoints = new ArrayList<>();
origin: us.ihmc/ihmc-avatar-interfaces-test

euclideanTrajectoryPointCalculator.enableWeightMethod(2.0, 1.0);
Point3D[] pointsOnSphere = SpiralBasedAlgorithm.generatePointsOnSphere(radius, numberOfTrajectoryPoints * numberOfMessages);
us.ihmc.robotics.geometrySpiralBasedAlgorithmgeneratePointsOnSphere

Javadoc

Generates a number of points uniformly distributed over the surface of a sphere using a spiral-based approach. This algorithm can be found in the paper: "Distributing Many Points on a Sphere" by E.B. Saff and B.J. Kuijlaars. (PDF version was on Google on the 02/13/2015).

Popular methods of SpiralBasedAlgorithm

  • generateOrientations
  • computeMagicDeltaN

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now