Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: MeshView

[12:7] extends: Shape3D

Wraps JavaFX MeshView, a Shape3D that renders an arbitrary Mesh. Most commonly used with a TriangleMesh that supplies custom geometry (loaded from a model file or generated procedurally).

Methods

  • MeshView (object MeshObj = null)

    Creates a new MeshView. If a Mesh is provided, it becomes the initial geometry; otherwise the view starts empty.

    • @p MeshObj is an optional Mesh wrapper.
  • setMesh (object MeshObj)

    Sets the mesh whose geometry the view should render.

    • @p MeshObj is a Mesh wrapper (typically a TriangleMesh).
    • @r this object
  • getMesh ()

    Returns the currently assigned mesh as a raw AussomJavaObject.

    • @r An AussomJavaObject wrapping the underlying Mesh, or null.
  • meshProperty ()

    Returns the mesh property for binding or change listeners.

    • @r An AussomJavaObject around an ObjectProperty.