Class RecastRasterization

java.lang.Object
org.recast4j.recast.RecastRasterization

public class RecastRasterization
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    RecastRasterization()  
  • Method Summary

    Modifier and Type Method Description
    static void addSpan​(Heightfield hf, int x, int y, int smin, int smax, int area, int flagMergeThr)
    The span addition can be set to favor flags.
    static void rasterizeTriangle​(Heightfield solid, float[] verts, int v0, int v1, int v2, int area, int flagMergeThr, Telemetry ctx)
    No spans will be added if the triangle does not overlap the heightfield grid.
    static void rasterizeTriangles​(Heightfield solid, float[] verts, int[] tris, int[] areas, int nt, int flagMergeThr, Telemetry ctx)
    Spans will only be added for triangles that overlap the heightfield grid.
    static void rasterizeTriangles​(Heightfield solid, float[] verts, int[] areas, int nt, int flagMergeThr, Telemetry ctx)
    Spans will only be added for triangles that overlap the heightfield grid.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RecastRasterization

      public RecastRasterization()
  • Method Details

    • addSpan

      public static void addSpan​(Heightfield hf, int x, int y, int smin, int smax, int area, int flagMergeThr)
      The span addition can be set to favor flags. If the span is merged to another span and the new 'smax' is within 'flagMergeThr' units from the existing span, the span flags are merged.
    • rasterizeTriangle

      public static void rasterizeTriangle​(Heightfield solid, float[] verts, int v0, int v1, int v2, int area, int flagMergeThr, Telemetry ctx)
      No spans will be added if the triangle does not overlap the heightfield grid.
      See Also:
      Heightfield
    • rasterizeTriangles

      public static void rasterizeTriangles​(Heightfield solid, float[] verts, int[] tris, int[] areas, int nt, int flagMergeThr, Telemetry ctx)
      Spans will only be added for triangles that overlap the heightfield grid.
      See Also:
      Heightfield
    • rasterizeTriangles

      public static void rasterizeTriangles​(Heightfield solid, float[] verts, int[] areas, int nt, int flagMergeThr, Telemetry ctx)
      Spans will only be added for triangles that overlap the heightfield grid.
      See Also:
      Heightfield