Package boofcv.gui.mesh
Class MeshColorizeOps
java.lang.Object
boofcv.gui.mesh.MeshColorizeOps
Different functions that compute a synthetic colors for each surface in a mesh.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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-xisstatic RenderMesh.SurfaceColor
colorizeByVertex
(VertexMesh mesh, int[] vertexColor) Colorizes each surface based on the color of the first vertex
-
Constructor Details
-
MeshColorizeOps
public MeshColorizeOps()
-
-
Method Details
-
colorizeByVertex
Colorizes each surface based on the color of the first vertex- Parameters:
mesh
- The meshvertexColor
- Color for each vertex in the mesh- Returns:
- SurfaceColor
-
colorizeByNormal
Computes the normal angle and varies the color between green and white depending on the acute angle relative to the world's z-xis
-