neuray API Programmer's Manual

mi::neuraylib::IOn_demand_mesh_callback Class Reference

[Leaf nodes]

Description

Abstract interface for callbacks used by on-demand meshes.

See also:

mi::neuraylib::IOn_demand_mesh, mi::neuraylib::ISimple_mesh

Public Member Functions

virtual const ISimple_meshcall() const =0
Returns the mesh represented by this callback. More...

Member Functions

virtual const ISimple_mesh* mi::​neuraylib::​IOn_demand_mesh_callback::call() const [pure virtual]

Returns the mesh represented by this callback. The method may return NULL which is treated like an empty mesh.

Note:

The callback is required to always return an equivalent mesh. It does not need to be exactly the same instance, but the represented geometry and all properties must be identical. If you want to change the mesh, you need to install a new instance of this callback object via mi::neuraylib::IOn_demand_mesh::set_callback().