All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.ihmc.javafx.JavaFXGraphicMissingTools Maven / Gradle / Ivy

The newest version!
package us.ihmc.javafx;

import us.ihmc.euclid.transform.RigidBodyTransform;
import us.ihmc.javaFXToolkit.JavaFXGraphicTools;
import us.ihmc.javaFXToolkit.shapes.JavaFXMeshBuilder;
import us.ihmc.robotics.geometry.PlanarRegion;

public class JavaFXGraphicMissingTools
{
   public static void drawPlanarRegion(JavaFXMeshBuilder meshBuilder, PlanarRegion planarRegion, double lineWidth)
   {
      RigidBodyTransform transformToWorld = new RigidBodyTransform();
      planarRegion.getTransformToWorld(transformToWorld);

      JavaFXGraphicTools.drawPlanarRegion(meshBuilder, transformToWorld, planarRegion.getConcaveHull(), planarRegion.getConvexPolygons(), lineWidth);
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy