Class MeshColorizeOps

java.lang.Object
boofcv.gui.mesh.MeshColorizeOps

public class MeshColorizeOps extends Object
Different functions that compute a synthetic colors for each surface in a mesh.
  • Constructor Details

    • MeshColorizeOps

      public MeshColorizeOps()
  • Method Details

    • colorizeByVertex

      public static RenderMesh.SurfaceColor colorizeByVertex(VertexMesh mesh, int[] vertexColor)
      Colorizes each surface based on the color of the first vertex
      Parameters:
      mesh - The mesh
      vertexColor - Color for each vertex in the mesh
      Returns:
      SurfaceColor
    • colorizeByNormal

      public static RenderMesh.SurfaceColor colorizeByNormal(VertexMesh mesh)
      Computes the normal angle and varies the color between green and white depending on the acute angle relative to the world's z-xis