Class MeshProducer

java.lang.Object
com.ardorcraft.util.geometryproducers.MeshProducer
All Implemented Interfaces:
GeometryProducer

public final class MeshProducer extends Object implements GeometryProducer
GeometryProducer that can take an Ardor3D Mesh as input.
  • Constructor Details

    • MeshProducer

      public MeshProducer(Mesh mesh)
  • Method Details

    • createOrientations

      public void createOrientations()
    • setTransformTextureCoords

      public void setTransformTextureCoords(boolean value)
    • generateBlock

      public void generateBlock(int blockId, GeometryHandler geometryHandler, BlockProvider blockProvider, BlockUtil blockUtil, int x, int y, int z)
      Specified by:
      generateBlock in interface GeometryProducer
      Parameters:
      blockId - ID of block to generate geometry for
      geometryHandler - geometry handler to use for setting geometry data
      blockProvider - blockprovider can give access to neighbouring blocks etc
      blockUtil - block util gives information about a block, tile texture coords etc
      x - world space x position
      y - world space y position
      z - world space z position