Interface Mesh

All Superinterfaces:
StageNode3D

public interface Mesh extends StageNode3D
Polygon mesh that can be used to render 3D graphics. Simple geometry can be created programmatically, more advanced meshes can be loaded from 3D model files.
  • Method Details

    • applyColor

      void applyColor(ColorRGB color)
    • applyTexture

      void applyTexture(Image texture)
    • applyDynamicTexture

      void applyDynamicTexture(Sprite sprite)
    • getDynamicTexture

      Sprite getDynamicTexture()
      If this mesh is currently using a dynamic texture, returns the sprite that is used as its source. Returns null if this mesh is not using a dynamic texture.
    • copy

      Mesh copy()
      Creates a copy of this mesh, which will use the same geometry, materials, textures, and animations as this mesh. The copy is not yet added to the stage.