Iray SDK API nvidia_logo_transpbg.gif Up
mi::neuraylib::ITessellator Class Referenceabstract

Functor to tessellate a polygon mesh into a triangle mesh. More...

#include <itessellator.h>

Inheritance diagram for mi::neuraylib::ITessellator:

Public Member Functions

virtual ITriangle_meshrun (const IPolygon_mesh *mesh, const IDictionary *options)=0
 Tessellates a polygon mesh into a triangle mesh. More...
 
virtual ITriangle_meshrun (const IPolygon_mesh *mesh)=0
 Tessellates a polygon mesh into a triangle mesh. More...
 
virtual ITriangle_meshrun (const IFreeform_surface *ffs, const IDictionary *options)=0
 Tessellates a freeform surface object into a triangle mesh. More...
 
virtual ITriangle_meshrun (const ISubdivision_surface *sds, const IDictionary *options)=0
 Tessellates a subdivision surface object into a triangle mesh. More...
 
- Public Member Functions inherited from mi::neuraylib::IFunctor_base
virtual IDictionaryget_default_options () const =0
 Returns the default options for this functor. More...
 
virtual bool options_valid (const IDictionary *options)=0
 Checks whether the options are valid for the functor. More...
 
virtual const IDictionaryget_options_type () const =0
 Returns the types of all options. More...
 
virtual const IDictionaryget_options_description () const =0
 Returns the descriptions of all options. More...
 
virtual const char * error_text () const =0
 Returns a descriptive string for the last error. More...
 
- Public Member Functions inherited from mi::base::IInterface
virtual Uint32 retain () const =0
 Increments the reference count. More...
 
virtual Uint32 release () const =0
 Decrements the reference count. More...
 
virtual const IInterfaceget_interface (const Uuid &interface_id) const =0
 Acquires a const interface from another. More...
 
template<class T>
const T * get_interface () const
 Acquires a const interface from another. More...
 
virtual IInterfaceget_interface (const Uuid &interface_id)=0
 Acquires a mutable interface from another. More...
 
template<class T>
T * get_interface ()
 Acquires a mutable interface from another. More...
 
virtual Uuid get_iid () const =0
 Returns the interface ID of the most derived interface. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0xb65adad6, ... >
typedef Interface_declare< id1, ... > Self
 Own type. More...
 
typedef Uuid_t< id1, ... > IID
 Declares the interface ID (IID) of this interface. More...
 
- Public Types inherited from mi::base::Interface_declare< 0xee412b14, ... >
typedef Interface_declare< id1, ... > Self
 Own type. More...
 
typedef Uuid_t< id1, ... > IID
 Declares the interface ID (IID) of this interface. More...
 
- Public Types inherited from mi::base::IInterface
typedef Uuid_t<0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0> IID
 Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0xb65adad6, ... >
static bool compare_iid (const Uuid &iid)
 Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0xee412b14, ... >
static bool compare_iid (const Uuid &iid)
 Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 
- Static Public Member Functions inherited from mi::base::IInterface
static bool compare_iid (const Uuid &iid)
 Compares the interface ID iid against the interface ID of this interface. More...
 

Detailed Description

Functor to tessellate a polygon mesh into a triangle mesh.

Options to customize the tessellation algorithm.

The tessellation algorithm offers at this point no options to customize its behavior.

Member Function Documentation

 run() [1/4]

virtual ITriangle_mesh * mi::neuraylib::ITessellator::run ( const IFreeform_surface ffs,
const IDictionary options 
)
pure virtual

Tessellates a freeform surface object into a triangle mesh.

Attributes and point attribute vectors are copied to the triangle mesh.

Parameters
ffsThe input freeform surface object. The input object will not be modified.
optionsAn option set to customize the algorithms behavior. A default options set can be obtained from mi::neuraylib::IFunctor_base::get_default_options() const. Currently no options are supported for tessellation.
Returns
The tessellated triangle mesh.

 run() [2/4]

virtual ITriangle_mesh * mi::neuraylib::ITessellator::run ( const IPolygon_mesh mesh)
pure virtual

Tessellates a polygon mesh into a triangle mesh.

Attributes and point attribute vectors are copied to the triangle mesh.

This variant of the function call uses the default options. Note that currently no options are supported for tessellation.

Parameters
meshThe input polygon mesh. The input mesh will not be modified. Note that the input mesh really needs to be a polygon mesh, a subdivision surface is not feasible.
Returns
The tessellated triangle mesh.

 run() [3/4]

virtual ITriangle_mesh * mi::neuraylib::ITessellator::run ( const IPolygon_mesh mesh,
const IDictionary options 
)
pure virtual

Tessellates a polygon mesh into a triangle mesh.

Attributes and point attribute vectors are copied to the triangle mesh.

Parameters
meshThe input polygon mesh. The input mesh will not be modified. Note that the input mesh really needs to be a polygon, a subdivision surface is not feasible.
optionsAn option set to customize the algorithms behavior. A default options set can be obtained from mi::neuraylib::IFunctor_base::get_default_options() const. Currently no options are supported for tessellation.
Returns
The tessellated triangle mesh.

 run() [4/4]

virtual ITriangle_mesh * mi::neuraylib::ITessellator::run ( const ISubdivision_surface sds,
const IDictionary options 
)
pure virtual

Tessellates a subdivision surface object into a triangle mesh.

Attributes and point attribute vectors are copied to the triangle mesh.

Parameters
sdsThe input subdivision surface object. The input object will not be modified.
optionsAn option set to customize the algorithms behavior. A default options set can be obtained from mi::neuraylib::IFunctor_base::get_default_options() const. Currently no options are supported for tessellation.
Returns
The tessellated triangle mesh.